[ wxwindows-Bugs-1710593 ] [wxGTK2::wxBitmap] segfault on const
wxBitmap
SourceForge.net
noreply at sourceforge.net
Tue May 1 05:35:57 PDT 2007
Bugs item #1710593, was opened at 2007-05-01 14:31
Message generated for change (Comment added) made by vadz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1710593&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxGTK specific
Group: Fatal
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Steven Van Ingelgem (g00fy)
Assigned to: Nobody/Anonymous (nobody)
Summary: [wxGTK2::wxBitmap] segfault on const wxBitmap
Initial Comment:
Hi,
If you have an external const wxBitmap constructed from xpm-data (I don't know for the other constructors), it will segfault.
Proof attached. Backtrace follows:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1220274512 (LWP 17113)]
0xb7ded389 in gtk_window_new () from /usr/lib/libgtk-x11-2.0.so.0
(gdb) bt
#0 0xb7ded389 in gtk_window_new () from /usr/lib/libgtk-x11-2.0.so.0
#1 0x08064862 in wxGetRootWindow ()
#2 0x08068f72 in wxBitmap::wxBitmap ()
#3 0x08059bc6 in __static_initialization_and_destruction_0 ()
#4 0x08059d1b in global constructors keyed to _ZN7MyFrame13sm_eventTableE ()
#5 0x0822a4db in __do_global_ctors_aux ()
#6 0x08055bb9 in _init ()
#7 0x0822a469 in __libc_csu_init ()
#8 0xb75a0871 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#9 0x08059ac1 in _start ()
wx/CVS
gcc/4.1.2
Ubuntu 6.10
----------------------------------------------------------------------
>Comment By: Vadim Zeitlin (vadz)
Date: 2007-05-01 14:35
Message:
Logged In: YES
user_id=71618
Originator: NO
You can't use global GUI objects because the GUI is initialized much later
than at static initialization time.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1710593&group_id=9863
More information about the wx-dev
mailing list