[#5219] Segmentation fault in timeout.rb — Michel Pastor <K@...>

Hi,

18 messages 2005/06/16
[#5220] Re: Segmentation fault in timeout.rb — Eric Hodel <drbrain@...7.net> 2005/06/16

[#5221] Re: Segmentation fault in timeout.rb — Michel Pastor <K@...> 2005/06/16

On Fri, 17 Jun 2005 05:03:18 +0900

[#5223] Re: Segmentation fault in timeout.rb — nobu.nokada@... 2005/06/17

Hi,

[#5296] Subversion — Shugo Maeda <shugo@...>

Hi,

64 messages 2005/06/30
[#5297] Re: Subversion — Curt Hibbs <curt@...> 2005/06/30

Shugo Maeda wrote:

[#5298] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/06/30

Curt Hibbs wrote:

[#5301] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, Nikolai Weibull

[#5304] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/06/30

Austin Ziegler wrote:

[#5305] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, Nikolai Weibull

[#5307] Re: Subversion — mathew <meta@...> 2005/06/30

Austin Ziegler wrote:

[#5308] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, mathew <meta@pobox.com> wrote:

[#5311] Re: Subversion — mathew <meta@...> 2005/07/01

Austin Ziegler wrote:

[#5323] Re: Subversion — Austin Ziegler <halostatue@...> 2005/07/01

On 7/1/05, mathew <meta@pobox.com> wrote:

[#5325] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/07/01

Austin Ziegler wrote:

Re: Segmentation fault in timeout.rb

From: Eric Hodel <drbrain@...7.net>
Date: 2005-06-16 20:03:18 UTC
List: ruby-core #5220
On 16 Jun 2005, at 11:51, Michel Pastor wrote:

> Hi,
> it seems I discovered a bug since I can get a reproducible segfault  
> on different hardware when trying to use a freshly created rails  
> application using a sqlite3 database running on a webrick. I didn't  
> test with other db so I dont know if that comes from sqlite3-ruby  
> gem. The following instructions triggers the problem on the two  
> systems I tested them on:

> deadlock 0xb75e5000: run:-  - :0
> deadlock 0xb7e73798: sleep:ST(1118944246.320441) (main) - /usr/lib/ 
> ruby/1.8/webrick/server.rb:88
> deadlock 0xb774d104: sleep:T(1118944275.021337)  - /usr/lib/ruby/ 
> 1.8/timeout.rb:41
> [2005-06-16 19:50:45] ERROR fatal: Thread(0xb774d104): deadlock
>         /usr/lib/ruby/1.8/timeout.rb:41:in `start'

It is probably not a bug in ruby, because ruby protects itself  
against deadlock by immediately exitting.

All the threads were probably told to go to sleep:

$ ruby -e 'Thread.start { Thread.stop }; Thread.stop'
deadlock 0x8076b0c: sleep:-  - -e:1
deadlock 0x8082790: sleep:- (main) - -e:1
-e:1:in `stop': Thread(0x8082790): deadlock (fatal)
         from -e:1

-- 
Eric Hodel - drbrain@segment7.net - http://segment7.net
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04


In This Thread