sarah-walker-pcem / pcem

PCem
http://pcem-emulator.co.uk
GNU General Public License v2.0
1.47k stars 204 forks source link

segmenation fault (core dumped) #236

Open pikachurus opened 9 months ago

pikachurus commented 9 months ago

Describe the bug Trying to enter setting or run machine, downloaded from EDIT: Please dont give links to copyrighted material. Thank you

To Reproduce start pcem, hit Configure or Load machine

Expected behavior machine is started

Screenshots image

Emulator configuration

Host machine

Additional context gdb:

(gdb) run Starting program: /home/pikachu/VMs/pcem [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff31fe640 (LWP 411212)] [New Thread 0x7fffe9082640 (LWP 411213)] [Thread 0x7fffe9082640 (LWP 411213) exited] [New Thread 0x7fffe9082640 (LWP 411214)] [Thread 0x7fffe9082640 (LWP 411214) exited] [New Thread 0x7fffe9082640 (LWP 411215)] [New Thread 0x7fffe8881640 (LWP 411216)] [New Thread 0x7fffe8680640 (LWP 411217)] [New Thread 0x7fffcb7d8640 (LWP 411218)] [New Thread 0x7fffcafd7640 (LWP 411219)] [New Thread 0x7fffc37ff640 (LWP 411220)] [New Thread 0x7fffc2ffe640 (LWP 411221)] [New Thread 0x7fffc27fd640 (LWP 411222)] [New Thread 0x7fffc1ffc640 (LWP 411223)] [New Thread 0x7fffc13fb640 (LWP 411224)] [New Thread 0x7fffc0bfa640 (LWP 411225)] [Thread 0x7fffc0bfa640 (LWP 411225) exited] [Thread 0x7fffc13fb640 (LWP 411224) exited] [New Thread 0x7fffc13fb640 (LWP 411226)] [New Thread 0x7fffc0bfa640 (LWP 411227)] [Thread 0x7fffc0bfa640 (LWP 411227) exited] [Thread 0x7fffc13fb640 (LWP 411226) exited] [New Thread 0x7fffc13fb640 (LWP 411228)] [New Thread 0x7fffc0bfa640 (LWP 411229)] [New Thread 0x7fffaaffe640 (LWP 411230)] [New Thread 0x7fffaa7fd640 (LWP 411231)] [Thread 0x7fffaa7fd640 (LWP 411231) exited] [Thread 0x7fffaaffe640 (LWP 411230) exited] [New Thread 0x7fffaaffe640 (LWP 411232)] [New Thread 0x7fffaa7fd640 (LWP 411233)] [Thread 0x7fffaa7fd640 (LWP 411233) exited] [Thread 0x7fffaaffe640 (LWP 411232) exited] [New Thread 0x7fffaaffe640 (LWP 411234)] [Thread 0x7fffaaffe640 (LWP 411234) exited] [New Thread 0x7fffaaffe640 (LWP 411235)] [New Thread 0x7fffaa7fd640 (LWP 411236)] [Thread 0x7fffaaffe640 (LWP 411235) exited] [Thread 0x7fffaa7fd640 (LWP 411236) exited] [New Thread 0x7fffaa7fd640 (LWP 411237)]

Thread 1 "pcem" received signal SIGSEGV, Segmentation fault. 0x00005555558d19a8 in fpu_get_type ()

Rak1ta commented 9 months ago

I encountered this when I copied the OS data from Windows to the Linux version of the program. Try creating a new config and adding your .img file.

michael-manley commented 9 months ago

That could be a possibility that the linefeeds from Windows CRLF are breaking the Linux one when it sees CR. Linux is just LF for line feeds so changing the cfg to LF based can fix this possibly.

Cambysses commented 4 months ago

I encountered this when I copied the OS data from Windows to the Linux version of the program. Try creating a new config and adding your .img file.

For what it's worth this was my exact scenario, I recently migrated from Windows to Linux and brought my PCem config with me. It seemed like it was working but would crash any time I opened the "properties" window on the desktop, with the same error as OP.

I completely removed PCem from my computer and reinstalled following this guide, now it is working as expected.