noreply at rubyforge.org
2007-Apr-07 17:48 UTC
[Wxruby-development] [ wxruby-Bugs-9930 ] StaticBoxSizer causes segfault on exit
Bugs item #9930, was opened at 2007-04-07 17:48 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=9930&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: StaticBoxSizer causes segfault on exit Initial Comment: If a StaticBoxSizer is created, it seems to cause a segfault on exit. Adding just this line to MinimalFrame#initialize in the minimal sample shows the error: sizer = Wx::StaticBoxSizer.new( Wx::HORIZONTAL, self, ''foo'' ) On OS X 10.3, working on the wxw28 branch, the backtrace is: Program received signal EXC_BAD_INSTRUCTION, Illegal instruction/operand. 0x00836264 in ?? () (gdb) whe #0 0x00836264 in ?? () #1 0x034a9850 in wxStaticBoxSizer::~wxStaticBoxSizer() () #2 0x0001d6f0 in rb_gc_call_finalizer_at_exit () at gc.c:1858 #3 0x000041d4 in ruby_finalize_1 () at eval.c:1418 #4 0x00004340 in ruby_cleanup (ex=0) at eval.c:1453 #5 0x000044b8 in ruby_stop (ex=5200144) at eval.c:1484 #6 0x00004544 in ruby_run () at eval.c:1505 #7 0x0000209c in main (argc=3, argv=0xbffff958, envp=0x2) at main.c:46 #8 0x00001b5c in _start (argc=3, argv=0xbffff958, envp=0xbffff968) at /SourceCache/Csu/Csu-47/crt.c:267 #9 0x8fe1a31c in __dyld__dyld_start () (gdb) The relevant method from sizer.cpp is: wxStaticBoxSizer::~wxStaticBoxSizer() { delete m_staticBox; } ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=9930&group_id=35
Apparently Analagous Threads
- [1077] trunk/wxruby2/swig/classes/StaticBoxSizer.i: Avoid crash-on-exit with StatBoxSizer by removing some unnec director methods
- Re: StaticBoxSizer bug?
- [1087] trunk/wxruby2/swig/classes/StaticBoxSizer.i: Fix a dopey typo introduced recently
- Re: -fvirtual and compactdefaultargs (was StaticBoxSizer bug?)
- [1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo