Hi! I always used veracrypt in scripts with the option "--text".
When I upgraded to Linux Mint 22 (Wilma), based on Ubuntu 24.01, calling "veracrypt --text" results in the following error:
(process:4460): GLib-GObject-CRITICAL : 20:14:27.721: g_object_get: assertion 'G_IS_OBJECT (object)' failed
double free or corruption (out)
Aborted (core dumped)
Note that works fine using the GUI, just the text option.
VeraCrypt version 1.26.14 from ppa unit193
List of linked library in attach.
I suspect is connected to some newer libs. On previous Mint release or on FreeBSD, it works just fineI had no chance to reproduce it on a plain Ubuntu 24.01.
Also, for completeness, I tried to compile the same veracrypt release (1.26.14) from sources and, on linking phase, I got the same or similar assertion error:
Compiling WaitDialog.cpp
Compiling WizardFrame.cpp
Linking veracrypt
(process:18602): GLib-GObject-CRITICAL : 22:04:10.650: g_object_get: assertion 'G_IS_OBJECT (object)' failed
double free or corruption (out)
Aborted (core dumped)
make[1]: * [Main.make:201: veracrypt] Error 1
make: * [Makefile:578: all] Error 2
**
Thanks
I could reproduce the same bug using stock Ubuntu Noble 24.04.1 (LTS) with latest updates at the present date (2024-11-20).
In attach a sosreport and the ldd of veracrypt binary.
Also tried to compile from the same sources, and I had the same issue of above during linking:
Linking veracrypt:
(process:27706): GLib-GObject-CRITICAL : 12:51:49.586: g_object_get: assertion 'G_IS_OBJECT (object)' failed
double free or corruption (out)
Aborted (core dumped)
make[1]: * [Main.make:201: veracrypt] Error 1
make: * [Makefile:578: all] Error 2
To compile, I've just installed Ubuntu 24.04.1, updated to latest, and installed the following packages:
gcc
gdb
bzip2
make g++
pkg-config
libpcsclite-dev
libpcsclite-dev
yasm
libfuse3-dev
libfuse-dev
libwxgtk3.2-dev
Thanks.
This issue is caused by a bug in wxWidgets 3.2.4, which is included with Ubuntu 24.04: https://github.com/wxWidgets/wxWidgets/commit/8ea22b5e92bf46add0b20059f6e39a938858ff97.
A similar issue was reported for VeraCrypt last year and it had the same root cause: VeraCrypt issue #1263.
While wxWidgets 3.2.5 fixes this bug, Canonical has not updated Ubuntu 24.04 to use the newer version.
The official VeraCrypt package for Ubuntu 24.04 statically links against wxWidgets 3.2.5 to avoid the buggy 3.2.4 version provided by the system. As a result, the official VeraCrypt package is not affected by this issue.