#722639 berusky2: Segfault in XSync on exit

Package:
berusky2
Source:
berusky2
Description:
logic game Bugs Escape 3D
Submitter:
Guillem Jover
Date:
2013-09-17 18:06:05 UTC
Severity:
normal
#722639#5
Date:
2013-09-13 00:37:59 UTC
From:
To:
Hi!

At some point I got this when exiting the game (with the Esc key):

,---
[…]
ap_Release_Play_List
ap_Release_Material_List
ap_Release
Segmentation fault (core dumped)
`---

The backtrace for that core dump is:

,---
Core was generated by `berusky2'.
Program terminated with signal 11, Segmentation fault.
#0  XSync (dpy=0x0, discard=discard@entry=0) at ../../src/Sync.c:42
42      ../../src/Sync.c: No such file or directory.
(gdb) bt full
#0  XSync (dpy=0x0, discard=discard@entry=0) at ../../src/Sync.c:42
        rep = {type = 168 '\250', revertTo = 149 '\225',
          sequenceNumber = 31744, length = 32546, focus = 2087582160,
          pad1 = 32546, pad2 = 0, pad3 = 0, pad4 = 0, pad5 = 0}
#1  0x00007f227c044478 in X11_VideoQuit (this=0x1bb5dc0)
    at ../../src/video/x11/SDL_x11video.c:1491
No locals.
#2  0x00007f227c036c3e in SDL_VideoQuit () at ../../src/video/SDL_video.c:1365
        video = 0x1bb5dc0
        this = 0x1bb5dc0
        ready_to_go = <optimized out>
#3  0x00007f227c0111d5 in SDL_QuitSubSystem (flags=flags@entry=65535)
    at ../../src/SDL.c:196
No locals.
#4  0x00007f227c01127e in SDL_Quit () at ../../src/SDL.c:222
No locals.
#5  0x00007f227c0118bf in SDL_Parachute (sig=11) at ../../src/SDL_fatal.c:41
No locals.
#6  <signal handler called>
No locals.
#7  0x000000000055957c in ?? ()
No symbol table info available.
#8  0x00007f227ad57e0e in start_thread (arg=0x7f226ecf6700)
    at pthread_create.c:311
        __res = <optimized out>
        pd = 0x7f226ecf6700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139785864701696,
                -124161288581994295, 0, 139786066463968, 4096,
                139785864701696, 631574938200265, 587541738236105},
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
            data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = 0
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#9  0x00007f227a27593d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
No locals.
`---

This could actually be related to the XCB abort, just filing it
separately to avoid creating a mess of bug reports with possible
several issues intermingled, and because the reports can always be
merged.

Thanks,
Guillem

#722639#10
Date:
2013-09-13 12:20:18 UTC
From:
To:
Hi,

thanks for reporting this bug. I have had similar issues before and I
have also found this report from Fedora's backtrace tracker.

http://retrace.fedoraproject.org/faf/problems/1141452/


After doing some research I believe this might be some kind of threading
issue and I will forward this bug report upstream.

Regards,

Markus