noreply at rubyforge.org
2008-Mar-30 01:10 UTC
[wxruby-development] [ wxruby-Bugs-19188 ] Wx::Image#set_data()
Bugs item #19188, was opened at 2008-03-29 20:10 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=19188&group_id=35 Category: Incorrect behavior Group: current Status: Open Resolution: None Priority: 3 Submitted By: Mario Steele (eumario) Assigned to: Nobody (None) Summary: Wx::Image#set_data() Initial Comment: On Lniux, Wx::Image#set_data() causes a double free corruption to occur, example message: *** glibc detected *** ruby: double free or corruption (!prev): 0x000000000199d2f0 *** This seems to be from the fact that Wx::Image#set_data() free''s the passed data, before Ruby, and then when Ruby''s GC runs, it attempts to free the data again, causing the double free corruption to occur. After this point, the Program freezes, leaving the user to issue a kill -9 to the PID of ruby, before it fully exits. Example program and GDB Output to follow. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=19188&group_id=35