Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 852839 - media-gfx/solvespace-3.x segmentation fault on language change with system mimalloc
Summary: media-gfx/solvespace-3.x segmentation fault on language change with system mi...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-17 21:22 UTC by Victor Kustov
Modified: 2024-07-31 17:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Kustov 2022-06-17 21:22:02 UTC
Try to change language:
Help -> Language -> (any language include English (US)

Result: segfault.

strace:

openat(AT_FDCWD, "/usr/share/solvespace/locales/es_AR.po", O_RDONLY) = 15
newfstatat(15, "", {st_mode=S_IFREG|0644, st_size=59103, ...}, AT_EMPTY_PATH) = 0
newfstatat(15, "", {st_mode=S_IFREG|0644, st_size=59103, ...}, AT_EMPTY_PATH) = 0
lseek(15, 57344, SEEK_SET)              = 57344
read(15, "\"\nmsgid \"&OK\"\nmsgstr \"&Aceptar\"\n"..., 1759) = 1759
lseek(15, 0, SEEK_SET)                  = 0
read(15, "# Spanish/Argentina translations"..., 57344) = 57344
read(15, "\"\nmsgid \"&OK\"\nmsgstr \"&Aceptar\"\n"..., 4096) = 1759
close(15)                               = 0
write(2, "Missing (empty) translation for "..., 53) = 53
write(2, "\n", 1)                       = 1
write(2, "Missing (empty) translation for "..., 64) = 64
write(2, "\n", 1)                       = 1
write(2, "Missing (empty) translation for "..., 53) = 53
write(2, "\n", 1)                       = 1
write(2, "Missing (empty) translation for "..., 58) = 58
write(2, "\n", 1)                       = 1
write(2, "Missing (empty) translation for "..., 54) = 54
write(2, "\n", 1)                       = 1
--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=NULL} ---
+++ killed by SIGSEGV +++

gdb:
Thread 1 "solvespace" received signal SIGSEGV, Segmentation fault.
0x000055555562c86c in SolveSpace::GraphicsWindow::EnsureValidActives() ()
(gdb) bt
#0  0x000055555562c86c in SolveSpace::GraphicsWindow::EnsureValidActives() ()
#1  0x00007ffff7d3f55e in Gtk::MenuItem_Class::activate_callback(_GtkMenuItem*) () at /usr/lib64/libgtkmm-3.0.so.1
#2  0x00007ffff6ec85ff in g_closure_invoke () at /usr/lib64/libgobject-2.0.so.0
#3  0x00007ffff6ed9dd5 in  () at /usr/lib64/libgobject-2.0.so.0
#4  0x00007ffff6ee0591 in g_signal_emit_valist () at /usr/lib64/libgobject-2.0.so.0
#5  0x00007ffff6ee0b3f in g_signal_emit () at /usr/lib64/libgobject-2.0.so.0
#6  0x00007ffff746f9f4 in gtk_widget_activate () at /usr/lib64/libgtk-3.so.0
#7  0x00007ffff7336e56 in gtk_menu_shell_activate_item () at /usr/lib64/libgtk-3.so.0
#8  0x00007ffff7337133 in  () at /usr/lib64/libgtk-3.so.0
#9  0x00007ffff74c2ed4 in  () at /usr/lib64/libgtk-3.so.0
#10 0x00007ffff6ec8829 in  () at /usr/lib64/libgobject-2.0.so.0
#11 0x00007ffff6edfc7b in g_signal_emit_valist () at /usr/lib64/libgobject-2.0.so.0
#12 0x00007ffff6ee0b3f in g_signal_emit () at /usr/lib64/libgobject-2.0.so.0
#13 0x00007ffff746cb64 in  () at /usr/lib64/libgtk-3.so.0
#14 0x00007ffff73218d0 in  () at /usr/lib64/libgtk-3.so.0
#15 0x00007ffff732332d in gtk_main_do_event () at /usr/lib64/libgtk-3.so.0
#16 0x00007ffff7014565 in  () at /usr/lib64/libgdk-3.so.0
#17 0x00007ffff7048062 in  () at /usr/lib64/libgdk-3.so.0
#18 0x00007ffff6dd3a0b in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#19 0x00007ffff6dd3cb8 in  () at /usr/lib64/libglib-2.0.so.0
#20 0x00007ffff6dd3fa3 in g_main_loop_run () at /usr/lib64/libglib-2.0.so.0
#21 0x00007ffff73224f5 in gtk_main () at /usr/lib64/libgtk-3.so.0
#22 0x00005555555913d6 in main ()
Comment 1 Matthew Smith gentoo-dev 2022-06-17 21:25:45 UTC
Seems to be related to dynamically linking to mimalloc.

As a workaround, you can edit $HOME/.config/solvespace/settings.json and change the "Locale" line at the bottom.
Comment 2 Matthew Smith gentoo-dev 2022-07-03 08:22:28 UTC
system-mimalloc USE flag added to work around the issue, hoping to find time to figure it out and fix it properly though.