[ruby-core:77404] [Ruby trunk Bug#5244][Closed] Continuation causes Bus Error on Debian sparc
From:
ngotogenome@...
Date:
2016-09-26 12:35:26 UTC
List:
ruby-core #77404
Issue #5244 has been updated by Naohisa Goto.
Status changed from Open to Closed
> This may still be a problem on Solaris sparc64 where the link stage fails thus :
No, different issue from the original report.
The error message shows that the symbol "asm" is not found.
With "-Xc" option (strict ISO C mode), "asm" as an reserved word (in-line assembler) is disabled and is treated as a normal function.
Ruby uses "asm" inline assembler and thus "-Xc" can not be used.
----------------------------------------
Bug #5244: Continuation causes Bus Error on Debian sparc
https://bugs.ruby-lang.org/issues/5244#change-60659
* Author: Lucas Nussbaum
* Status: Closed
* Priority: Normal
* Assignee: Naohisa Goto
* ruby -v: -
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Hi,
$ ./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -rcontinuation -e 'callcc { |c| c.call }'
-e:1: [BUG] Bus Error
ruby 1.9.3dev (2011-08-26) [sparc-linux]
-- Control frame information -----------------------------------------------
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC :callcc
c:0003 p:0009 s:0006 b:0006 l:000fcc d:001d74 EVAL -e:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000fcc d:000fcc TOP
-- Ruby level backtrace information ----------------------------------------
-e:1:in `<main>'
-e:1:in `callcc'
-- C level backtrace information -------------------------------------------
Bus error
gdb says:
(gdb) run -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -rcontinuation -e 'callcc { |c| c.call }'
Starting program: /home/lucas/ruby1.9.1-1.9.3~preview1+svn33077/miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -rcontinuation -e 'callcc { |c| c.call }'
[Thread debugging using libthread_db enabled]
[New Thread 0xf7fc7b70 (LWP 31418)]
[Thread 0xf7fc7b70 (LWP 31418) exited]
process 31417 is executing new program: /home/lucas/ruby1.9.1-1.9.3~preview1+svn33077/ruby1.9.1
[Thread debugging using libthread_db enabled]
[New Thread 0xf79e5b70 (LWP 31419)]
Program received signal SIGBUS, Bus error.
0xf7f4d304 in cont_capture (stat=Cannot access memory at address 0x49
) at cont.c:439
439 if (ruby_setjmp(cont->jmpbuf)) {
(gdb) print cont
Cannot access memory at address 0xfffffff9
---Files--------------------------------
ruby.patch (480 Bytes)
flush_windows.patch (2.19 KB)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>