Project

General

Profile

ActionsLike0

Bug #8100

closed

Segfault in trunk

Added by judofyr (Magnus Holm) about 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.1.0dev (2013-03-18 trunk 39805) [x86_64-linux]
Backport:
[ruby-core:53439]

Description

=begin
Full backtrace (both VM, C and Ruby) is both attached and available at https://travis-ci.org/rtomayko/tilt/jobs/5479138

I haven't been able to reproduce it (and thus I can't create a reduced test case).

This is the test that fails: https://github.com/rtomayko/tilt/blob/581230cbb3b314e88cf5ec9167a24ebb8acc7a93/test/tilt_compilesite_test.rb#L31

The code in question will do these steps in several threads at the same time:

The method is doing some funky class << self to ensure that it gets evaluated under a proper constant scope). It's also caching the methods, so it won't always define a new method, but might re-use another UnboundMethod from a previous compilation (that might have happened on a different thread).

I know it's not much to go after, but at least the backtrace seems to suggest that the error happend in rb_ary_fill in array.c.

I've also had another report of segfault in Tilt + Ruby 2.0.0, but I don't have the full backtrace yet: https://github.com/rtomayko/tilt/issues/179. Might this be related?

Let me know if you need more details.
=end


Files

seglog.txt (104 KB) seglog.txt judofyr (Magnus Holm), 03/15/2013 08:58 PM
segfault_spec.tar.gz (3.01 KB) segfault_spec.tar.gz zzak (zzak _), 03/18/2013 10:51 AM
seg.txt (63.4 KB) seg.txt DAddYE (Davide D'Agostino), 03/18/2013 04:14 PM
fail.rb (604 Bytes) fail.rb Reduced script judofyr (Magnus Holm), 03/22/2013 06:38 PM

Related issues 3 (0 open3 closed)

Has duplicate Ruby - Bug #8336: Segfault in :=~Closed04/27/2013Actions
Has duplicate Ruby - Bug #8353: segfault with puma-1.6.3Closed05/02/2013Actions
Has duplicate Ruby - Bug #8056: Random segmentation faults in TempfileClosed03/09/2013Actions

Updated by zzak (zzak _) about 12 years ago

  • File segfault_spec.tar.gz segfault_spec.tar.gz added
  • Subject changed from Segfault in ruby-2.0.0p0 to Segfault in trunk
  • Target version set to 2.1.0
  • ruby -v changed from ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux] to ruby 2.1.0dev (2013-03-18 trunk 39805) [x86_64-linux]

Updated by judofyr (Magnus Holm) about 12 years ago

Updated by kosaki (Motohiro KOSAKI) about 12 years ago

  • Category set to core
  • Status changed from Open to Assigned
  • Assignee set to authorNari (Narihiro Nakamura)
#11

Updated by nobu (Nobuyoshi Nakada) about 12 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Updated by nobu (Nobuyoshi Nakada) about 12 years ago

  • Status changed from Closed to Assigned
  • % Done changed from 100 to 0
#16

Updated by naruse (Yui NARUSE) about 12 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Updated by naruse (Yui NARUSE) about 12 years ago

  • Status changed from Closed to Assigned
#18

Updated by authorNari (Narihiro Nakamura) about 12 years ago

  • Status changed from Assigned to Closed
ActionsLike0

Also available in: Atom PDF