DFHack / dfhack

Memory hacking library for Dwarf Fortress and a set of tools that use it
Other
1.84k stars 461 forks source link

Segfault on 0.47.03-beta1 #1521

Closed ror6ax closed 4 years ago

ror6ax commented 4 years ago
./dfhack: line 83: 103134 Segmentation fault      (core dumped) setarch "$setarch_arch" -R env LD_PRELOAD="$PRELOAD_LIB" ./libs/Dwarf_Fortress "$@"

How do I upload more data for debugging? Error logs are empty.

ragundo commented 4 years ago

If you have a RelWithDbgInfo version of DFHack, start it and attach gdb/Visual Studio or whatever debugger you use to the process.

lethosor commented 4 years ago

We didn't release a 0.47.03-rc1 - can you double-check what build you're using? When does this segfault occur? Is it reproducible?

erikjuvan commented 4 years ago

Hello, since the issue is open, I also seem to be having similiar issues, so I thought I would pitch in. My system: Linux arch 5.4.15-arch1-1 #1 SMP PREEMPT Sun, 26 Jan 2020 09:48:50 +0000 x86_64 GNU/Linux Dwarffortress v0.47.04 DFHack version 0.47.04-alpha0 - built from AUR

Segfault happenes in plugins/stonesense/ItemConfiguration.cpp on line if(contentLoader->itemConfigs[main_type] == nullptr) because itemConfigs seems to be empty.

Also the last text that is displayed before it hangs is: Loading stonesense/items/greiger items/Grei_items.xml

Also the logs (stderr.log and stdout.log) are empty.

lethosor commented 4 years ago

@erikjuvan does that happen when you launch Stonesense or when you start DF (or something else)?

erikjuvan commented 4 years ago

@lethosor I run ./dfhack, then from dfhack console I run stonesense. Segfault happens when DF goes to actual gameplay (when stonesense starts loading resources).

lethosor commented 4 years ago

Your issue might be https://github.com/DFHack/stonesense/issues/68, then

lethosor commented 4 years ago

@ror6ax we're going to need more details to address this - first off, does it occur in 0.47.04-beta1 or newer? If so, is it reproducible? Is it specific to any save (if so, uploading it would help)? What architecture (32-bit or 64-bit) are you using?

lethosor commented 4 years ago

We're going to need more information to be able to reproduce/fix this, unfortunately. Feel free to reopen this if it's reproducible in >=0.47.04.

shawntan commented 4 years ago

Just tested this on 0.47.04, same thing happens for me, stops at:

Loading stonesense/items/greiger items/Grei_items.xml

lethosor commented 4 years ago

Could you add details on the Stonesense crash to https://github.com/DFHack/stonesense/issues/68? The initial report here is likely unrelated.