PCemV12Linux - Award 430VX PCI - Segmentation fault

Support and general discussion.
mjnman
Posts: 4
Joined: Thu 25 May, 2017 8:33 am

PCemV12Linux - Award 430VX PCI - Segmentation fault

Postby mjnman » Tue 06 Jun, 2017 4:17 pm

I builded from source in Debian Stretch but if I select machine "Award 430VX PCI" or "Intel Advanced EV" with default options obtain an "Segmentation fault" (Pentium configuration). With others "machines" PCem start correctly.
Below the trace with gdb:

# gdb /usr/local/bin/pcem core.pcem.3735
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/pcem...done.
[New LWP 3735]
[New LWP 3742]
[New LWP 3743]
[New LWP 3738]
[New LWP 3741]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `pcem'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 __GI__IO_fwrite (buf=buf@entry=0x55ad106664a0 <nvrram>, size=size@entry=128, count=count@entry=1, fp=fp@entry=0x0) at iofwrite.c:37
37 iofwrite.c: No such file or directory.
[Current thread is 1 (Thread 0x7ff104634200 (LWP 3735))]
(gdb) bt
#0 __GI__IO_fwrite (buf=buf@entry=0x55ad106664a0 <nvrram>, size=size@entry=128, count=count@entry=1, fp=fp@entry=0x0) at iofwrite.c:37
#1 0x000055ad0e1bbd97 in savenvr () at nvr.c:292
#2 0x000055ad0e05f8d8 in main (argc=<optimized out>, argv=<optimized out>) at allegro-main.c:135

Please, what can I do?
SarahWalker
Site Admin
Posts: 1325
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCemV12Linux - Award 430VX PCI - Segmentation fault

Postby SarahWalker » Tue 06 Jun, 2017 4:42 pm

Don't put the binary in /usr/local/bin. PCem, being primarily a Windows program, saves CMOS settings and the like relative to the binary location, and if this is read-only then it won't end well.

There is work ongoing in another thread to make the path handling more Linuxy, but none of that has hit the main repo yet.
mjnman
Posts: 4
Joined: Thu 25 May, 2017 8:33 am

Re: PCemV12Linux - Award 430VX PCI - Segmentation fault

Postby mjnman » Wed 07 Jun, 2017 9:53 am

ah ok. Thank you. I executed with root user the binary. I'll look around

Return to “General”

Who is online

Users browsing this forum: No registered users and 6 guests