Bug #2606 [redmine4ruby-lang:267]

Ruby crashes when Logger is used in trap handler

Added by Jonathan Gold 64 days ago. Updated 63 days ago.

Status :Feedback Start :01/15/2010
Priority :Normal Due date :
Assigned to :- % Done :

0%

Category :-
Target version :-
ruby -v :

1.9.2


Description

I've run into what I consider to be a strange issue causing the ruby interpreter
to crash (on 1.9.1-p0, 1.9.1-p376, and 1.9.2-preview1).

Attached is a description and a way to reproduce it. I'm able to reproduce it on
linux (64bit) as well as macosx. I suspect it will repro in other places, but
haven't confirmed.

The repro script is attached.

wait2_fail_test.rb (4.3 KB) Jonathan Gold, 01/15/2010 02:09 AM

wait2_fail_test.rb - (Uses strftime to cause failure, not Logger) (4.5 KB) Jonathan Gold, 01/15/2010 04:56 AM

History

01/15/2010 04:56 AM - Jonathan Gold

Update: after trying to build a workaround in my program to just use STDOUT in place of Logger, I've come to find that it's not really the Logger class so much as the Time.strftime function. I've modified the repro script (attached) to demonstrate this.

01/15/2010 09:40 AM - Yuki Sonoda

This issue was reported to a wrong project.


---------- Forwarded message ----------
From: Jonathan Gold <redmine@ruby-lang.org>
Date: 2010/1/15
Subject: [redmine4ruby-lang:267] [Bug #2606] Ruby crashes when Logger
is used in trap handler
To: redmine4ruby-lang@qwik.jp


Bug #2606: Ruby crashes when Logger is used in trap handler
http://redmine.ruby-lang.org/issues/show/2606

起票者: Jonathan Gold
ステータス: Open, 優先度: Normal

I've run into what I consider to be a strange issue causing the ruby interpreter
to crash (on 1.9.1-p0, 1.9.1-p376, and 1.9.2-preview1).

Attached is a description and a way to reproduce it. I'm able to reproduce it on
linux (64bit) as well as macosx. I suspect it will repro in other places, but
haven't confirmed.

The repro script is attached.


----------------------------------------
http://redmine.ruby-lang.org

--
archive-> http://qwik.jp/redmine4ruby-lang/154.html
ML-> redmine4ruby-lang@qwik.jp



-- 
Yuki Sonoda (Yugui)
yugui@yugui.jp
http://yugui.jp

01/15/2010 10:57 AM - Nobuyoshi Nakada

  • Status changed from Open to Feedback
  • ruby -v set to 1.9.2
I couldn't reproduce it on i386-linux, i386-darwin9.8.0 and x86_64-darwin9.8.0.

01/16/2010 10:37 AM - Jonathan Gold

Yuki -- My apologies. Where should I have reported it?

Nobuyoshi -- Thank you for trying. I'm disappointed to hear that you couldn't reproduce it. One thing that I could try if you think it'd be helpful is to set up an Amazon EC2 image where it can be made to happen, and then let you bring up that instance to play with. It's a little bit of work for me, but if you have an EC2 account and want to have a place where it can be reproduced I'm willing to try and set it up for you.

Also available in: Atom PDF