FS#80184 - [veracrypt] g_object_get: assertion 'G_IS_OBJECT (object)' failed

Attached to Project: Arch Linux
Opened by Martin Sand (sandstorm) - Tuesday, 07 November 2023, 07:29 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:21 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
freswa (frederik)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Executing all commands on the command line starting with "veracrypt -t" lead to an invalid pointer. Unclear if this is a package dependency issue or an upstream issue.


Additional info:
* package version: extra/veracrypt 1.25.9-4 (newest)

Steps to reproduce:
1. Open terminal, enter "veracrypt -t"
2. Output
(process:4329): GLib-GObject-CRITICAL **: 08:27:08.567: g_object_get: assertion 'G_IS_OBJECT (object)' failed
free(): invalid pointer
Aborted (core dumped)
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:21 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/veracrypt/issues/2
Comment by Martin Sand (sandstorm) - Tuesday, 07 November 2023, 08:59 GMT Comment by loqs (loqs) - Tuesday, 07 November 2023, 10:48 GMT
Does updating to the 1.26.7 release resolve the issue? See attached diff. Built package provided below.
Please note some features were removed with this upstream release see  FS#79896 .

https://drive.google.com/file/d/1UrcxwxctZDcjDC9xuJTlaKJcGm0sH1Tt/view?usp=sharing veracrypt-1.26.7-1-x86_64.pkg.tar.zst
Comment by Toolybird (Toolybird) - Tuesday, 07 November 2023, 20:01 GMT
> 1. Open terminal, enter "veracrypt -t"

Works fine here i.e. cannot repro. Any other factors needed to make it crash?

> Aborted (core dumped)

Please provide a backtrace that contains debugging info. It's usually as simple as this (with gdb installed):

$ coredumpctl gdb (then answer y when it asks "Enable debuginfod for this session?")
(gdb) set logging enabled
(gdb) bt (or bt full)

Then post gdb.txt

More info in the Wiki [1] (but slightly out-of-date and incomplete) and also here [2].

[1] https://wiki.archlinux.org/title/Debugging/Getting_traces
[2] https://blogs.gnome.org/mcatanzaro/2021/09/18/creating-quality-backtraces-for-crash-reports/
Comment by Martin Sand (sandstorm) - Tuesday, 07 November 2023, 20:59 GMT
I have a headless server where I also use veracrypt. No window manager installed, runs smoothly.

Here is the backtrace:

#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1 0x00007fdcedaac8a3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2 0x00007fdceda5c668 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3 0x00007fdceda444b8 in __GI_abort () at abort.c:79
#4 0x00007fdceda45390 in __libc_message (fmt=fmt@entry=0x7fdcedbbc55d "%s\n") at ../sysdeps/posix/libc_fatal.c:150
#5 0x00007fdcedab67b7 in malloc_printerr (str=str@entry=0x7fdcedbba02b "free(): invalid pointer") at malloc.c:5765
#6 0x00007fdcedab8a74 in _int_free (av=<optimized out>, p=<optimized out>, have_lock=have_lock@entry=0) at malloc.c:4500
#7 0x00007fdcedabb353 in __GI___libc_free (mem=<optimized out>) at malloc.c:3391
#8 0x00007fdcee9cabbd in () at /usr/lib/libwx_gtk3u_core-3.2.so.0
#9 0x00007fdcee9cad0a in wxSystemSettingsModule::OnInit() () at /usr/lib/libwx_gtk3u_core-3.2.so.0
#10 0x00007fdcee11ee62 in wxModule::DoInitializeModule(wxModule*, wxVector<wxModule*>&) () at /usr/lib/libwx_baseu-3.2.so.0
#11 0x00007fdcee122418 in wxModule::InitializeModules() () at /usr/lib/libwx_baseu-3.2.so.0
#12 0x00007fdcee1157a0 in () at /usr/lib/libwx_baseu-3.2.so.0
#13 0x00007fdcee115faa in wxEntryStart(int&, wchar_t**) () at /usr/lib/libwx_baseu-3.2.so.0
#14 0x00007fdcee116360 in wxEntry(int&, wchar_t**) () at /usr/lib/libwx_baseu-3.2.so.0
#15 0x000055add60de9f7 in ()
#16 0x00007fdceda45cd0 in __libc_start_call_main (main=main@entry=0x55add60de7c0, argc=argc@entry=2, argv=argv@entry=0x7ffd75a8bc48) at ../sysdeps/nptl/libc_start_call_main.h:58
#17 0x00007fdceda45d8a in __libc_start_main_impl (main=0x55add60de7c0, argc=2, argv=0x7ffd75a8bc48, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd75a8bc38) at ../csu/libc-start.c:360
#18 0x000055add60e5775 in ()
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1 0x00007fdcedaac8a3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2 0x00007fdceda5c668 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3 0x00007fdceda444b8 in __GI_abort () at abort.c:79
#4 0x00007fdceda45390 in __libc_message (fmt=fmt@entry=0x7fdcedbbc55d "%s\n") at ../sysdeps/posix/libc_fatal.c:150
#5 0x00007fdcedab67b7 in malloc_printerr (str=str@entry=0x7fdcedbba02b "free(): invalid pointer") at malloc.c:5765
#6 0x00007fdcedab8a74 in _int_free (av=<optimized out>, p=<optimized out>, have_lock=have_lock@entry=0) at malloc.c:4500
#7 0x00007fdcedabb353 in __GI___libc_free (mem=<optimized out>) at malloc.c:3391
#8 0x00007fdcee9cabbd in () at /usr/lib/libwx_gtk3u_core-3.2.so.0
#9 0x00007fdcee9cad0a in wxSystemSettingsModule::OnInit() () at /usr/lib/libwx_gtk3u_core-3.2.so.0
#10 0x00007fdcee11ee62 in wxModule::DoInitializeModule(wxModule*, wxVector<wxModule*>&) () at /usr/lib/libwx_baseu-3.2.so.0
#11 0x00007fdcee122418 in wxModule::InitializeModules() () at /usr/lib/libwx_baseu-3.2.so.0
#12 0x00007fdcee1157a0 in () at /usr/lib/libwx_baseu-3.2.so.0
#13 0x00007fdcee115faa in wxEntryStart(int&, wchar_t**) () at /usr/lib/libwx_baseu-3.2.so.0
#14 0x00007fdcee116360 in wxEntry(int&, wchar_t**) () at /usr/lib/libwx_baseu-3.2.so.0
#15 0x000055add60de9f7 in ()
#16 0x00007fdceda45cd0 in __libc_start_call_main (main=main@entry=0x55add60de7c0, argc=argc@entry=2, argv=argv@entry=0x7ffd75a8bc48) at ../sysdeps/nptl/libc_start_call_main.h:58
#17 0x00007fdceda45d8a in __libc_start_main_impl (main=0x55add60de7c0, argc=2, argv=0x7ffd75a8bc48, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd75a8bc38) at ../csu/libc-start.c:360
#18 0x000055add60e5775 in ()
Comment by loqs (loqs) - Tuesday, 07 November 2023, 21:06 GMT
Appears to be an issue in wxWidgets 3.2.3 console usage [1]. I can not reproduce the issue locally either.
Edit:
The issue [2] needs multiple commits to fix, not just [1].
Edit2:
I think at least [3] is needed as well.

[1]: https://github.com/wxWidgets/wxWidgets/commit/4cabfa111ab5912ae30d6d44b917a9c403845b3f
[2]: https://github.com/wxWidgets/wxWidgets/issues/23981
[3]: https://github.com/wxWidgets/wxWidgets/commit/5af28133a0b787ecf99d9c25e973e0fa43b1c18d
Comment by loqs (loqs) - Tuesday, 07 November 2023, 21:26 GMT
I have uploaded wxwidgets 3.2.3 with [1] and [2] applied and pkgrel 1.1 linked below:

https://drive.google.com/drive/folders/1sASAH_YGlnSEonJt-7tX2xqWoveDTUjg?usp=sharing
Edit:
Replaced patched 3.2.3 packages with 3.2.4 based packages with pkgrel 0.1.

[1]: https://github.com/wxWidgets/wxWidgets/commit/4cabfa111ab5912ae30d6d44b917a9c403845b3f
[2] https://github.com/wxWidgets/wxWidgets/commit/5af28133a0b787ecf99d9c25e973e0fa43b1c18d
Comment by loqs (loqs) - Saturday, 11 November 2023, 23:19 GMT
Is this fixed with wxwidgets-gtk3/wxwidgets-common 3.2.4-1 now in extra?
Comment by loqs (loqs) - Thursday, 23 November 2023, 22:05 GMT
Appears it is not fixed with wxwidgets-gtk3/wxwidgets-common 3.2.4-1 [1].
Edit:
May be fixed by 8ea22b5e92bf46add0b20059f6e39a938858ff97 [2]. I have uploaded wxwidgets 3.2.4 with [2] applied and pkgrel 1.1 linked below:
https://drive.google.com/drive/folders/1sASAH_YGlnSEonJt-7tX2xqWoveDTUjg
Edit: confirmed 8ea22b5e92bf46add0b20059f6e39a938858ff97 fixes the issue [3].

[1]: https://github.com/wxWidgets/wxWidgets/issues/24081
[2]: https://github.com/wxWidgets/wxWidgets/commit/8ea22b5e92bf46add0b20059f6e39a938858ff97
[3]: https://bbs.archlinux.org/viewtopic.php?pid=2133416#p2133416

Loading...