Subject: pkg/30996: pgadmin3 crashes on startup due to pgadmin3.lng
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <erh@swapsimple.com>
List: pkgsrc-bugs
Date: 08/16/2005 00:15:00
>Number:         30996
>Category:       pkg
>Synopsis:       pgadmin3 crashes on startup due to pgadmin3.lng
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 16 00:15:00 +0000 2005
>Originator:     Eric Haszlakiewicz
>Release:        NetBSD 3.99.7
>Organization:
>Environment:
MesaLib-6.2.1nb2
Xfixes-2.0.1nb1
Xft2-2.1.6nb1
Xrandr-1.0.2nb2
Xrender-0.8.4nb1
atk-1.10.1
expat-1.95.8nb2
fixesext-2.0.1
fontconfig-2.3.2
freetype2-2.1.10
glib2-2.6.6nb1
glu-6.2.1nb1
gtk2+-2.6.9
jpeg-6bnb3
pango-1.8.2
perl-5.8.7nb3
pgadmin3-1.2.1
png-1.2.8
postgresql80-client-8.0.3nb2
readline-5.0
tiff-3.7.3
wxGTK-2.6.1nb1
wxGTK-contrib-2.6.1
xcursor-1.1.2
xdg-dirs-1.2

System: NetBSD poe.swapsimple.com 3.99.7 NetBSD 3.99.7 (POE) #12: Sun Jul 24 12:28:42 CDT 2005 erh@poe.swapsimple.com:/usr/build/POE i386
Architecture: i386
Machine: i386
>Description:
	I recently built pgadmin from wip/pgadmin3 and tried to run it.
It fails immediately due to some kind of wide character problem when reading
/usr/pkg/share/pgadmin3/pgadmin3.lng.
	The stack trace seems to point to somewhere in the wxGTK libraries, but
I wasn't able to get gdb to provide anymore useful info, so I don't know 
whether it's a problem with pgadmin3 or wxGTK or what.

(gdb) where
#0  0xbd477084 in wxMBConvUTF8::MB2WC(wchar_t*, char const*, unsigned) const ()
   from /usr/pkg/lib/libwx_base-2.6.so
#1  0x081d4393 in wxBitmapButtonBase::SetLabel(wxString const&) ()
#2  0x081cc372 in wxBitmapButtonBase::SetLabel(wxString const&) ()
#3  0x08062d93 in wxAppBase::Dispatch() ()
#4  0x0806439b in wxAppConsole::CallOnInit() ()
#5  0xbd45c655 in wxEntry(int&, char**) () from /usr/pkg/lib/libwx_base-2.6.so
#6  0x08062840 in wxAppBase::Dispatch() ()
#7  0x08062606 in wxAppBase::Dispatch() ()

>How-To-Repeat:
	cd /usr/pkgsrc/wip/pgadmin3 && make install
	pgadmin3
>Fix:
	I can work around the problem by editing pgadmin3.lng so the only line
in it is "English (U.S.), English".