Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIGSEGV when trying to launch #180

Open
kuon opened this issue Apr 14, 2020 · 4 comments
Open

SIGSEGV when trying to launch #180

kuon opened this issue Apr 14, 2020 · 4 comments

Comments

@kuon
Copy link

kuon commented Apr 14, 2020

When launching aegisub on arch linux, it immediately crash with the following trace.

https://gist.github.com/kuon/ef63f8be47e4cf0f9dfece8c0fcd0ee4

It seems to be crashing after opening /dev/urandom

https://gist.github.com/kuon/ef63f8be47e4cf0f9dfece8c0fcd0ee4#file-strace-log-L7729

@wangqr
Copy link

wangqr commented Apr 14, 2020

Can you provide the back trace when crashing? To get the back trace:

  • Run gdb "$(which aegisub)".
  • When you see (gdb) prompt, type r to start.
  • After it crashed because of SIGSEGV, type bt to get back trace.

If the back trace only contains binary offset, you may want to rebuild aegisub with debug symbols. To do this on Archlinux, get the PKGBUILD file first. Edit /etc/makepkg.conf:

  • In the OPTIONS=(...) line, set debug and unset strip, so it should be OPTIONS=(!strip debug ...)

Then run makepkg -si in the folder that contains PKGBUILD.

@kuon
Copy link
Author

kuon commented Apr 14, 2020

#0  0x00007ffff55920c9 in XQueryExtension () at /usr/lib/libX11.so.6
#1  0x00007ffff60adefd in  () at /usr/lib/libGLX.so.0
#2  0x00007ffff60b1536 in glXQueryVersion () at /usr/lib/libGLX.so.0
#3  0x00007ffff7ebb467 in wxGLCanvasX11::GetGLXVersion() () at /usr/lib/libwx_gtk3u_gl-3.0.so.0
#4  0x00007ffff7ebc4b6 in wxGLCanvasX11::ConvertWXAttrsToGL(int const*, int*, unsigned long) () at /usr/lib/libwx_gtk3u_gl-3.0.so.0
#5  0x00007ffff7ebcbe9 in wxGLCanvasX11::InitXVisualInfo(int const*, __GLXFBConfigRec***, XVisualInfo**) () at /usr/lib/libwx_gtk3u_gl-3.0.so.0
#6  0x00007ffff7ebd2c1 in wxGLCanvas::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&, int const*, wxPalette const&) ()
    at /usr/lib/libwx_gtk3u_gl-3.0.so.0
#7  0x00007ffff7ebd465 in wxGLCanvas::wxGLCanvas(wxWindow*, int, int const*, wxPoint const&, wxSize const&, long, wxString const&, wxPalette const&) ()
    at /usr/lib/libwx_gtk3u_gl-3.0.so.0
#8  0x00005555559c9f50 in  ()
#9  0x00005555559c40c2 in  ()
#10 0x00005555558fdb6b in  ()
#11 0x00005555558ff535 in  ()
#12 0x0000555555918290 in  ()
#13 0x000055555591b37b in  ()
#14 0x00007ffff72a74ea in wxEntry(int&, wchar_t**) () at /usr/lib/libwx_baseu-3.0.so.0
#15 0x0000555555681d72 in main ()

@kuon
Copy link
Author

kuon commented Apr 14, 2020

After looking at the backstrace I realized it might be cause by wayland.

GDK_BACKEND=x11 aegisub does not crash.

I am not sure if aegisub itself require a patch or if a library is at fault.

@wangqr
Copy link

wangqr commented Apr 14, 2020

Yes, GDK_BACKEND=x11 is required. It should have been fixed in https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/aegisub#n52 .

See also https://bugs.archlinux.org/task/55462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants