#1019340 Segfaults on startup

Package:
tucnak
Source:
tucnak
Description:
VHF/UHF/SHF Hamradio contest logging program
Submitter:
Christoph Berg
Date:
2024-02-26 11:27:02 UTC
Severity:
normal
#1019340#3
Date:
2022-09-07 14:57:14 UTC
From:
To:
tucnak doesn't start here:

$ LC_ALL=C tucnak
tucnak: ../src/GLX/libglx.c:966: CommonMakeCurrent: Assertion `oldCtxInfo != NULL' failed.
Abgebrochen (Speicherabzug geschrieben)

The stack traces look mostly like garbage:

                Stack trace of thread 1472741:
                #0  0x00007febdaa8983c __pthread_kill_implementation (libc.so.6 + 0x8983c)
                #1  0x00007febdaa3da52 __GI_raise (libc.so.6 + 0x3da52)
                #2  0x00007febdaa28469 __GI_abort (libc.so.6 + 0x28469)
                #3  0x00007febdaa28395 __assert_fail_base (libc.so.6 + 0x28395)
                #4  0x00007febdaa36b02 __GI___assert_fail (libc.so.6 + 0x36b02)
                #5  0x00007febd80aa3bf n/a (libGLX.so.0 + 0x53bf)
                #6  0x00007febdc1418a3 n/a (libSDL2-2.0.so.0 + 0x10d8a3)
                #7  0x00007febdc114aba n/a (libSDL2-2.0.so.0 + 0xe0aba)
                #8  0x00007febdc115de6 n/a (libSDL2-2.0.so.0 + 0xe1de6)
                #9  0x00007febdc115ee1 n/a (libSDL2-2.0.so.0 + 0xe1ee1)
                #10 0x00007febdc0650b2 n/a (libSDL2-2.0.so.0 + 0x310b2)
                #11 0x00007febdc0654f8 n/a (libSDL2-2.0.so.0 + 0x314f8)
                #12 0x00005586f25c0438 tucnak_crash (tucnak + 0xb0438)
                #13 0x00007febdc3589d4 z_sig_segv (libzia-4.36.so + 0x169d4)
                #14 0x00007febdaa3daf0 __restore_rt (libc.so.6 + 0x3daf0)
                #15 0x00007febd5ead5ee n/a (crocus_dri.so + 0xad5ee)
                #16 0x00007febd80836e6 glPrimitiveBoundingBox (libGLX_mesa.so.0 + 0x4e6e6)
                #17 0x00007febd8085d32 glPrimitiveBoundingBox (libGLX_mesa.so.0 + 0x50d32)
                #18 0x00007febd80860d3 glPrimitiveBoundingBox (libGLX_mesa.so.0 + 0x510d3)
                #19 0x00007febd5eaf0df n/a (crocus_dri.so + 0xaf0df)
                #20 0x00007febd5eaf21f n/a (crocus_dri.so + 0xaf21f)
                #21 0x00007febd5eb2205 n/a (crocus_dri.so + 0xb2205)
                #22 0x00007febd5f85c92 n/a (crocus_dri.so + 0x185c92)
                #23 0x00007febd5f85f9a n/a (crocus_dri.so + 0x185f9a)
                #24 0x00007febd5eb1de4 n/a (crocus_dri.so + 0xb1de4)
                #25 0x00007febd5eb4d51 n/a (crocus_dri.so + 0xb4d51)
                #26 0x00007febd8077efc n/a (libGLX_mesa.so.0 + 0x42efc)
                #27 0x00007febd80687f2 n/a (libGLX_mesa.so.0 + 0x337f2)
                #28 0x00007febd80a87e3 n/a (libGLX.so.0 + 0x37e3)
                #29 0x00007febd80a9116 n/a (libGLX.so.0 + 0x4116)
                #30 0x00007febd80aa378 n/a (libGLX.so.0 + 0x5378)
                #31 0x00007febdc1418a3 n/a (libSDL2-2.0.so.0 + 0x10d8a3)
                #32 0x00007febdc114aba n/a (libSDL2-2.0.so.0 + 0xe0aba)
                #33 0x00007febdc0a7daa n/a (libSDL2-2.0.so.0 + 0x73daa)
                #34 0x00007febdc0a9e0a n/a (libSDL2-2.0.so.0 + 0x75e0a)
                #35 0x00007febdc09d981 n/a (libSDL2-2.0.so.0 + 0x69981)
                #36 0x00007febdc09fda9 n/a (libSDL2-2.0.so.0 + 0x6bda9)
                #37 0x00007febdc087d3a n/a (libSDL2-2.0.so.0 + 0x53d3a)
                #38 0x00007febdc08e11d n/a (libSDL2-2.0.so.0 + 0x5a11d)
                #39 0x00007febdc08deb6 n/a (libSDL2-2.0.so.0 + 0x59eb6)
                #40 0x00007febdc13a02c n/a (libSDL2-2.0.so.0 + 0x10602c)
                #41 0x00007febdc13b6db n/a (libSDL2-2.0.so.0 + 0x1076db)
                #42 0x00007febdc087e33 n/a (libSDL2-2.0.so.0 + 0x53e33)
                #43 0x00005586f2631edb sdl_event_thread (tucnak + 0x121edb)
                #44 0x00007febdc279c0d n/a (libglib-2.0.so.0 + 0x7ec0d)
                #45 0x00007febdaa87b27 start_thread (libc.so.6 + 0x87b27)
                #46 0x00007febdab0a78c __clone3 (libc.so.6 + 0x10a78c)

                Stack trace of thread 1472737:
                #0  0x00007febdaaa13db __memmove_sse2_unaligned_erms (libc.so.6 + 0xa13db)
                #1  0x00007febd5f72904 n/a (crocus_dri.so + 0x172904)
                #2  0x00007febd5f34f9d n/a (crocus_dri.so + 0x134f9d)
                #3  0x00007febd5f3831d n/a (crocus_dri.so + 0x13831d)
                #4  0x00007febd5f3e928 n/a (crocus_dri.so + 0x13e928)
                #5  0x00007febdc0a8949 n/a (libSDL2-2.0.so.0 + 0x74949)
                #6  0x00007febdc0a0fc9 n/a (libSDL2-2.0.so.0 + 0x6cfc9)
                #7  0x00007febdc1110f9 n/a (libSDL2-2.0.so.0 + 0xdd0f9)
                #8  0x00007febdc11222c n/a (libSDL2-2.0.so.0 + 0xde22c)
                #9  0x00005586f26337da progress (tucnak + 0x1237da)
                #10 0x00005586f258bb05 main (tucnak + 0x7bb05)
                #11 0x00007febdaa2920a __libc_start_call_main (libc.so.6 + 0x2920a)
                #12 0x00007febdaa292bc __libc_start_main_impl (libc.so.6 + 0x292bc)
                #13 0x00005586f258c0d1 _start (tucnak + 0x7c0d1)

                Stack trace of thread 1472740:
                #0  0x00007febdaa847ea __futex_abstimed_wait_common64 (libc.so.6 + 0x847ea)
                #1  0x00007febdaa86f20 __pthread_cond_wait_common (libc.so.6 + 0x86f20)
                #2  0x00007febd5f086b9 n/a (crocus_dri.so + 0x1086b9)
                #3  0x00007febd5ebd76b n/a (crocus_dri.so + 0xbd76b)
                #4  0x00007febd5f085f7 n/a (crocus_dri.so + 0x1085f7)
                #5  0x00007febdaa87b27 start_thread (libc.so.6 + 0x87b27)
                #6  0x00007febdab0a78c __clone3 (libc.so.6 + 0x10a78c)

                Stack trace of thread 1472742:
                #0  0x00007febdaa847ea __futex_abstimed_wait_common64 (libc.so.6 + 0x847ea)
                #1  0x00007febdaa86f20 __pthread_cond_wait_common (libc.so.6 + 0x86f20)
                #2  0x00007febd5f086b9 n/a (crocus_dri.so + 0x1086b9)
                #3  0x00007febd5ebd76b n/a (crocus_dri.so + 0xbd76b)
                #4  0x00007febd5f085f7 n/a (crocus_dri.so + 0x1085f7)
                #5  0x00007febdaa87b27 start_thread (libc.so.6 + 0x87b27)
                #6  0x00007febdab0a78c __clone3 (libc.so.6 + 0x10a78c)

                Stack trace of thread 1472738:
                #0  0x00007febdaa847ea __futex_abstimed_wait_common64 (libc.so.6 + 0x847ea)
                #1  0x00007febdaa86f20 __pthread_cond_wait_common (libc.so.6 + 0x86f20)
                #2  0x00007febd5f086b9 n/a (crocus_dri.so + 0x1086b9)
                #3  0x00007febd5ebd76b n/a (crocus_dri.so + 0xbd76b)
                #4  0x00007febd5f085f7 n/a (crocus_dri.so + 0x1085f7)
                #5  0x00007febdaa87b27 start_thread (libc.so.6 + 0x87b27)
                #6  0x00007febdab0a78c __clone3 (libc.so.6 + 0x10a78c)
                ELF object binary architecture: AMD x86-64

#1019340#12
Date:
2022-09-07 15:56:38 UTC
From:
To:
Hi Christoph,

Hmm... it starts and runs here, so I don't think it is broken for
everyone.  I uninstalled and reinstalled to be sure that I'm running the
binaries from the archive.  Perhaps related to differences in windowing
setups?  I'm running xwayland and Gnome.

Looking at your stack trace, my first guess is that this is an issue
introduced in libzia based on this bit.

I will poke through the libzia changes.

Thanks,
tony

#1019340#15
Date:
2022-09-09 12:45:41 UTC
From:
To:
Re: tony mancill

Fair enough. It worked for me before in the sense that I could see the
UI, but I never got it to do anything useful for me. I always
attributed it to me being too lazy to read the documentation, but I
think last time I actually tried to find some documentation on how to
use it, but didn't find anything. (So I ended up using tlf to log a
VHF+ contest which is less than ideal because it really doesn't like
frequencies that have too many digits.)

X and awesome here, no desktop environment.

Thanks

Christoph

#1019340#20
Date:
2022-09-22 09:28:52 UTC
From:
To:
Hello Christoph, hello tony,

The crash looks like it happened in crocus_dri.so.
Could the possible difference be the gpu driver that is in use on your systems.
As far as I see crocus is for Intel gpus, and arrived just last year in Mesa.
Therefore it might be just reproducible with this hardware.

 From [1] it might be possible to use another driver.
Maybe MESA_LOADER_DRIVER_OVERRIDE=i965 could work for this hardware?

Kind regards,
Bernhard

[1] https://wiki.archlinux.org/title/OpenGL#Installation

#1019340#23
Date:
2022-09-22 12:57:40 UTC
From:
To:
Re: Bernhard Übelacker

$ MESA_LOADER_DRIVER_OVERRIDE=swrast tucnak
libGL error: image driver extension not found
libGL error: failed to load driver: swrast
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: swrast
GLib: unsetenv() is not thread-safe and should not be used after threads are created
dbind: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/130/at-spi/bus_0: Datei oder Verzeichnis nicht gefunden
GLib-GIO: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
GLib-GIO: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
Speicherzugriffsfehler (Speicherabzug geschrieben)

Christoph

#1019340#26
Date:
2022-10-06 09:34:56 UTC
From:
To:
Re: tony mancill

Is it just broken for me and Bernhard, or for most people?

Christoph

#1019340#31
Date:
2022-10-06 22:08:59 UTC
From:
To:
Christoph Berg wrote:

the version from package 4.36-2 works for me, with "LC_ALL=C tucnak"
and without LC_ALL set

#1019340#34
Date:
2022-10-07 09:31:28 UTC
From:
To:
Re: Daniele Forsi

Ok, let's downgrade it then since it doesn't affect me in the sense
I'm not using the package (though I probably should once I start doing
more VHF contests). But something in there is quite broken, it was
still crashing here when I wrote the previous mail.

Christoph DF7CB

#1019340#41
Date:
2022-10-08 16:11:56 UTC
From:
To:
Thank you Christoph.  I agree completely that something has gone wrong
since I uploaded 4.36.  I simply haven't been able to reproduce it yet
locally.  The new priority seems appropriate to me.

I see that 4.37 has been released.  I will get an update into unstable
soon.

Cheers,
tony

#1019340#48
Date:
2024-02-26 11:16:46 UTC
From:
To:
close 1019340
thanks