Bug 399277

Summary: Gcompris segfaults from erase.c when doing window wipe game
Product: [Applications] gcompris Reporter: pbhj
Component: generalAssignee: Bruno Coudoin <bruno.coudoin>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: jazeix
Priority: NOR Keywords: triaged
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description pbhj 2018-10-01 13:16:04 UTC
SUMMARY

Gcompris crashes repeatably when playing the window wiping mouse game.


STEPS TO REPRODUCE
1. start gcompris, select mouse games, select window wipe game
2. play game, at level 1
3. keep wiping windows, it crashes eventually; sometimes takes a few goes

OBSERVED RESULT

We get a segfault, under gdb the following output:

[New Thread 0x7fff9dd22700 (LWP 20331)]
[New Thread 0x7fffd0b60700 (LWP 20332)]
[New Thread 0x7fffe90e9700 (LWP 20333)]
[New Thread 0x7fffbc03b700 (LWP 20334)]
[New Thread 0x7fffe88e8700 (LWP 20335)]
[Thread 0x7fffe90e9700 (LWP 20333) exited]
[New Thread 0x7fffe90e9700 (LWP 20336)]

Thread 1 "gcompris" received signal SIGSEGV, Segmentation fault.
0x00007fffbb22fee7 in erase_one_item (item=0x555555ab4e30) at erase.c:460
460     erase.c: No such file or directory.
(gdb) bt
#0  0x00007fffbb22fee7 in erase_one_item (item=0x555555ab4e30) at erase.c:460
#1  0x00007ffff58c68a3 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff58c5e25 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff58c61f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff58c6502 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff767e727 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#6  0x0000555555562ef5 in main (argc=<optimised out>, argv=<optimised out>) at gcompris.c:2069
(gdb) 


EXPECTED RESULT

Don't segfault, let us wipe lots of windows, yay! Way to go! Awesome!

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.12.4-0ubuntu1~ubuntu17.10~ppa1
KDE Frameworks Version: 5.44.0-0ubuntu3~ubuntu17.10~ppa1
Qt Version: 4.8.7 (4:4.8.7+dfsg-7ubuntu1)

ADDITIONAL INFORMATION

Happy to help with repeating the crash, have repeated about 5 times; varies how long it takes but it might need one to change level repeatedly first, not entirely sure.
Comment 1 Jazeix Johnny 2018-10-01 13:24:28 UTC
Hi,

you are using the old Gtk+ version (that is no more maintained since more 3 years) not the actual Qt version.
Which OS are you using? Can you try installing the gcompris-qt package if it exists which corresponds to the actual maintained version
Comment 2 Andrew Crouthamel 2018-10-21 05:04:21 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!