#1034 PasswordSafe doesn't run unless LANG env. var. is en_US

open
Saurav Ghosh
Linux (75)
5
2013-12-06
2012-05-16
Saurav Ghosh
No

Platform: Linux mint 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 i386 GNU/Linux

The LANG environment variable on my machine is set to "en_IN". And passwordsafe won't refuses to run. The debug build dumps this on console without any UI ever coming up:

02:10:49 IST: ../src/common/intl.cpp(2765): assert "info" failed in IsAvailable(): invalid language
(process:3180): GLib-GObject-CRITICAL : /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()
(process:3180): GLib-CRITICAL
: g_once_init_leave: assertion initialization_value != 0' failed (process:3180): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init() (process:3180): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init() (process:3180): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init() (process:3180): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertionG_TYPE_IS_INSTANTIATABLE (instance_type)' failed
(process:3180): GLib-GObject-CRITICAL : /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()
(process:3180): GLib-GObject-CRITICAL
: g_type_interface_add_prerequisite: assertion G_TYPE_IS_INTERFACE (interface_type)' failed (process:3180): GLib-CRITICAL **: g_once_init_leave: assertioninitialization_value != 0' failed
(process:3180): GLib-GObject-CRITICAL : g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
(process:3180): GLib-GObject-CRITICAL
: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()
=================================================================

The release build dumps this:

The selected language is not supported by your system.Try installing support for this language.

But the "Enter Safe Combination" window does come up. But it exits as soon as I enter the password and hit Enter, with this stack trace:

=================================================================
saurav@mint ~/work/pwsafe/src/ui/wxWidgets/GCCUnicodeRelease $ glibc detected ./pwsafe: malloc(): memory corruption: 0x093014f0 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x6ff22)[0xfd0f22]
/lib/i386-linux-gnu/libc.so.6(+0x718be)[0xfd28be]
/lib/i386-linux-gnu/libc.so.6(libc_malloc+0x68)[0xfd47f8]
/usr/lib/i386-linux-gnu/libstdc++.so.6(Znwj+0x27)[0xa099d7]
/usr/lib/i386-linux-gnu/libstdc++.so.6(_ZNSbIwSt11char_traitsIwESaIwEE4_Rep9_S_createEjjRKS1
+0x77)[0xa04657]
/usr/lib/i386-linux-gnu/libstdc++.so.6(ZNSbIwSt11char_traitsIwESaIwEE12_S_constructIPKwEEPwT_S7_RKS1_St20forward_iterator_tag+0x4f)[0xa0688f]
/usr/lib/i386-linux-gnu/libstdc++.so.6(_ZNSbIwSt11char_traitsIwESaIwEEC1EPKwRKS1
+0x47)[0xa06a07]
./pwsafe[0x81cd5be]
./pwsafe[0x81759ed]
./pwsafe[0x815f14d]
./pwsafe[0x8075e44]
./pwsafe[0x808b02a]
./pwsafe(_ZN12wxAppConsole10CallOnInitEv+0xf)[0x808b85d]
/usr/lib/libwx_baseu-2.8.so.0(_Z7wxEntryRiPPw+0x78)[0x188d38]
/usr/lib/libwx_baseu-2.8.so.0(_Z7wxEntryRiPPc+0x36)[0x188de6]
./pwsafe[0x8087b38]
/lib/i386-linux-gnu/libc.so.6(
libc_start_main+0xf3)[0xf7a113]
./pwsafe[0x806b341]
======= Memory map: ========
00110000-0023f000 r-xp 00000000 08:01 53193 /usr/lib/libwx_baseu-2.8.so.0.7.0
0023f000-00243000 r--p 0012f000 08:01 53193 /usr/lib/libwx_baseu-2.8.so.0.7.0
00243000-00245000 rw-p 00133000 08:01 53193 /usr/lib/libwx_baseu-2.8.so.0.7.0
00245000-0024d000 rw-p 00000000 00:00 0
0024d000-00269000 r-xp 00000000 08:01 134819 /lib/i386-linux-gnu/libgcc_s.so.1
00269000-0026a000 r--p 0001b000 08:01 134819 /lib/i386-linux-gnu/libgcc_s.so.1
0026a000-0026b000 rw-p 0001c000 08:01 134819 /lib/i386-linux-gnu/libgcc_s.so.1
0026b000-00293000 r-xp 00000000 08:01 158315 /lib/i386-linux-gnu/libm-2.13.so
00293000-00294000 r--p 00028000 08:01 158315 /lib/i386-linux-gnu/libm-2.13.so
00294000-00295000 rw-p 00029000 08:01 158315 /lib/i386-linux-gnu/libm-2.13.so
00295000-00297000 r-xp 00000000 08:01 8688 /usr/lib/i386-linux-gnu/libXinerama.so.1.0.0
00297000-00298000 r--p 00001000 08:01 8688 /usr/lib/i386-linux-gnu/libXinerama.so.1.0.0
00298000-00299000 rw-p 00002000 08:01 8688 /usr/lib/i386-linux-gnu/libXinerama.so.1.0.0
00299000-002c1000 r-xp 00000000 08:01 53194 /usr/lib/libwx_baseu_net-2.8.so.0.7.0
002c1000-002c2000 r--p 00028000 08:01 53194 /usr/lib/libwx_baseu_net-2.8.so.0.7.0
002c2000-002c3000 rw-p 00029000 08:01 53194 /usr/lib/libwx_baseu_net-2.8.so.0.7.0
002c3000-002e1000 r-xp 00000000 08:01 8828 /usr/lib/i386-linux-gnu/libgdk_pixbuf-2.0.so.0.2400.0
002e1000-002e2000 r--p 0001d000 08:01 8828 /usr/lib/i386-linux-gnu/libgdk_pixbuf-2.0.so.0.2400.0
002e2000-002e3000 rw-p 0001e000 08:01 8828 /usr/lib/i386-linux-gnu/libgdk_pixbuf-2.0.so.0.2400.0
002e3000-00330000 r-xp 00000000 08:01 8857 /usr/lib/i386-linux-gnu/libgobject-2.0.so.0.3000.0
00330000-00331000 r--p 0004d000 08:01 8857 /usr/lib/i386-linux-gnu/libgobject-2.0.so.0.3000.0
00331000-00332000 rw-p 0004e000 08:01 8857 /usr/lib/i386-linux-gnu/libgobject-2.0.so.0.3000.0
00332000-00336000 r-xp 00000000 08:01 8866 /usr/lib/i386-linux-gnu/libgthread-2.0.so.0.3000.0
00336000-00337000 r--p 00003000 08:01 8866 /usr/lib/i386-linux-gnu/libgthread-2.0.so.0.3000.0
00337000-00338000 rw-p 00004000 08:01 8866 /usr/lib/i386-linux-gnu/libgthread-2.0.so.0.3000.0
00338000-0033f000 r-xp 00000000 08:01 8640 /usr/lib/i386-linux-gnu/libSM.so.6.0.1
0033f000-00340000 r--p 00006000 08:01 8640 /usr/lib/i386-linux-gnu/libSM.so.6.0.1
00340000-00341000 rw-p 00007000 08:01 8640 /usr/lib/i386-linux-gnu/libSM.so.6.0.1
00341000-00354000 r-xp 00000000 08:01 134881 /lib/i386-linux-gnu/libz.so.1.2.3.4
00354000-00355000 r--p 00012000 08:01 134881 /lib/i386-linux-gnu/libz.so.1.2.3.4
00355000-00356000 rw-p 00013000 08:01 134881 /lib/i386-linux-gnu/libz.so.1.2.3.4
00356000-00359000 r-xp 00000000 08:01 158312 /lib/i386-linux-gnu/libdl-2.13.so
00359000-0035a000 r--p 00002000 08:01 158312 /lib/i386-linux-gnu/libdl-2.13.so
0035a000-0035b000 rw-p 00003000 08:01 158312 /lib/i386-linux-gnu/libdl-2.13.so
0035e000-0035f000 r-xp 00000000 00:00 0 [vdso]
0035f000-00662000 r-xp 00000000 08:01 53206 /usr/lib/libwx_gtk2u_core-2.8.so.0.7.0
00662000-00689000 r--p 00302000 08:01 53206 /usr/lib/libwx_gtk2u_core-2.8.so.0.7.0
00689000-0068e000 rw-p 00329000 08:01 53206 /usr/lib/libwx_gtk2u_core-2.8.so.0.7.0
0068e000-00694000 rw-p 00000000 00:00 0
00694000-007c5000 r-xp 00000000 08:01 8648 /usr/lib/i386-linux-gnu/libX11.so.6.3.0
007c5000-007c6000 ---p 00131000 08:01 8648 /usr/lib/i386-linux-gnu/libX11.so.6.3.0
007c6000-007c7000 r--p 00131000 08:01 8648 /usr/lib/i386-linux-gnu/libX11.so.6.3.0
007c7000-007c9000 rw-p 00132000 08:01 8648 /usr/lib/i386-linux-gnu/libX11.so.6.3.0
007c9000-007ca000 rw-p 00000000 00:00 0
007ca000-00811000 r-xp 00000000 08:01 8938 /usr/lib/i386-linux-gnu/libpango-1.0.so.0.2903.0
00811000-00812000 r--p 00047000 08:01 8938 /usr/lib/i386-linux-gnu/libpango-1.0.so.0.2903.0
00812000-00813000 rw-p 00048000 08:01 8938 /usr/lib/i386-linux-gnu/libpango-1.0.so.0.2903.0
00813000-00824000 r-xp 00000000 08:01 8672 /usr/lib/i386-linux-gnu/libXext.so.6.4.0
00824000-00825000 r--p 00010000 08:01 8672 /usr/lib/i386-linux-gnu/libXext.so.6.4.0
00825000-00826000 rw-p 00011000 08:01 8672 /usr/lib/i386-linux-gnu/libXext.so.6.4.0
00826000-00831000 r-xp 00000000 08:01 8943 /usr/lib/i386-linux-gnu/libpangocairo-1.0.so.0.2903.0
00831000-00832000 r--p 0000a000 08:01 8943 /usr/lib/i386-linux-gnu/libpangocairo-1.0.so.0.2903.0
00832000-00833000 rw-p 0000b000 08:01 8943 /usr/lib/i386-linux-gnu/libpangocairo-1.0.so.0.2903.0
00833000-0084a000 r-xp 00000000 08:01 163658 /lib/i386-linux-gnu/libpthread-2.13.so
0084a000-0084b000 r--p 00016000 08:01 163658 /lib/i386-linux-gnu/libpthread-2.13.so
0084b000-0084c000 rw-p 00017000 08:01 163658 /lib/i386-linux-gnu/libpthread-2.13.so
0084c000-0084e000 rw-p 00000000 00:00 0
0084e000-00876000 r-xp 00000000 08:01 157173 /lib/i386-linux-gnu/libpng12.so.0.46.0
00876000-00877000 r--p 00027000 08:01 157173 /lib/i386-linux-gnu/libpng12.so.0.46.0
00877000-00878000 rw-p 00028000 08:01 157173 /lib/i386-linux-gnu/libpng12.so.0.46.0
00878000-0089a000 r-xp 00000000 08:01 8886 /usr/lib/i386-linux-gnu/libjpeg.so.62.0.0
0089a000-0089b000 r--p 00022000 08:01 8886 /usr/lib/i386-linux-gnu/libjpeg.so.62.0.0
0089b000-0089c000 rw-p 00023000 08:01 8886 /usr/lib/i386-linux-gnu/libjpeg.so.62.0.0
0089c000-008a0000 r-xp 00000000 08:01 8676 /usr/lib/i386-linux-gnu/libXfixes.so.3.1.0
008a0000-008a1000 r--p 00003000 08:01 8676 /usr/lib/i386-linux-gnu/libXfixes.so.3.1.0
008a1000-008a2000 rw-p 00004000 08:01 8676 /usr/lib/i386-linux-gnu/libXfixes.so.3.1.0
008a5000-0094f000 r-xp 00000000 08:01 53204 /usr/lib/libwx_gtk2u_adv-2.8.so.0.7.0
0094f000-00957000 r--p 000a9000 08:01 53204 /usr/lib/libwx_gtk2u_adv-2.8.so.0.7.0
=================================================================

Setting LANG=en_US brings up both builds fine, without any traces on the console. I didn't install any language packs or anything like that to make the issues go away.

Discussion

  • Saurav Ghosh
    Saurav Ghosh
    2012-05-16

    Forgot to mention. This was the personal build from the latest code as on May 16, 2012.

     
  • Saurav Ghosh
    Saurav Ghosh
    2012-05-16

    The 0.7 binary as posted on SF does come up from Accessories menu without any messing with LANG.

     
  • Saurav Ghosh
    Saurav Ghosh
    2012-05-16

    Correction: the Release build crashes even when LANG=en_US is set. Only the Debug build works with LANG=en_US.