[#70843] Re: [ruby-cvs:58952] hsbt:r51801 (trunk): * lib/rubygems: Update to RubyGems HEAD(fe61e4c112). — Eric Wong <normalperson@...>
hsbt@ruby-lang.org wrote:
3 messages
2015/09/17
[ruby-core:70840] [Ruby trunk - Bug #11514] AIX6.1 - Ruby 2.2.3 - Segmentation fault in :byteslice
From:
tony.reix@...
Date:
2015-09-17 16:15:08 UTC
List:
ruby-core #70840
Issue #11514 has been updated by Tony Reix.
I've got a different crash in the same place.
The .spec file does have the export LDR_CNTRL=MAXDATA=0x80000000 .
gmake test
....
Generating RDoc documentation
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems "./bin/rdoc" --root "." --page-dir "./doc" --encoding=UTF-8 --no-force-update --all --ri --op ".ext/rdoc" --debug "."
Parsing sources...
100% [967/967] vsnprintf.c
Generating RI format into /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/rdoc...
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb:893: [BUG] Segmentation fault at 0x000004
ruby 2.2.3p173 (2015-08-18 revision 51636) [powerpc-aix6.1.0.0]
-- Control frame information -----------------------------------------------
c:0018 p:---- s:0065 e:000064 CFUNC :write
c:0017 p:0010 s:0061 e:000060 BLOCK /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb:893 [FINISH]
c:0016 p:---- s:0058 e:000057 CFUNC :open
c:0015 p:0144 s:0053 e:000052 METHOD /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb:892
c:0014 p:0011 s:0045 e:000044 BLOCK /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb:752
c:0013 p:0008 s:0042 e:000041 BLOCK /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/context.rb:731 [FINISH]
c:0012 p:---- s:0039 e:000038 CFUNC :each
c:0011 p:0029 s:0036 e:000035 METHOD /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/context.rb:731
c:0010 p:0016 s:0033 e:000032 BLOCK /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb:751 [FINISH]
c:0009 p:---- s:0030 e:000029 CFUNC :each
c:0008 p:0015 s:0027 e:000026 METHOD /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb:748
c:0007 p:0009 s:0024 e:000023 METHOD /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/generator/ri.rb:26
c:0006 p:0057 s:0021 e:000020 BLOCK /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/rdoc.rb:530 [FINISH]
c:0005 p:---- s:0019 e:000018 CFUNC :chdir
c:0004 p:0018 s:0015 e:000014 METHOD /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/rdoc.rb:525
c:0003 p:0369 s:0012 e:000011 METHOD /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/rdoc.rb:508
c:0002 p:0049 s:0006 E:002514 EVAL ./bin/rdoc:20 [FINISH]
c:0001 p:0000 s:0002 E:00007c TOP [FINISH]
-- Ruby level backtrace information ----------------------------------------
./bin/rdoc:20:in `<main>'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/rdoc.rb:508:in `document'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/rdoc.rb:525:in `generate'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/rdoc.rb:525:in `chdir'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/rdoc.rb:530:in `block in generate'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/generator/ri.rb:26:in `generate'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb:748:in `save'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb:748:in `each'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb:751:in `block in save'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/context.rb:731:in `each_method'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/context.rb:731:in `each'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/context.rb:731:in `block in each_method'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb:752:in `block (2 levels) in save'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb:892:in `save_method'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb:892:in `open'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb:893:in `block in save_method'
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb:893:in `write'
-- Other runtime information -----------------------------------------------
* Loaded script: ./bin/rdoc
* Loaded features:
0 enumerator.so
1 rational.so
2 complex.so
3 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/powerpc-aix6.1.0.0/enc/encdb.so
4 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/powerpc-aix6.1.0.0/enc/trans/transdb.so
5 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/powerpc-aix6.1.0.0/enc/iso_8859_1.so
6 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/unicode_normalize.rb
7 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc.rb
8 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/find.rb
9 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/powerpc-aix6.1.0.0/etc.so
10 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/fileutils.rb
11 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/powerpc-aix6.1.0.0/pathname.so
12 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/common/pathname.rb
13 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/powerpc-aix6.1.0.0/date_core.so
14 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/common/date.rb
15 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/time.rb
16 /opt/freeware/src/packages/BUILD/ruby-2.2.3/rbconfig.rb
17 thread.rb
18 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/powerpc-aix6.1.0.0/thread.so
19 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/compatibility.rb
20 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/defaults.rb
21 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/deprecate.rb
22 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/errors.rb
23 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/version.rb
24 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/requirement.rb
25 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/platform.rb
26 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/basic_specification.rb
27 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/stub_specification.rb
28 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/util/stringio.rb
29 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/specification.rb
30 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/exceptions.rb
31 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/core_ext/kernel_gem.rb
32 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/monitor.rb
33 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/core_ext/kernel_require.rb
34 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems.rb
35 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/path_support.rb
36 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/cgi/util.rb
37 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/powerpc-aix6.1.0.0/strscan.so
38 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/erb.rb
39 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/generator.rb
40 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rubygems/dependency.rb
41 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/common/json/version.rb
42 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/ostruct.rb
43 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/common/json/generic_object.rb
44 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/common/json/common.rb
45 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/powerpc-aix6.1.0.0/enc/utf_16be.so
46 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/powerpc-aix6.1.0.0/enc/utf_16le.so
47 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/powerpc-aix6.1.0.0/enc/utf_32be.so
48 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/powerpc-aix6.1.0.0/enc/utf_32le.so
49 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/powerpc-aix6.1.0.0/json/ext/parser.so
50 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/powerpc-aix6.1.0.0/json/ext/generator.so
51 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/common/json/ext.rb
52 /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/common/json.rb
53 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/markup.rb
54 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/markup/formatter.rb
55 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/markup/to_joined_paragraph.rb
56 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/markdown/entities.rb
57 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/markdown/literals_1_9.rb
58 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/markdown.rb
59 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/rd.rb
60 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/markup/parser.rb
61 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/markup/pre_process.rb
62 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/tom_doc.rb
63 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/text.rb
64 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/code_object.rb
65 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/method_attr.rb
66 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/cgi/core.rb
67 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/cgi/cookie.rb
68 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/cgi.rb
69 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/context.rb
70 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/class_module.rb
71 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/context/section.rb
72 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/top_level.rb
73 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/generator/markup.rb
74 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/generator/darkfish.rb
75 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/generator/ri.rb
76 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/generator/pot.rb
77 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/rdoc.rb
78 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/store.rb
79 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/optparse.rb
80 /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/options.rb
# dbx ./ruby ./.ext/rdoc/core
Type 'help' for help.
[using memory image in ./.ext/rdoc/core]
reading symbolic information ...
IOT/Abort trap in pthread_kill at 0xd051ceb4 ($t1)
0xd051ceb4 (pthread_kill+0xb4) 80410014 lwz r2,0x14(r1)
(dbx) where
pthread_kill(??, ??) at 0xd051ceb4
_p_raise(??) at 0xd051c2e8
raise.raise(??) at 0xd011f8a0
abort() at 0xd01a9a04
die(), line 395 in "error.c"
libdebug assertion "(framep->getGpr(STKP, &addr) == DB_SUCCESS && *nextStkpp == addr)" failed at line 1299 in file ../../../../../../../../../../../src/bos/usr/ccs/lib/libdbx/libdebug/modules/stackdebug/POWER/stackdb_FrameProgress.C
rb_bug_context(ctx = 0x200f83b0, fmt = "Segmentation fault at %p", ... = 0x4, 0xd052f200, 0x0, 0x1275008f, 0x1275008f, 0x200f7f28), line 427 in "error.c"
sigsegv(sig = 11, info = 0x200f863c, ctx = 0x200f83b0), line 879 in "signal.c"
(dbx)
----------------------------------------
Bug #11514: AIX6.1 - Ruby 2.2.3 - Segmentation fault in :byteslice
https://bugs.ruby-lang.org/issues/11514#change-54215
* Author: Tony Reix
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v: ?? ruby 2.1.1p76 (2014-02-24 revision 45161) [powerpc-aix6.1.0.0]
* Backport:
----------------------------------------
Testing Ruby 2.2.3 on AIX6.1 built with xlc (same with gcc) leads to a reproducible crash.
See complete trace in attached file.
Ruby version is: RUBY_PROGRAM_VERSION=2.2.3 .
~~~
# gmake V=1 test-all
...
objcopy -w -L 'Init_*' -L '*_threadptr_*' libruby.so.2.2.0
:
/usr/vac/bin/xlc_r -g -qinfo=por -L. -bE:ruby.imp -brtl -blibpath:NONE/lib:/usr/lib:/lib main.o -L/usr/local/lib -lruby -lpthread -lgmp -ldl -lcrypt -lm -o ruby
:
gmake[2]: Leaving directory `/opt/freeware/src/packages/BUILD/ruby-2.2.3'
gmake[1]: Leaving directory `/opt/freeware/src/packages/BUILD/ruby-2.2.3'
Generating RDoc documentation
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems "./bin/rdoc" --root "." --page-dir "./doc" --encoding=UTF-8 --no-force-update --all --ri --op ".ext/rdoc" --debug "."
Parsing sources...
100% [967/967] vsnprintf.c
Generating RI format into /opt/freeware/src/packages/BUILD/ruby-2.2.3/.ext/rdoc...
BEFORE @generator.generate in lib/rdoc/rdoc.rb
/opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/markup/parser.rb:331: [BUG] **Segmentation fault** at 0x000004
ruby 2.2.3p173 (2015-08-18 revision 51636) [powerpc-aix6.1.9.0]
-- Control frame information -----------------------------------------------
c:0025 p:---- s:0126 e:000125 CFUNC **:byteslice**
c:0024 p:0019 s:0121 e:000120 METHOD /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/markup/parser.rb:331
c:0023 p:0009 s:0116 e:000115 METHOD /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/markup/parser.rb:547
c:0022 p:0438 s:0111 e:000108 METHOD /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/markup/parser.rb:501
c:0021 p:0017 s:0099 e:000098 METHOD /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/markup/parser.rb:62
c:0020 p:0019 s:0093 e:000092 METHOD /opt/freeware/src/packages/BUILD/ruby-2.2.3/lib/rdoc/markup.rb:748
...
gmake: *** [rdoc] IOT/Abort trap (core dumped)
# ll ./.ext/rdoc/core
-rw------- 1 root system 269015892 Sep 8 14:08 ./.ext/rdoc/core
# dbx ./ruby ./.ext/rdoc/core
IOT/Abort trap in pthread_kill at 0xd051ceb4 ($t1)
0xd051ceb4 (pthread_kill+0xb4) 80410014 lwz r2,0x14(r1)
(dbx) where
pthread_kill(??, ??) at 0xd051ceb4
_p_raise(??) at 0xd051c2e8
raise.raise(??) at 0xd011f8a0
abort() at 0xd01a9a04
die(), line 395 in "error.c"
libdebug assertion "(framep->getGpr(STKP, &addr) == DB_SUCCESS && *nextStkpp == addr)" failed at line 1299 in file ../../../../../../../../../../../src/bos/usr/ccs/lib/libdbx/libdebug/modules/stackdebug/POWER/stackdb_FrameProgress.C
rb_bug_context(ctx = 0x200f83b0, fmt = "Segmentation fault at %p", ... = 0x4, 0xd052f200, 0x0, 0x117100f5, 0x117100f5, 0x200f7f28), line 427 in "error.c"
sigsegv(sig = 11, info = 0x200f863c, ctx = 0x200f83b0), line 879 in "signal.c"
---Files--------------------------------
RubyCore (15.8 KB)
--
https://bugs.ruby-lang.org/