Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#62259 - [vbam-wx] Segfaults when loading ROM

Attached to Project: Community Packages
Opened by No (herpderp) - Saturday, 06 April 2019, 18:54 GMT
Last edited by Maxime Gauduin (Alucryd) - Monday, 08 April 2019, 07:35 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

After updating to 2.1.1-3, visualboyadvance-m segfaults immediately after loading every ROM I've tried. Version 2.1.1-1 was the last version of vbam-wx that worked for me. I do not have this problem with vbam-sdl 2.1.1-3. As a temporary workaround I downgraded to vbam-wx 2.1.1-1.

This commit (https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/vbam&id=5177f71a7a6d14f4d1d604f867b573e3b6a28f06) specifies that vbam-wx was rebuilt with wxgtk 3.1.2. However, the most recent version of wxgtk3 in the extra repository (and therefore the one installed on my system) is 3.0.4-2. I suspect that this might be the cause.

For completeness' sake, I'm including the stack trace.

systemd-coredump[25735]: Process 25704 (visualboyadvanc) of user xxx dumped core.

Stack trace of thread 25704:
#0 0x000056534e064f04 _ZN8GameArea6OnIdleER11wxIdleEvent (visualboyadvance-m)
#1 0x00007f5fd56f989e _ZN12wxEvtHandler23ProcessEventIfMatchesIdERK21wxEventTableEntryBasePS_R7wxEvent (libwx_baseu-3.0.so.0)
#2 0x00007f5fd56f99a4 _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler (libwx_baseu-3.0.so.0)
#3 0x00007f5fd56f9cde _ZN12wxEvtHandler11TryHereOnlyER7wxEvent (libwx_baseu-3.0.so.0)
#4 0x00007f5fd56f9d64 _ZN12wxEvtHandler19ProcessEventLocallyER7wxEvent (libwx_baseu-3.0.so.0)
#5 0x00007f5fd56f9e02 _ZN12wxEvtHandler12ProcessEventER7wxEvent (libwx_baseu-3.0.so.0)
#6 0x00007f5fd56f9ba7 _ZN12wxEvtHandler18SafelyProcessEventER7wxEvent (libwx_baseu-3.0.so.0)
#7 0x00007f5fd5c41421 _ZN12wxWindowBase14SendIdleEventsER11wxIdleEvent (libwx_gtk3u_core-3.0.so.0)
#8 0x00007f5fd5c413f8 _ZN12wxWindowBase14SendIdleEventsER11wxIdleEvent (libwx_gtk3u_core-3.0.so.0)
#9 0x00007f5fd5ae4270 _ZN7wxFrame14SendIdleEventsER11wxIdleEvent (libwx_gtk3u_core-3.0.so.0)
#10 0x00007f5fd5b24fbe _ZN9wxAppBase11ProcessIdleEv (libwx_gtk3u_core-3.0.so.0)
#11 0x00007f5fd5a5cd86 _ZN5wxApp6DoIdleEv (libwx_gtk3u_core-3.0.so.0)
#12 0x00007f5fd5a5ce94 n/a (libwx_gtk3u_core-3.0.so.0)
#13 0x00007f5fd2dd2661 g_main_context_dispatch (libglib-2.0.so.0)
#14 0x00007f5fd2dd4739 n/a (libglib-2.0.so.0)
#15 0x00007f5fd2dd56d2 g_main_loop_run (libglib-2.0.so.0)
#16 0x00007f5fd326494f gtk_main (libgtk-3.so.0)
#17 0x00007f5fd5a79c46 _ZN14wxGUIEventLoop5DoRunEv (libwx_gtk3u_core-3.0.so.0)
#18 0x00007f5fd55c6bae _ZN15wxEventLoopBase3RunEv (libwx_baseu-3.0.so.0)
#19 0x00007f5fd558b517 _ZN16wxAppConsoleBase8MainLoopEv (libwx_baseu-3.0.so.0)
#20 0x00007f5fd56134c8 _Z7wxEntryRiPPw (libwx_baseu-3.0.so.0)
#21 0x000056534de6e47f main (visualboyadvance-m)
#22 0x00007f5fd651e223 __libc_start_main (libc.so.6)
#23 0x000056534de6e52e _start (visualboyadvance-m)

Stack trace of thread 25706:
#0 0x00007f5fd65eac21 __poll (libc.so.6)
#1 0x00007f5fd2dd4690 n/a (libglib-2.0.so.0)
#2 0x00007f5fd2dd477e g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f5fd2dd47d2 n/a (libglib-2.0.so.0)
#4 0x00007f5fd2dafc21 n/a (libglib-2.0.so.0)
#5 0x00007f5fd6397a9d start_thread (libpthread.so.0)
#6 0x00007f5fd65f5b23 __clone (libc.so.6)

Stack trace of thread 25707:
#0 0x00007f5fd65eac21 __poll (libc.so.6)
#1 0x00007f5fd2dd4690 n/a (libglib-2.0.so.0)
#2 0x00007f5fd2dd56d2 g_main_loop_run (libglib-2.0.so.0)
#3 0x00007f5fcea89568 n/a (libgio-2.0.so.0)
#4 0x00007f5fd2dafc21 n/a (libglib-2.0.so.0)
#5 0x00007f5fd6397a9d start_thread (libpthread.so.0)
#6 0x00007f5fd65f5b23 __clone (libc.so.6)

Stack trace of thread 25719:
#0 0x00007f5fd65f04ed syscall (libc.so.6)
#1 0x00007f5fd2d83141 g_cond_wait_until (libglib-2.0.so.0)
#2 0x00007f5fd2e042e3 n/a (libglib-2.0.so.0)
#3 0x00007f5fd2da8e1b n/a (libglib-2.0.so.0)
#4 0x00007f5fd2dafc21 n/a (libglib-2.0.so.0)
#5 0x00007f5fd6397a9d start_thread (libpthread.so.0)
#6 0x00007f5fd65f5b23 __clone (libc.so.6)

Stack trace of thread 25730:
#0 0x00007f5fd65ead16 ppoll (libc.so.6)
#1 0x00007f5fb67cda13 pa_mainloop_poll (libpulse.so.0)
#2 0x00007f5fb67cdfe0 pa_mainloop_iterate (libpulse.so.0)
#3 0x00007f5fb67ce091 pa_mainloop_run (libpulse.so.0)
#4 0x00007f5fd64779b0 n/a (libSDL2-2.0.so.0)
#5 0x00007f5fd6415f9f n/a (libSDL2-2.0.so.0)
#6 0x00007f5fd64996ea n/a (libSDL2-2.0.so.0)
#7 0x00007f5fd6397a9d start_thread (libpthread.so.0)
#8 0x00007f5fd65f5b23 __clone (libc.so.6)

Stack trace of thread 25733:
#0 0x00007f5fd65ead16 ppoll (libc.so.6)
#1 0x00007f5fb67cda13 pa_mainloop_poll (libpulse.so.0)
#2 0x00007f5fb67cdfe0 pa_mainloop_iterate (libpulse.so.0)
#3 0x00007f5fd6477847 n/a (libSDL2-2.0.so.0)
#4 0x00007f5fd63cef21 n/a (libSDL2-2.0.so.0)
#5 0x00007f5fd6415f9f n/a (libSDL2-2.0.so.0)
#6 0x00007f5fd64996ea n/a (libSDL2-2.0.so.0)
#7 0x00007f5fd6397a9d start_thread (libpthread.so.0)
#8 0x00007f5fd65f5b23 __clone (libc.so.6)
-- Subject: Process 25704 (visualboyadvanc) dumped core
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: man:core(5)
--
-- Process 25704 (visualboyadvanc) crashed and dumped core.
--
-- This usually indicates a programming error in the crashing program and
-- should be reported to its vendor as a bug.

Steps to reproduce:

* Install vbam-wx 2.1.1-3 (with wxgtk3 3.0.4-2)
* Start visualboyadvance-m
* File -> Open (or Open GB or Open GBC or Open recent)
* Segfault
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Monday, 08 April 2019, 07:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.1.2-1
Comment by Antonio Rojas (arojas) - Saturday, 06 April 2019, 19:17 GMT
> I suspect that this might be the cause.

No, the version built with wxgtk 3.1 never made it to the stable repos. -3 and -1 should be identical.
Comment by No (herpderp) - Saturday, 06 April 2019, 20:48 GMT
Well, they're not. For me the bug persists across re-downloading the packages (not from cache), re-installing and even rebooting.

In the packages, only the usr/bin/visualboyadvance-m binary differs. I checked the shared library dependencies for both binaries and for -1 it (among others) depends on libGL.so.1, libGLX.so.0, libGLdispatch.so.0, and libwx_gtk3u_gl-3.0.so.0, while for the -3 binary these shared libraries are missing. Some OpenGL parts that are not properly linked perhaps?

Does that mean that you cannot reproduce this behavior? Is there more information that I can provide?
Comment by Antonio Rojas (arojas) - Saturday, 06 April 2019, 23:16 GMT
The difference is due to building against cmake 3.14, which has significant changes in the wxwidgets module. It should be fixed with b69fced749c51fd7437d59b5b2517f015f2d3f05, which is included in 2.1.2
Comment by Maxime Gauduin (Alucryd) - Sunday, 07 April 2019, 07:27 GMT
Just pushed 2.1.2-1, can you give that one a try?
Comment by No (herpderp) - Sunday, 07 April 2019, 07:41 GMT
I can confirm that 2.1.2-1 works fine again. Thanks for the comments and the new release!

Loading...