Home > Archive > Pgadmin > April 2005 > Segmentation fault on Red Hat Linux 8









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Segmentation fault on Red Hat Linux 8
Francis Labrie

2005-04-14, 3:24 am

Hi,


Following instructions on pgAdmin Web site, I've built and installed
both wxWidgets 2.5.5 and pgAdmin III 1.2.1 on Red Hat Linux 8.
Unfortunately, I get a segmentation fault on start:


$ gdb /usr/local/pgadmin3/bin/pgadmin3
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 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 "i386-redhat-linux"...
(gdb) run
Starting program: /usr/local/pgadmin3/bin/pgadmin3
[New Thread 8192 (LWP 5054)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8192 (LWP 5054)]
0x42073a9e in _int_malloc () from /lib/i686/libc.so.6
(gdb) bt
#0 0x42073a9e in _int_malloc () from /lib/i686/libc.so.6
#1 0x42073155 in malloc () from /lib/i686/libc.so.6
#2 0x40580d39 in g_malloc () from /usr/lib/libglib-2.0.so.0
#3 0x4058e292 in g_strdup () from /usr/lib/libglib-2.0.so.0
#4 0x40a81f9d in xpm_extract_color () from
/usr/lib/gtk-2.0/2.0.0/loaders/libpixbufloader-xpm.so
#5 0x40a823e5 in pixbuf_create_from_x
pm () from
/usr/lib/gtk-2.0/2.0.0/loaders/libpixbufloader-xpm.so
#6 0x40a827c7 in gdk_pixbuf__xpm_imag
e_load_xpm_data () from
/usr/lib/gtk-2.0/2.0.0/loaders/libpixbufloader-xpm.so
#7 0x404785d0 in gdk_pixbuf_new_from_
xpm_data () from
/usr/lib/libgdk_pixbuf-2.0.so.0
#8 0x4041690f in gdk_pixmap_colormap_
create_from_xpm_d () from
/usr/lib/libgdk-x11-2.0.so.0
#9 0x40416a8c in gdk_pixmap_create_fr
om_xpm_d () from
/usr/lib/libgdk-x11-2.0.so.0
#10 0x082da87c in wxBitmap::CreateFrom
Xpm(char const**)
(this=0xbffff720, bits=0x86ed880) at ../src/gtk/bitmap.cpp:351
#11 0x082df1e8 in wxBitmap (this=0xbffff720, bits=0x86ed880) at
.../include/wx/gtk/bitmap.h:75
#12 0x08114600 in frmSplash (this=0x88d44c8, parent=0x0) at
ui/frmSplash.cpp:44
#13 0x0805b2d3 in pgAdmin3::OnInit() (this=0x8884d40) at
pgAdmin3.cpp:323
#14 0x0805c4ee in wxAppConsole::CallOn
Init() (this=0x8884d40) at
/usr/local/include/wx-2.5/wx/app.h:87
#15 0x08464334 in wxEntry(int&, wchar_t**) (argc=@0xbffffaf0,
argv=0x88845d0) at ../src/common/init.cpp:401
#16 0x08464474 in wxEntry(int&, char**) (argc=@0xbffffaf0,
argv=0xbffffb34) at ../src/common/init.cpp:429
#17 0x0805a3a3 in main (argc=1, argv=0xbffffb34) at pgAdmin3.cpp:81
#18 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)

What's the problem? Is there any workaround?

--
Francis Labrie
Saint-Bruno-de-Montarville, Quebec, Canada
Andreas Pflug

2005-04-14, 9:24 am

Francis Labrie wrote:
> Hi,
>
>
> Following instructions on pgAdmin Web site, I've built and installed
> both wxWidgets 2.5.5 and pgAdmin III 1.2.1 on Red Hat Linux 8.
> Unfortunately, I get a segmentation fault on start:
>
>
> $ gdb /usr/local/pgadmin3/bin/pgadmin3
> GNU gdb Red Hat Linux (5.2.1-4)
> Copyright 2002 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 "i386-redhat-linux"...
> (gdb) run
> Starting program: /usr/local/pgadmin3/bin/pgadmin3
> [New Thread 8192 (LWP 5054)]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 8192 (LWP 5054)]
> 0x42073a9e in _int_malloc () from /lib/i686/libc.so.6
> (gdb) bt
> #0 0x42073a9e in _int_malloc () from /lib/i686/libc.so.6
> #1 0x42073155 in malloc () from /lib/i686/libc.so.6
> #2 0x40580d39 in g_malloc () from /usr/lib/libglib-2.0.so.0
> #3 0x4058e292 in g_strdup () from /usr/lib/libglib-2.0.so.0
> #4 0x40a81f9d in xpm_extract_color () from
> /usr/lib/gtk-2.0/2.0.0/loaders/libpixbufloader-xpm.so


Sounds like the well-known gtk bug with some themes. Try another theme.

Regards,
Andreas

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Francis Labrie

2005-04-14, 9:24 am

Hi,


Andreas Pflug wrote:
> Francis Labrie wrote:
>
> Sounds like the well-known gtk bug with some themes. Try another theme.



Thank you very much for your suggestion. It sounds right, all defaults
themes fail the same way except the "Bluecurve" one. With this theme,
the splash window appears, but unfortunately I get another segmentation
fault with libgdk-x11:

$ gdb /usr/local/pgadmin3/bin/pgadmin3
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 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 "i386-redhat-linux"...
(gdb) run
Starting program: /usr/local/pgadmin3/bin/pgadmin3

Program received signal SIGSEGV, Segmentation fault.
0x404363ee in _gdk_x11_copy_to_ima
ge () from
/usr/lib/libgdk-x11-2.0.so.0
(gdb) bt
#0 0x404363ee in _gdk_x11_copy_to_ima
ge () from
/usr/lib/libgdk-x11-2.0.so.0
#1 0x4040be09 in _gdk_drawable_copy_t
o_image ()
from /usr/lib/libgdk-x11-2.0.so.0
#2 0x404163bf in gdk_pixmap_copy_to_i
mage () from
/usr/lib/libgdk-x11-2.0.so.0
#3 0x4040be09 in _gdk_drawable_copy_t
o_image ()
from /usr/lib/libgdk-x11-2.0.so.0
#4 0x40414456 in gdk_pixbuf_get_from_
drawable ()
from /usr/lib/libgdk-x11-2.0.so.0
#5 0x082dea81 in wxBitmap::GetPixbuf(
) const (this=0x8a495b8)
at ../src/gtk/bitmap.cpp:1500
#6 0x082faf46 in wxTopLevelWindowGTK:
:SetIcons(wxIconBund
le const&) (
this=0x8aa0f68, icons=@0xbffff5e0) at .../src/gtk/toplevel.cpp:1081
#7 0x080f5eb3 in frmMain (this=0x8aa0f68, title=@0xbffff850)
at ui/frmMain.cpp:149
#8 0x0805bce1 in pgAdmin3::OnInit() (this=0x8884ce0) at
pgAdmin3.cpp:490
#9 0x0805c50e in wxAppConsole::CallOn
Init() (this=0x8884ce0)
at /usr/local/include/wx-2.5/wx/app.h:87
#10 0x08464354 in wxEntry(int&, wchar_t**) (argc=@0xbffffae0,
argv=0x8884570)
at ../src/common/init.cpp:401
#11 0x08464494 in wxEntry(int&, char**) (argc=@0xbffffae0,
argv=0xbffffb34)
at ../src/common/init.cpp:429
#12 0x0805a3c3 in main (argc=1, argv=0xbffffb34) at pgAdmin3.cpp:81
#13 0x4070554d in __libc_start_main () from /lib/libc.so.6
(gdb)


Is there any other workaround for this one?


Kind regards,

--
Francis Labrie
Saint-Bruno-de-Montarville, Québec, Canada

Francis Labrie

2005-04-18, 7:24 am

Hi,


Sorry about this repost, but I'm still facing a segmentation fault with
pgAdmin III 1.2.1 and wxWidgets 2.5.5 on Red Hat Linux 8, and I can't
find a workaround.

To avoid a first segmentation fault problem, I've set another Gnome
theme. I can now see the pgAdmin splash window, but unfortunately I get
another segmentation fault with libgdk-x11:

$ gdb /usr/local/pgadmin3/bin/pgadmin3
[...]
Program received signal SIGSEGV, Segmentation fault.
0x404363ee in _gdk_x11_copy_to_ima
ge () from
/usr/lib/libgdk-x11-2.0.so.0
(gdb) bt
#0 0x404363ee in _gdk_x11_copy_to_ima
ge () from
/usr/lib/libgdk-x11-2.0.so.0
#1 0x4040be09 in _gdk_drawable_copy_t
o_image ()
from /usr/lib/libgdk-x11-2.0.so.0
#2 0x404163bf in gdk_pixmap_copy_to_i
mage () from
/usr/lib/libgdk-x11-2.0.so.0
#3 0x4040be09 in _gdk_drawable_copy_t
o_image ()
from /usr/lib/libgdk-x11-2.0.so.0
#4 0x40414456 in gdk_pixbuf_get_from_
drawable ()
from /usr/lib/libgdk-x11-2.0.so.0
#5 0x082dea81 in wxBitmap::GetPixbuf(
) const (this=0x8a495b8)
at ../src/gtk/bitmap.cpp:1500
#6 0x082faf46 in wxTopLevelWindowGTK:
:SetIcons(wxIconBund
le const&) (
this=0x8aa0f68, icons=@0xbffff5e0) at .../src/gtk/toplevel.cpp:1081
#7 0x080f5eb3 in frmMain (this=0x8aa0f68, title=@0xbffff850)
at ui/frmMain.cpp:149

Is there any known workaround for this one?


Kind regards,

--
Francis Labrie
Saint-Bruno-de-Montarville, Québec, Canada

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com