pgadmin3 segfaults on startup. Looks like a malloc issue? - Mailing list pgadmin-support

From Shea Martin
Subject pgadmin3 segfaults on startup. Looks like a malloc issue?
Date
Msg-id 42001795.9080504@arcis.com
Whole thread Raw
In response to I fixed a couple compile errors, but not all, help...  (Shea Martin <smartin@arcis.com>)
Responses Re: pgadmin3 segfaults on startup. Looks like  (Shea Martin <smartin@arcis.com>)
List pgadmin-support
I am going to try again.  I built/installed the gtk2 version of 
wxWidgets, with --enable-debug.  made all the wx demos, and tested them 
out.  Then I built pgdmin3 with --enable-debug.  Running 
/usr/local/pgadmin3/bin/pgadmin3 results in a segfault. 

I loaded pgadmin3 into gdb.  Here is some output.  I am not really 
familiar with gdb escpecially on the command line (we use dbx at work), 
so this may not show a lot.   Let me know if there are some other 
commands you would like me to try.

<gdb_output>
[rita](164){/usr/local/pgadmin3/bin}$ gdb pgadmin3
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) run
Starting program: /usr/local/pgadmin3/bin/pgadmin3
[New LWP 1]
[New LWP 2]
[New LWP 3]
[New LWP 4]
[New LWP 5]

Program received signal SIGSEGV, Segmentation fault.
0xfe141ef0 in _malloc_unlocked () from /usr/lib/libc.so.1
(gdb) bt
#0  0xfe141ef0 in _malloc_unlocked () from /usr/lib/libc.so.1
#1  0xfe141c34 in _smalloc () from /usr/lib/libc.so.1
#2  0xfe141cc0 in malloc () from /usr/lib/libc.so.1
</gdb_output>

The output of ldd is:
<ldd_output>   libssl.so.0.9.7 =>     /usr/local/ssl/lib/libssl.so.0.9.7   libnsl.so.1 =>     /usr/lib/libnsl.so.1
libsocket.so.1=>     /usr/lib/libsocket.so.1   libcrypto.so.0.9.7 =>     /usr/local/ssl/lib/libcrypto.so.0.9.7
libpq.so.3=>     /usr/local/pgsql/lib/libpq.so.3   libwx_gtk2d_stc-2.5.so.3.0.0 =>
/usr/local/lib/libwx_gtk2d_stc-2.5.so.3.0.0  libwx_gtk2d_xrc-2.5.so.3.0.0 =>
/usr/local/lib/libwx_gtk2d_xrc-2.5.so.3.0.0  libwx_gtk2d_html-2.5.so.3.0.0 =>
/usr/local/lib/libwx_gtk2d_html-2.5.so.3.0.0  libwx_gtk2d_adv-2.5.so.3.0.0 =>
/usr/local/lib/libwx_gtk2d_adv-2.5.so.3.0.0  libwx_gtk2d_core-2.5.so.3.0.0 =>
/usr/local/lib/libwx_gtk2d_core-2.5.so.3.0.0  libwx_based_xml-2.5.so.3.0.0 =>
/usr/local/lib/libwx_based_xml-2.5.so.3.0.0  libwx_based_net-2.5.so.3.0.0 =>
/usr/local/lib/libwx_based_net-2.5.so.3.0.0  libwx_based-2.5.so.3.0.0 =>     /usr/local/lib/libwx_based-2.5.so.3.0.0
libstdc++.so.6=>     /usr/local/lib/libstdc++.so.6   libm.so.1 =>     /usr/lib/libm.so.1   libgcc_s.so.1 =>
/usr/local/lib/libgcc_s.so.1  libpthread.so.1 =>     /usr/lib/libpthread.so.1   libc.so.1 =>     /usr/lib/libc.so.1
libdl.so.1=>     /usr/lib/libdl.so.1   libmp.so.2 =>     /usr/lib/libmp.so.2   libresolv.so.2 =>
/usr/lib/libresolv.so.2  librt.so.1 =>     /usr/lib/librt.so.1   libiconv.so.2 =>     /usr/local/lib/libiconv.so.2
libgtk-x11-2.0.so.0=>     /usr/local/lib/libgtk-x11-2.0.so.0   libgdk-x11-2.0.so.0 =>
/usr/local/lib/libgdk-x11-2.0.so.0  libatk-1.0.so.0 =>     /usr/local/lib/libatk-1.0.so.0   libgdk_pixbuf-2.0.so.0 =>
 /usr/local/lib/libgdk_pixbuf-2.0.so.0   libpangox-1.0.so.0 =>     /usr/local/lib/libpangox-1.0.so.0
libpango-1.0.so.0=>     /usr/local/lib/libpango-1.0.so.0   libgobject-2.0.so.0 =>
/usr/local/lib/libgobject-2.0.so.0  libgmodule-2.0.so.0 =>     /usr/local/lib/libgmodule-2.0.so.0   libgthread-2.0.so.0
=>    /usr/local/lib/libgthread-2.0.so.0   libglib-2.0.so.0 =>     /usr/local/lib/libglib-2.0.so.0
libpangoft2-1.0.so.0=>     /usr/local/lib/libpangoft2-1.0.so.0   libexpat.so.0 =>     /usr/local/lib/libexpat.so.0
libaio.so.1=>     /usr/lib/libaio.so.1   libX11.so.4 =>     /usr/lib/libX11.so.4   libXext.so.0 =>
/usr/lib/libXext.so.0  libfontconfig.so.1 =>     /usr/local/lib/libfontconfig.so.1   libfreetype.so.6 =>
/usr/local/lib/libfreetype.so.6  libz.so.1 =>     /usr/lib/libz.so.1   libdga.so.1 =>     /usr/openwin/lib/libdga.so.1
libthread.so.1 =>     /usr/lib/libthread.so.1   /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1
 
</ldd_output>

Any help would be super.  If you need anymore info just let me know.

~S

Raphaël Enrici wrote:

> Hiroshi and I worked last year on getting pgAdmin to run on Solaris. 
> AFAIR it was pgAdmin III 1.1.x with an old wxWidgets. I used to 
> rebuild gtk2 for some personal reasons but hiroshi was using sun's [1] 
> one IIRC.
>
> You may find some sun packages for it.
>
> If you need a gcc built gtk2 package you may also take a look at 
> sunfreeware [2] or blastwave [3].
>
> Please, tell us if you succeed. I'll come back on Solaris port if I 
> have more free time... this is definitely not the case at the time of 
> this writing...
>
> Regards,
> Raphaël
> [1] http://www.sun.com/software/star/gnome/
> [2] http://www.sunfreeware.com/
> [3] http://www.blastwave.org/ and in particular: 
> http://www.blastwave.org/packages.php/gtk2
>
>



______
This e-mail message (including any attachments) is intended for the individual to whom it is addressed and contains
informationthat is privileged and confidential.  If you are not the intended recipient, note that any dissemination,
distributionor copying of this communication is strictly prohibited.  If you have received this communication in error,
pleasenotify the sender and erase this e-mail message immediately.  For complete disclaimer information, please see
http://arcis.com/emaildisclaimer  
 


pgadmin-support by date:

Previous
From: "Fernando Aguada"
Date:
Subject: problem with type and varchar
Next
From: Shea Martin
Date:
Subject: Re: pgadmin3 segfaults on startup. Looks like