Bug 455045 - Ruby/Tk crashed on simplest application
Ruby/Tk crashed on simplest application
Status: CLOSED WORKSFORME
Product: Fedora
Classification: Fedora
Component: ruby (Show other bugs)
9
i386 Linux
low Severity high
: ---
: ---
Assigned To: Jeroen van Meeuwen
Fedora Extras Quality Assurance
http://rubyforge.org/tracker/?func=de...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-11 12:56 EDT by Dmitry A. Ustalov
Modified: 2009-02-02 03:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 483537 (view as bug list)
Environment:
Last Closed: 2009-02-02 03:11:39 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
backtrace and memory map (7.22 KB, text/plain)
2008-07-11 12:56 EDT, Dmitry A. Ustalov
no flags Details
Ruby/Tk Example 3 from PickAxe book (reproduces the bug) (528 bytes, text/plain)
2008-07-11 13:07 EDT, Dmitry A. Ustalov
no flags Details

  None (edit)
Description Dmitry A. Ustalov 2008-07-11 12:56:56 EDT
On a number of unexplained causes, launching the simplest program written in 
ruby/tk, leads to crashing ruby.

For example:
eveel{~}% cat ruby-tk-ex3.rb 
require 'tk'
root = TkRoot.new { title "Ex3" }
top = TkFrame.new(root) { relief 'raised'; border 5 }
lbl = TkLabel.new(top) do
  justify 'center'
  text    'Hello, World!'
  pack('padx'=>5, 'pady'=>5, 'side' => 'top')
end
TkButton.new(top) do
  text "Ok"
  command { exit }
  pack('side'=>'left', 'padx'=>10, 'pady'=>10)
end
TkButton.new(top) do
  text "Cancel"
  command { lbl.configure('text'=>"Goodbye, Cruel World!") }
  pack('side'=>'right', 'padx'=>10, 'pady'=>10)
end
top.pack('fill'=>'both', 'side' =>'top')
Tk.mainloop

eveel{~}% ruby ruby-tk-ex3.rb 
*** glibc detected *** ruby: free(): invalid next size (fast): 0x091f87a0 ***
======= Backtrace: =========
/lib/libc.so.6[0xb5d7e4]
{...}
b7ee5000-b7f71000 rw-p b7ee5000 00:00 0 
bf873000-bf888000 rw-p bffeb000 00:00 0          [stack]
zsh: abort      ruby ruby-tk-ex3.rb
eveel{~}% 

My system is:
    Fedora release 9 (Sulphur),
    ruby 1.8.6 (2008-06-20 patchlevel 230) [i386-linux],
    tcl 8.5.3, tk 8.5.3,
    glibc 2.8

Also, I've reported about this bug in http://rubyforge.org/tracker/?
func=detail&aid=21168&group_id=426&atid=1698
Comment 1 Dmitry A. Ustalov 2008-07-11 12:56:56 EDT
Created attachment 311605 [details]
backtrace and memory map
Comment 2 Dmitry A. Ustalov 2008-07-11 13:07:20 EDT
Created attachment 311608 [details]
Ruby/Tk Example 3 from PickAxe book (reproduces the bug)

example is attached
Comment 3 Fedora Admin XMLRPC Client 2009-01-30 07:45:13 EST
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.
Comment 4 Jeroen van Meeuwen 2009-02-02 03:11:39 EST
This works fine on Fedora 10's ruby-1.8.6-287, can you please confirm?

If it doesn't work still, please reopen the bug.

Note You need to log in before you can comment on or make changes to this bug.