-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dhewm3 crashes on cpu arch PPC64LE #508
Comments
|
its not available in my repo on my current distro for my cpu arch, |
What distro are you using? Try running it in gdb, and after the crash enter |
Opensuse leap 15.4 ppc64le, I'm able to complete some maps, mars_city2 for example is the only one i've tested so far that doesn't crash. runs beautifully and way more responsive than x86 when its not crashing. |
How do I run it in gdb? |
in a terminal in the directory the dhewm3 executable is in, run |
Thread 1 "dhewm3" received signal SIGSEGV, Segmentation fault.
Quit anyway? (y or n) y |
Weird, that really shouldn't crash, unless Sorry, but I can't help you figure this out, as I don't have any PPC64LE hardware. |
well, you can use ppc64le at integricloud.com i'm pretty sure, if you care enough to bother with it (don't blame you if you don't want to) |
lol also not sure how some cloud server would help me debugging a game that needs a GPU and a display |
I try not to wade into these, because I am not generally good with technology, but @stallmanshiteater, strongly consider checking your RAM. If you're short sticks and can grab a stick from work or something, that'll do for a test. I had a similar non-dhewm3 crash on a friend's machine, and it turned out it was something to do with one of the sticks. He had like 64GB ram, so he just removed them one by one, found the faulty one, and could kill time waiting to replace it so he could have his mildly excessive but still impressive collection. It is a super basic test, but it's one that's so easy to forget it's worth testing. |
The type punning in I don't think anyone here has a big endian machine anymore. You'll have to learn to debug this yourself. As a first step learn how to inspect variables and check if Also formatting your backtrace as code (with backticks) prevents github from turning the stack frame identifiers |
I think PPC64LE is little endian ;) Trying valgrind is a good idea. It'll slow the game down considerably, especially loading levels takes very long; hopefully it's still playable enough to be able to trigger the bug. To use valgrind, just install it and run |
I thought all PowerPC archs were big endian. Apparently not. Does it support unaligned loads? If not then that type punning looks like a really good candidate for Stuff Going Wrong. |
I suppose I could, but this system only accepts DDR4 ECC registered ram. I'll try to get valgrind and test that. |
==9418== Invalid read of size 4 Looks like dhewm3 1.5.3pre crashed with signal SIGSEGV (11) - sorry! Backtrace: (Sorry it's not overly useful, build with libbacktrace support to get function names) |
I suppose I could try testing this on BE as well sometime... |
another note, when changing image_cachemegs from 2048 to 4096, I was able to have the map "game/commoutside" load, it crashed later on, but previously when image_cachemegs was "2048" it crashed upon loading.... |
if you set and note that by default image_cacheMegs is 20, not 2048 what kind of hardware (incl. GPU) are you using exactly? |
No, I didn't see that. hardware: https://i.imgur.com/9EsDqk0.png I'm on a raptor blackbird motherboard with an 8 core sforza power9 cpu, and 32gb of ECC registered ddr4 @ 2666 from black diamond memory. GPU is an OEM type AMD vega 64. |
If you don't see those BTW, it's totally possible that the crash is in the GPU driver and not in dhewm3 itself. Try creating a debug build (pass |
driver is amdgpu, the open source linux one. ran fine on same card and driver on x86_64. I'll update after I've tried the aforementioned. |
yeah, but maybe it has a PPC-specific bug |
when a map loads (or when using cachemegs console command) the game crashes, looks like some type of memory access error
Looks like dhewm3 1.5.2 crashed with signal SIGSEGV (11) - sorry!
Backtrace:
dhewm3(+0x2b968c) [0x10a95968c]
linux-vdso64.so.1(__kernel_sigtramp_rt64+0) [0x7fff8f2a0444]
/usr/lib64/dhewm3/base.so(+0x1e8214) [0x7ffec75e8214]
[0x7fffdcf16390]
/usr/lib64/dhewm3/base.so(+0x1690bc) [0x7ffec75690bc]
/usr/lib64/dhewm3/base.so(+0x1b6d44) [0x7ffec75b6d44]
/usr/lib64/dhewm3/base.so(+0x201324) [0x7ffec7601324]
/usr/lib64/dhewm3/base.so(+0x2030e4) [0x7ffec76030e4]
/usr/lib64/dhewm3/base.so(+0x213940) [0x7ffec7613940]
/usr/lib64/dhewm3/base.so(+0x16a6cc) [0x7ffec756a6cc]
/usr/lib64/dhewm3/base.so(+0x172108) [0x7ffec7572108]
/usr/lib64/dhewm3/base.so(+0x121ba8) [0x7ffec7521ba8]
/usr/lib64/dhewm3/base.so(+0x13a7b8) [0x7ffec753a7b8]
/usr/lib64/dhewm3/base.so(+0x133754) [0x7ffec7533754]
/usr/lib64/dhewm3/base.so(+0x13398c) [0x7ffec753398c]
/usr/lib64/dhewm3/base.so(+0x134d7c) [0x7ffec7534d7c]
/usr/lib64/dhewm3/base.so(+0x1a8d3c) [0x7ffec75a8d3c]
/usr/lib64/dhewm3/base.so(+0xb5664) [0x7ffec74b5664]
/usr/lib64/dhewm3/base.so(+0xb5ab0) [0x7ffec74b5ab0]
dhewm3(+0x17c410) [0x10a81c410]
dhewm3(+0x17c62c) [0x10a81c62c]
dhewm3(+0x16e888) [0x10a80e888]
dhewm3(+0x1712c0) [0x10a8112c0]
dhewm3(+0x17d864) [0x10a81d864]
dhewm3(+0x111384) [0x10a7b1384]
dhewm3(+0x344bc) [0x10a6d44bc]
/lib64/libc.so.6(+0x27c00) [0x7fff8e627c00]
/lib64/libc.so.6(__libc_start_main+0x94) [0x7fff8e627df4]
(Sorry it's not overly useful, build with libbacktrace support to get function names)
Segmentation fault (core dumped)
The text was updated successfully, but these errors were encountered: