GithubHelp home page GithubHelp logo

Comments (14)

christopho avatar christopho commented on September 15, 2024

Can you post a gdb stack trace of the segfault? Can you also send me your savegame file that makes the segfault?
Thanks.

from zsdx.

christopho avatar christopho commented on September 15, 2024

I can reproduce the boss_killed_floor error but not the segfault. What exact version of the Solarus engine are you using? You should use the latest from solarus git (in the master branch).

from zsdx.

christopho avatar christopho commented on September 15, 2024

The boss_killed_floor error is fixed in zsdx 1.6.

from zsdx.

xioborg avatar xioborg commented on September 15, 2024

I'll get a stack trace later today, but here's the savegame files.

Steve Brueggeman

On 06/03/2013 03:42 AM, Christopho wrote:

Can you post a gdb stack trace of the segfault? Can you also send me
your savegame file that makes the segfault?
Thanks.


Reply to this email directly or view it on GitHub
#32 (comment).

_ability_get_back_from_death = 1
_ability_lift = 1
_ability_run = 1
_ability_shield = 1
_ability_sword = 1
_ability_tunic = 1
_current_life = 25
_current_magic = 34
_current_money = 119
_item_slot_1 = "bow"
_item_slot_2 = "boomerang"
_joypad_action = "button 0"
_joypad_attack = "button 1"
_joypad_down_key = "axis 1 +"
_joypad_item_1 = "button 2"
_joypad_item_2 = "button 3"
_joypad_left_key = "axis 0 -"
_joypad_pause = "button 4"
_joypad_right = "axis 0 +"
_joypad_up_key = "axis 1 -"
_keyboard_action = "space"
_keyboard_attack = "c"
_keyboard_down = "down"
_keyboard_item_1 = "x"
_keyboard_item_2 = "v"
_keyboard_left = "left"
_keyboard_pause = "d"
_keyboard_right = "right"
_keyboard_up = "up"
_max_life = 28
_max_magic = 42
_max_money = 300
_starting_map = "40"
_starting_point = "from_outside"
_version = 2
b10 = true
b100 = true
b101 = true
b102 = true
b103 = true
b108 = true
b11 = true
b110 = true
b111 = true
b112 = true
b114 = true
b115 = true
b116 = true
b117 = true
b13 = true
b130 = true
b137 = true
b14 = true
b17 = true
b22 = true
b23 = true
b24 = true
b25 = true
b26 = true
b28 = true
b29 = true
b30 = true
b31 = true
b32 = true
b33 = true
b35 = true
b36 = true
b37 = true
b38 = true
b39 = true
b40 = true
b41 = false
b43 = true
b44 = true
b45 = true
b46 = true
b47 = true
b48 = true
b49 = true
b5 = true
b50 = true
b51 = true
b52 = true
b54 = true
b55 = true
b56 = true
b57 = true
b58 = true
b59 = true
b60 = true
b61 = true
b62 = true
b63 = true
b64 = true
b66 = true
b68 = true
b69 = true
b71 = true
b72 = true
b73 = true
b74 = true
b75 = true
b76 = true
b77 = true
b78 = true
b79 = true
b80 = true
b81 = true
b82 = true
b83 = true
b84 = true
b85 = true
b86 = true
b87 = true
b88 = true
b89 = true
b90 = true
b91 = true
b92 = true
b923 = true
b924 = true
b93 = true
b94 = true
b945 = true
b95 = true
b951 = true
b954 = true
b96 = true
b97 = true
b98 = true
b99 = true
dungeon_1_big_key = true
dungeon_1_boss_key = true
dungeon_1_compass = true
dungeon_1_finished = true
dungeon_1_map = true
dungeon_1_small_keys = 0
dungeon_2_big_key = true
dungeon_2_boss_key = true
dungeon_2_compass = true
dungeon_2_finished = true
dungeon_2_map = true
dungeon_2_small_keys = 0
dungeon_3_small_keys = 1
i1024 = 9
i1025 = 9
i1027 = 1
i1028 = 0
i1030 = 2
i1031 = 1
i1032 = 1
i1033 = 1
i1034 = 2
i1035 = 1
i1101 = 1
i1102 = 2
i1103 = 2
i1104 = 1
i1106 = 6
i1107 = 1
i1110 = 1
i1112 = 1
i1114 = 1
i1116 = 1
i1117 = 1
i1125 = 1
i1128 = 1
i1129 = 1
i1130 = 1
pause_inventory_last_item_index = 2
pause_last_submenu = 1
player_name = "Steve1"

_ability_get_back_from_death = 1
_ability_lift = 1
_ability_run = 1
_ability_shield = 1
_ability_sword = 1
_ability_tunic = 1
_current_life = 28
_current_magic = 38
_current_money = 17
_item_slot_1 = "bombs_counter"
_item_slot_2 = "boomerang"
_joypad_action = "button 0"
_joypad_attack = "button 1"
_joypad_down_key = "axis 1 +"
_joypad_item_1 = "button 2"
_joypad_item_2 = "button 3"
_joypad_left_key = "axis 0 -"
_joypad_pause = "button 4"
_joypad_right = "axis 0 +"
_joypad_up_key = "axis 1 -"
_keyboard_action = "space"
_keyboard_attack = "c"
_keyboard_down = "down"
_keyboard_item_1 = "x"
_keyboard_item_2 = "v"
_keyboard_left = "left"
_keyboard_pause = "d"
_keyboard_right = "right"
_keyboard_up = "up"
_max_life = 28
_max_magic = 42
_max_money = 300
_starting_map = "40"
_starting_point = "from_outside"
_version = 2
b10 = true
b100 = true
b102 = true
b103 = true
b11 = true
b110 = true
b111 = true
b112 = true
b114 = true
b115 = true
b116 = true
b117 = true
b13 = true
b130 = true
b137 = true
b14 = true
b17 = true
b22 = true
b23 = true
b24 = true
b25 = true
b26 = true
b28 = true
b29 = true
b30 = true
b31 = true
b32 = true
b33 = true
b35 = true
b36 = true
b37 = true
b38 = true
b39 = true
b40 = true
b41 = false
b43 = true
b44 = true
b45 = true
b46 = true
b47 = true
b48 = true
b49 = true
b5 = true
b50 = true
b51 = true
b52 = true
b54 = true
b55 = true
b56 = true
b57 = true
b58 = true
b59 = true
b60 = true
b61 = true
b62 = true
b63 = true
b64 = true
b66 = true
b68 = true
b69 = true
b71 = true
b72 = true
b73 = true
b74 = true
b75 = true
b76 = true
b77 = true
b78 = true
b79 = true
b80 = true
b81 = true
b82 = true
b83 = true
b84 = true
b85 = true
b86 = true
b87 = true
b88 = true
b89 = true
b90 = true
b91 = true
b92 = true
b923 = true
b924 = true
b93 = true
b94 = true
b945 = true
b95 = true
b951 = true
b954 = true
b96 = true
b97 = true
b98 = true
b99 = true
dungeon_1_big_key = true
dungeon_1_boss_key = true
dungeon_1_compass = true
dungeon_1_finished = true
dungeon_1_map = true
dungeon_1_small_keys = 0
dungeon_2_big_key = true
dungeon_2_boss_key = true
dungeon_2_compass = true
dungeon_2_finished = true
dungeon_2_map = true
dungeon_2_small_keys = 0
i1024 = 9
i1025 = 10
i1026 = 2
i1027 = 2
i1028 = 0
i1030 = 1
i1031 = 1
i1032 = 1
i1033 = 1
i1034 = 2
i1035 = 1
i1101 = 1
i1102 = 2
i1103 = 2
i1104 = 1
i1106 = 6
i1107 = 1
i1110 = 1
i1111 = 1
i1112 = 1
i1114 = 1
i1116 = 1
i1117 = 1
i1125 = 1
i1128 = 1
i1129 = 1
i1130 = 1
pause_inventory_last_item_index = 1
pause_last_submenu = 1
player_name = "Steveo"

video_mode = "fullscreen_normal"
sound_volume = 50
music_volume = 30
language = "en"
joypad_enabled = true

from zsdx.

christopho avatar christopho commented on September 15, 2024

Thanks! I still don't reproduce the crash with your savegame file. Maybe the stack trace will be helpful :)

from zsdx.

xioborg avatar xioborg commented on September 15, 2024

No stack trace. It doesn't crash when I'm in windowed mode. I've been
running in fullscreen streached. Attached is my settings file hoping you
can reproduce the problem with my settings.

Because I'm running in this mode, my screen just goes black when the
crash happens when running gdb. I haven't yet thought of a way around
this. I do have another computer networked with this one, but I'm not at
all familiar with using remote gdb.

I have an ATI Radeon 7500 running the latest fglrx proprietary driver.
I hope that's not causing the problem.

Also, I've found another bug in dungeon 3. When I shoot the arrow on
the c_water_switch, the camera moves, and I get the water changing
sound, but the water does not actually drop.

Steve Brueggeman

On 06/03/2013 08:37 AM, Christopho wrote:

Thanks! I still don't reproduce the crash with your savegame file.
Maybe the stack trace will be helpful :)


Reply to this email directly or view it on GitHub
#32 (comment).

video_mode = "fullscreen_normal"
sound_volume = 50
music_volume = 30
language = "en"
joypad_enabled = true

from zsdx.

christopho avatar christopho commented on September 15, 2024

Can you open another issue for the problem in dungeon 3 please? Thanks.

Instead of a stack trace, a core file would be also helpful. Was a core file generated (a file named core. in the directory of the solarus executable)? If no, type this before running solarus:
ulimit -c unlimited

Also compile solarus in debug mode:
cmake -DCMAKE_BUILD_TYPE=Debug .
make

Then, reproduce the segfault again and send me both your core file and your solarus executable to christopho at solarus-games.org.

from zsdx.

xioborg avatar xioborg commented on September 15, 2024

Well now, that's irritating, a sollidly reproducible bug disappears.
I'll keep running with ulimit -c unlimited just in case it happens again.

On 06/04/2013 03:28 AM, Christopho wrote:

Can you open another issue for the problem in dungeon 3 please? Thanks.

Instead of a stack trace, a core file would be also helpful. Was a
core file generated (a file named core. in the directory of the
solarus executable)? If no, type this before running solarus:
ulimit -c unlimited

Also compile solarus in debug mode:
cmake -DCMAKE_BUILD_TYPE=Debug .
make

Then, reproduce the segfault again and send me both your core file and
your solarus executable to christopho at solarus-games.org.


Reply to this email directly or view it on GitHub
#32 (comment).

from zsdx.

xioborg avatar xioborg commented on September 15, 2024

Blasted yahoo mail will not let me send you the coredump I got running
solarus compiled as BUILD_TYPE=Release. Says message too large. I do
not have any public storage available to put this. Do you?

Steve

On 06/04/2013 03:28 AM, Christopho wrote:

Can you open another issue for the problem in dungeon 3 please? Thanks.

Instead of a stack trace, a core file would be also helpful. Was a
core file generated (a file named core. in the directory of the
solarus executable)? If no, type this before running solarus:
ulimit -c unlimited

Also compile solarus in debug mode:
cmake -DCMAKE_BUILD_TYPE=Debug .
make

Then, reproduce the segfault again and send me both your core file and
your solarus executable to christopho at solarus-games.org.


Reply to this email directly or view it on GitHub
#32 (comment).

from zsdx.

xioborg avatar xioborg commented on September 15, 2024

OK, here's the gdb backtrace on the core dump

#0 0x0000003467674543 in
std::_Rb_tree_increment(std::_Rb_tree_node_base const*) () from
/lib64/libstdc++.so.6
#1 0x00000000004b5a9a in LuaContext::update_drawables() ()
#2 0x0000000000472b79 in LuaContext::update() ()
#3 0x0000000000457db8 in MainLoop::run() ()
#4 0x000000000045347e in main ()

Steve.

On 06/03/2013 08:37 AM, Christopho wrote:

Thanks! I still don't reproduce the crash with your savegame file.
Maybe the stack trace will be helpful :)


Reply to this email directly or view it on GitHub
#32 (comment).

from zsdx.

christopho avatar christopho commented on September 15, 2024

Thanks for the backtrace. This is helpful, I think I know how to fix the bug. I should be able to fix it without the core file.

from zsdx.

xioborg avatar xioborg commented on September 15, 2024

Another backtrace below

GNU gdb (GDB) 7.5.1-7.mga3 (Mageia release 3)
Copyright (C) 2012 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-mageia-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /home/stevebr/devel/games/zelda-solarus/solarus-20130602b/solarus...done.
[New LWP 13434]
[New LWP 13436]
[New LWP 13437]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `../../solarus'.
Program terminated with signal 11, Segmentation fault.
#0 0x00000000005105a7 in Drawable::update (this=0x1202470) at /home/stevebr/devel/games/zelda-solarus/solarus-20130602b/src/Drawable.cpp:166
166 movement->update();
Missing separate debuginfos, use: debuginfo-install glibc-2.17-5.mga3.x86_64 lib64SDL1.2_0-1.2.15-4.mga3.x86_64 lib64SDL_image1.2_0-1.2.12-2.mga3.x86_64 lib64SDL_ttf2.0_0-2.0.11-2.mga3.x86_64 lib64aa1-1.4.0-0.rc5.25.mga3.x86_64 lib64asyncns0-0.8-5.mga3.x86_64 lib64dbus1_3-1.6.8-4.mga3.x86_64 lib64directfb1.6_0-1.6.2-3.mga3.x86_64 lib64flac8-1.2.1-13.mga3.x86_64 lib64freetype6-2.4.11-2.mga3.x86_64 lib64ggi2-2.2.2-19.mga3.x86_64 lib64gii1-1.0.2-17.mga3.x86_64 lib64jbig1-2.0-6.mga3.x86_64 lib64jpeg8-1.2.1-4.mga3.x86_64 lib64json2-0.11-0.3.mga3.x86_64 lib64lua5.1-5.1.5-2.mga3.x86_64 lib64lzma5-5.1.2-0.alpha.3.mga3.x86_64 lib64modplug1-0.8.8.4-3.mga3.x86_64 lib64ncurses5-5.9-10.mga3.x86_64 lib64ncursesw5-5.9-10.mga3.x86_64 lib64ogg0-1.3.0-2.mga3.x86_64 lib64openal1-1.15.1-3.mga3.x86_64 lib64physfs2-2.0.3-1.mga3.x86_64 lib64png15_15-1.5.13-2.mga3.x86_64 lib64pulseaudio0-3.0-7.mga3.x86_64 lib64pulsecommon3.0-3.0-7.mga3.x86_64 lib64readline6-6.2-7.mga3.x86_64 lib64slang2-2.2.4-7.mga3.x86_64 lib64sndfile1-1.0.25-2.mga3.x86_64 lib64tiff5-4.0.3-4.mga3.x86_64 lib64vorbis0-1.3.3-3.mga3.x86_64 lib64vorbisenc2-1.3.3-3.mga3.x86_64 lib64vorbisfile3-1.3.3-3.mga3.x86_64 lib64wrap0-7.6-43.mga3.x86_64 lib64x11_6-1.5.0-4.mga3.x86_64 lib64xau6-1.0.7-2.mga3.x86_64 lib64xcb1-1.9-3.mga3.x86_64 lib64xcursor1-1.1.13-3.mga3.x86_64 lib64xdmcp6-1.1.1-3.mga3.x86_64 lib64xext6-1.3.1-2.mga3.x86_64 lib64xfixes3-5.0-4.mga3.x86_64 lib64xrender1-0.9.7-3.mga3.x86_64 lib64xxf86dga1-1.1.3-2.mga3.x86_64 lib64zlib1-1.2.7-7.mga3.x86_64 libgcc1-4.7.2-7.mga3.x86_64 libstdc++6-4.7.2-7.mga3.x86_64
(gdb) bt
#0 0x00000000005105a7 in Drawable::update (this=0x1202470) at /home/stevebr/devel/games/zelda-solarus/solarus-20130602b/src/Drawable.cpp:166
#1 0x00000000004ebd92 in LuaContext::update_drawables (this=0x1230e70) at /home/stevebr/devel/games/zelda-solarus/solarus-20130602b/src/lua/DrawableAPI.cpp:85
#2 0x00000000004b9f60 in LuaContext::update (this=0x1230e70) at /home/stevebr/devel/games/zelda-solarus/solarus-20130602b/src/lua/LuaContext.cpp:172
#3 0x00000000004aa539 in MainLoop::update (this=0x7fffe62b2640) at /home/stevebr/devel/games/zelda-solarus/solarus-20130602b/src/MainLoop.cpp:274
#4 0x00000000004aa307 in MainLoop::run (this=0x7fffe62b2640) at /home/stevebr/devel/games/zelda-solarus/solarus-20130602b/src/MainLoop.cpp:174
#5 0x00000000004a9c2b in main (argc=1, argv=0x7fffe62b2778) at /home/stevebr/devel/games/zelda-solarus/solarus-20130602b/src/lowlevel/Main.cc:63
(gdb) l
161 }
162 }
163 }
164
165 if (movement != NULL) {
166 movement->update();
167 if (movement != NULL && movement->is_finished()) {
168 stop_movement();
169 }
170 }
(gdb) p movement
$1 = (Movement *) 0x4
(gdb)

from zsdx.

christopho avatar christopho commented on September 15, 2024

Reopening the bug since the segfault is not fixed yet.

from zsdx.

christopho avatar christopho commented on September 15, 2024

The segfault should now be fixed in commit solarus-games/solarus@f4fd3db. The bug was in solarus, not in zsdx so you have to update and recompile solarus.
Please confirm that you no longer have a segfault.

from zsdx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.