Project

General

Profile

Bug #9618

55b3d355 causes segfault at start with non-C locale

Added by Per Östlund over 6 years ago. Updated over 6 years ago.

Status:
Fixed
Priority:
High
Assignee:
Category:
General
Start date:
10/10/2013
Due date:
% Done:

100%

Estimated time:
Affected Version:
git development version
System:
other GNU/Linux
bitness:
64-bit
hardware architecture:
amd64/x86

Description

Darktable segfaults for me when my locale is set to something other than C. If I start darktable with LC_ALL=C it starts with no issues, but if I use another locale like my normal locale of sv_SE.UTF-8 I get (originally in swedish, translated to english by me):

ptrace: Operation not permitted
/var/cache/pacman/pkg/31027: File or directory not found.
backtrace written to /tmp/darktable_bt_UWYO4W.txt
Segmentation fault (core dumped)

The backtrace written to /tmp only says no stack, so I ran gdb instead and got the following backtrace:
#0  0x00007ffff70b4b50 in g_markup_escape_text () from /usr/lib/libglib-2.0.so.0
#1  0x00007ffff6778d49 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#2  0x00007ffff6e2ee52 in g_object_set_valist () from /usr/lib/libgobject-2.0.so.0
#3  0x00007ffff6e2f6a7 in g_object_set () from /usr/lib/libgobject-2.0.so.0
#4  0x00007fff40265371 in gui_init () from /usr/lib/darktable/plugins/imageio/storage/libdisk.so
#5  0x00007ffff79d228b in ?? () from /usr/bin/../lib/darktable/libdarktable.so
#6  0x00007ffff79a5e7a in dt_init () from /usr/bin/../lib/darktable/libdarktable.so
#7  0x000000000040082e in main ()

git bisect points to 55b3d355 as the cause. I'm running ArchLinux 64-bit with glib 2.38.0.

Associated revisions

Revision 7194ed0a (diff)
Added by Roman Lebedev over 6 years ago

Redo 55b3d355: Fix wrong sizeof argument

This fixes #9618

History

#1 Updated by Roman Lebedev over 6 years ago

  • Assignee set to Roman Lebedev

#2 Updated by Roman Lebedev over 6 years ago

Please try fix-issue-9618 branch

#3 Updated by Per Östlund over 6 years ago

Roman Lebedev wrote:

Please try fix-issue-9618 branch

The branch fixes the issue for me, thanks.

#4 Updated by Roman Lebedev over 6 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Fixed

Merged to master.

Also available in: Atom PDF

Go to top