noreply at rubyforge.org
2006-Nov-21 21:41 UTC
[Wxruby-development] [ wxruby-Bugs-6808 ] Double-free segfault on closing app when BitmapButton has been used
Bugs item #6808, was opened at 2006-11-21 21:41 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=6808&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 2 Submitted By: Alex Fenton (brokentoy) Assigned to: Kevin Smith (qualitycode) Summary: Double-free segfault on closing app when BitmapButton has been used Initial Comment: If an application has used the BitmapButton class it might segfault instead of exiting cleanly. This can be demonstrated by starting the bigdemo, opening the ''Core Controls/wxBitmapButton'' demo, then shutting the application. It appears to be because wxBitmap does reference counting of its own, and tries to free the underlying memory containing the image on exit. On OS X 10.3 it gives the following backtrace: Program received signal EXC_BAD_ACCESS, Could not access memory. 0x81800100 in ?? () (gdb) whe #0 0x81800100 in ?? () Cannot access memory at address 0x81800100 Cannot access memory at address 0x81800100 #1 0x031d82b4 in wxBitmapRefData::Free() () #2 0x031d831c in wxBitmapRefData::~wxBitmapRefData() () #3 0x031bc450 in wxObject::UnRef() () #4 0x031d87a0 in wxBitmap::~wxBitmap() () #5 0x02e17ad0 in SwigDirector_wxBitmap::~SwigDirector_wxBitmap() () #6 0x0001d6f0 in rb_gc_call_finalizer_at_exit () at gc.c:1858 #7 0x000041d4 in ruby_finalize_1 () at eval.c:1418 #8 0x00004340 in ruby_cleanup (ex=0) at eval.c:1453 #9 0x000044b8 in ruby_stop (ex=105048432) at eval.c:1484 #10 0x00004544 in ruby_run () at eval.c:1505 #11 0x0000209c in main (argc=3, argv=0xbffff95c, envp=0xa02b08c8) at main.c:46 #12 0x00001b5c in _start (argc=3, argv=0xbffff95c, envp=0xbffff96c) at /SourceCache/Csu/Csu-47/crt.c:267 #13 0x8fe1a31c in __dyld__dyld_start () ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=6808&group_id=35
Reasonably Related Threads
- [893] branches/wxruby2/wxwidgets_282: New hover bitmap methods in 2.6 -> 2.8 API
- find_window_by_xxx doesn''t find Gauge or BitmapButton
- 0.0.38 tag and release
- [ wxruby-Bugs-10438 ] ClientDC segfault on exit
- [ wxruby-Bugs-20211 ] Unresolved symbol due to linkage error