Bug 1221544 - sdlpop quit with segfault briefly after starting
Summary: sdlpop quit with segfault briefly after starting
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Andrea Manzini
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-18 08:11 UTC by Andrea Manzini
Modified: 2024-03-29 14:17 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
coredump file (2.56 MB, application/zstd)
2024-03-18 08:20 UTC, Andrea Manzini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Manzini 2024-03-18 08:11:58 UTC
to reproduce:
$ sudo zypper in sdlpop

Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 2 NEW packages are going to be installed:
  libSDL2_image-2_0-0 sdlpop

2 new packages to install.
Overall download size: 724.7 KiB. Already cached: 0 B. After the operation, additional 1.2 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): 
Retrieving: libSDL2_image-2_0-0-2.8.2-1.2.x86_64 (openSUSE:Tumbleweed)                                    (1/2),  69.1 KiB    
Retrieving: libSDL2_image-2_0-0-2.8.2-1.2.x86_64.rpm ......................................................[done (89.9 KiB/s)]
Retrieving: sdlpop-1.23-2.1.x86_64 (openSUSE:Tumbleweed)                                                  (2/2), 655.6 KiB    
Retrieving: sdlpop-1.23-2.1.x86_64.rpm .....................................................................[done (2.8 MiB/s)]

Checking for file conflicts: ...........................................................................................[done]
(1/2) Installing: libSDL2_image-2_0-0-2.8.2-1.2.x86_64 .................................................................[done]
(2/2) Installing: sdlpop-1.23-2.1.x86_64 ...............................................................................[done]
Running post-transaction scripts .......................................................................................[done]


the game starts then suddenly crash with the message
 16675 segmentation fault (core dumped)  sdlpop

some entries from the journal log:

Mar 18 09:06:06 amanzini.manzonet kernel: sdlpop[16369]: segfault at 39f32670 ip 00007fb2c997ff6c sp 00007ffc1a7585a8 error 4>
Mar 18 09:06:06 amanzini.manzonet kernel: Code: 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 89 f8 62 a1 fd 00 ef c0>
Mar 18 09:06:06 amanzini.manzonet systemd[1]: Created slice Slice /system/drkonqi-coredump-processor.
Mar 18 09:06:06 amanzini.manzonet systemd[1]: Created slice Slice /system/systemd-coredump.
Mar 18 09:06:06 amanzini.manzonet systemd[1]: Started Process Core Dump (PID 16381/UID 0).
Mar 18 09:06:06 amanzini.manzonet systemd[1]: Started Pass systemd-coredump journal entries to relevant user for potential Dr>
Mar 18 09:06:07 amanzini.manzonet systemd-coredump[16382]: [🡕] Process 16369 (sdlpop) of user 1000 dumped core.
                                                           
                                                           Stack trace of thread 16369:
                                                           #0  0x00007fb2c997ff6c __strlen_evex (libc.so.6 + 0x17ff6c)
                                                           #1  0x00007fb2c98643e1 __printf_buffer (libc.so.6 + 0x643e1)
                                                           #2  0x00007fb2c9886526 __vsnprintf_internal (libc.so.6 + 0x86526)
                                                           #3  0x00007fb2c9921f84 __snprintf_chk (libc.so.6 + 0x121f84)
                                                           #4  0x0000564238fc667c load_sound (sdlpop + 0x3c67c)
                                                           #5  0x0000564238fa7652 load_sounds (sdlpop + 0x1d652)
                                                           #6  0x0000564238fa7732 load_all_sounds (sdlpop + 0x1d732)
                                                           #7  0x0000564238face5a init_game_main (sdlpop + 0x22e5a)
                                                           #8  0x0000564238fad2d0 pop_main (sdlpop + 0x232d0)
                                                           #9  0x0000564238fa3a98 main (sdlpop + 0x19a98)
                                                           #10 0x00007fb2c982a1f0 __libc_start_call_main (libc.so.6 + 0x2a1f0)
                                                           #11 0x00007fb2c982a2b9 __libc_start_main@@GLIBC_2.34 (libc.so.6 + >
                                                           #12 0x0000564238fa3ad5 _start (sdlpop + 0x19ad5)
                                                           
                                                           Stack trace of thread 16378:
                                                           #0  0x00007fb2c988effe __futex_abstimed_wait_common (libc.so.6 + 0>
                                                           #1  0x00007fb2c9891d40 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 +>
                                                           #2  0x00007fb2c5e5fe08 pa_threaded_mainloop_wait (libpulse.so.0 + >
                                                           #3  0x00007fb2c9c86587 n/a (libSDL2-2.0.so.0 + 0xf7587)
                                                           #4  0x00007fb2c9bc39d6 n/a (libSDL2-2.0.so.0 + 0x349d6)
                                                           #5  0x00007fb2c9cccddf n/a (libSDL2-2.0.so.0 + 0x13dddf)
                                                           #6  0x00007fb2c9892bb2 start_thread (libc.so.6 + 0x92bb2)
                                                           #7  0x00007fb2c991400c __clone3 (libc.so.6 + 0x11400c)
                                                           
                                                           Stack trace of thread 16376:
                                                           #0  0x00007fb2c990578f __poll (libc.so.6 + 0x10578f)
                                                           #1  0x00007fb2c5e5ee71 n/a (libpulse.so.0 + 0x33e71)
                                                           #2  0x00007fb2c5e48854 pa_mainloop_poll (libpulse.so.0 + 0x1d854)
                                                           #3  0x00007fb2c5e530d6 pa_mainloop_iterate (libpulse.so.0 + 0x280d>
                                                           #4  0x00007fb2c5e53180 pa_mainloop_run (libpulse.so.0 + 0x28180)
                                                           #5  0x00007fb2c5e62e19 n/a (libpulse.so.0 + 0x37e19)
                                                           #6  0x00007fb2c309089f n/a (libpulsecommon-17.0.so + 0x5d89f)
                                                           #7  0x00007fb2c9892bb2 start_thread (libc.so.6 + 0x92bb2)
                                                           #8  0x00007fb2c991400c __clone3 (libc.so.6 + 0x11400c)
                                                           
                                                           Stack trace of thread 16370:
                                                           #0  0x00007fb2c988effe __futex_abstimed_wait_common (libc.so.6 + 0>
                                                           #1  0x00007fb2c989b020 __new_sem_wait_slow64.constprop.0 (libc.so.>
                                                           #2  0x00007fb2c9cccfb2 n/a (libSDL2-2.0.so.0 + 0x13dfb2)
                                                           #3  0x00007fb2c9c209d6 n/a (libSDL2-2.0.so.0 + 0x919d6)
                                                           #4  0x00007fb2c9cccddf n/a (libSDL2-2.0.so.0 + 0x13dddf)
                                                           #5  0x00007fb2c9892bb2 start_thread (libc.so.6 + 0x92bb2)
                                                           #6  0x00007fb2c991400c __clone3 (libc.so.6 + 0x11400c)
                                                           
                                                           Stack trace of thread 16377:
                                                           #0  0x00007fb2c988effe __futex_abstimed_wait_common (libc.so.6 + 0>
                                                           #1  0x00007fb2c9891d40 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 +>
                                                           #2  0x00007fb2c5e5fe08 pa_threaded_mainloop_wait (libpulse.so.0 + >
                                                           #3  0x00007fb2c9c8e0f5 n/a (libSDL2-2.0.so.0 + 0xff0f5)
                                                           #4  0x00007fb2c9cccddf n/a (libSDL2-2.0.so.0 + 0x13dddf)
                                                           #5  0x00007fb2c9892bb2 start_thread (libc.so.6 + 0x92bb2)
                                                           #6  0x00007fb2c991400c __clone3 (libc.so.6 + 0x11400c)
                                                           ELF object binary architecture: AMD x86-64
Comment 1 Andrea Manzini 2024-03-18 08:20:25 UTC
Created attachment 873594 [details]
coredump file
Comment 2 Andrea Manzini 2024-03-18 08:25:09 UTC
some insights from gdb 

[Thread debugging using libthread_db enabled]                                                                                 
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/libexec/sdlpop/sdlpop'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fece457ff6c in __strlen_evex () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7fece4607f00 (LWP 16675))]
(gdb) backtrace
#0  0x00007fece457ff6c in __strlen_evex () from /lib64/libc.so.6
#1  0x00007fece44643e1 in __printf_buffer () from /lib64/libc.so.6
#2  0x00007fece4486526 in __vsnprintf_internal () from /lib64/libc.so.6
#3  0x00007fece4521f84 in __snprintf_chk () from /lib64/libc.so.6
#4  0x000055bfcc17067c in load_sound ()
#5  0x000055bfcc151652 in load_sounds ()
#6  0x000055bfcc151732 in load_all_sounds ()
#7  0x000055bfcc156e5a in init_game_main ()
#8  0x000055bfcc1572d0 in pop_main ()
#9  0x000055bfcc14da98 in main ()
Comment 3 Andrea Manzini 2024-03-20 07:24:02 UTC
I'm just sent an update for the package https://build.opensuse.org/request/show/1159764 that should fix the issue.
Comment 4 Andrea Manzini 2024-03-29 14:17:42 UTC
issue solved with the latest updated package sdlpop-1.23-3.1.x86_64