https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112016-08-26T22:14:30ZRuby Issue Tracking SystemRuby master - Bug #12396: Compilation crashes with segmentation fault in HP-UX 11.31https://bugs.ruby-lang.org/issues/12396?journal_id=603022016-08-26T22:14:30ZCarla_C (Carla Curtis)
<ul></ul><p>I am also having this issue.<br>
Ruby 2.1.9<br>
HP-UX B.11.31 U ia64 4067183464<br>
cc: HP C/aC++ B3910B A.06.28 [Nov 21 2013]</p>
<p>I rebuilt replacing +O2 with -g, and gdb tells me:</p>
<p>#0 0x423b1f0:1 in mark_locations_array (objspace=0x40046500, x=0x1000, n=499120527) at gc.c:3297</p>
<p>3293 mark_locations_array(rb_objspace_t *objspace, register VALUE *x, register long n)<br>
3294 {<br>
3295 VALUE v;<br>
3296 while (n--) {<br>
3297 v = *x;<br>
3298 gc_mark_maybe(objspace, v);<br>
3299 x++;<br>
3300 }<br>
3301 }</p> Ruby master - Bug #12396: Compilation crashes with segmentation fault in HP-UX 11.31https://bugs.ruby-lang.org/issues/12396?journal_id=605742016-09-20T11:40:05Zmichael-o (Michael Osipov)
<ul></ul><p>Just retried with a stable snapshot:</p>
<pre><code>compiling ./missing/strlcpy.c
/opt/aCC/bin/aCC -Ae -g -c ia64.s
compiling addr2line.c
compiling dmyenc.c
linking miniruby
generating encdb.h
./tool/generic_erb.rb:2: [BUG] Segmentation fault at 0x001000
ruby 2.3.2p182 (2016-08-30 revision 56032) [ia64-hpux11.31]
-- Control frame information -----------------------------------------------
c:0003 p:---- s:0025 e:000024 CFUNC :require
c:0002 p:0008 s:0021 E:001d4c EVAL ./tool/generic_erb.rb:2 [FINISH]
c:0001 p:0000 s:0002 E:001d98 (none) [FINISH]
-- Ruby level backtrace information ----------------------------------------
./tool/generic_erb.rb:2:in `<main>'
./tool/generic_erb.rb:2:in `require'
-- Other runtime information -----------------------------------------------
* Loaded script: ./tool/generic_erb.rb
* Loaded features:
0 enumerator.so
1 thread.rb
2 rational.so
3 complex.so
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Makefile:1374: recipe for target 'encdb.h' failed
gmake: *** [encdb.h] IOT trap (core dumped)
</code></pre>
<p>Same issue. Anyone some smart idea? I need Ruby for Asciidoctor.</p> Ruby master - Bug #12396: Compilation crashes with segmentation fault in HP-UX 11.31https://bugs.ruby-lang.org/issues/12396?journal_id=605752016-09-20T12:00:32Zmichael-o (Michael Osipov)
<ul></ul><p>I have removed the asterisk from the x and got a bit further to:</p>
<pre><code>gmake[3]: Entering directory '/tmp/stable-snapshot/ext/fiddle/libffi-3.2.1'
gmake 'AR_FLAGS=' 'CC_FOR_BUILD=' 'CFLAGS=-g -warn all' 'CXXFLAGS=-g ' 'CFLAGS_FOR_BUILD=' 'CFLAGS_FOR_TARGET=' 'INSTALL=/usr/local/coreutils/bin/install -c' 'INSTALL_DATA=/usr/local/coreutils/bin/install -c -m 644' 'INSTALL_PROGRAM=/usr/local/coreutils/bin/install -c' 'INSTALL_SCRIPT=/usr/local/coreutils/bin/install -c' 'JC1FLAGS=' 'LDFLAGS=-L. -L../../.. ' 'LIBCFLAGS=' 'LIBCFLAGS_FOR_TARGET=' 'MAKE=gmake' 'MAKEINFO=/bin/sh /tmp/stable-snapshot/ext/fiddle/libffi-3.2.1/missing makeinfo ' 'PICFLAG=' 'PICFLAG_FOR_TARGET=' 'RUNTESTFLAGS=' 'SHELL=/bin/sh' 'exec_prefix=/usr/local' 'infodir=/usr/local/share/info' 'libdir=/tmp/ruby/lib' 'mandir=/usr/local/share/man' 'prefix=/usr/local' 'AR=ar' 'AS=as' 'CC=/opt/aCC/bin/aCC -Ae' 'CXX=aCC' 'LD=ld' 'NM=/usr/bin/nm -p' 'RANLIB=ranlib' 'DESTDIR=' all-recursive
gmake[4]: Entering directory '/tmp/stable-snapshot/ext/fiddle/libffi-3.2.1'
Making all in include
gmake[5]: Entering directory '/tmp/stable-snapshot/ext/fiddle/libffi-3.2.1/include'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/tmp/stable-snapshot/ext/fiddle/libffi-3.2.1/include'
Making all in testsuite
gmake[5]: Entering directory '/tmp/stable-snapshot/ext/fiddle/libffi-3.2.1/testsuite'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/tmp/stable-snapshot/ext/fiddle/libffi-3.2.1/testsuite'
Making all in man
gmake[5]: Entering directory '/tmp/stable-snapshot/ext/fiddle/libffi-3.2.1/man'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/tmp/stable-snapshot/ext/fiddle/libffi-3.2.1/man'
gmake[5]: Entering directory '/tmp/stable-snapshot/ext/fiddle/libffi-3.2.1'
CC src/prep_cif.lo
aCC: warning 901: unknown option: `-arn': use +help for online documentation.
aCC: warning 1913: `all' does not exist or cannot be read
CC src/types.lo
aCC: warning 901: unknown option: `-arn': use +help for online documentation.
aCC: warning 1913: `all' does not exist or cannot be read
CC src/raw_api.lo
aCC: warning 901: unknown option: `-arn': use +help for online documentation.
aCC: warning 1913: `all' does not exist or cannot be read
CC src/java_raw_api.lo
aCC: warning 901: unknown option: `-arn': use +help for online documentation.
aCC: warning 1913: `all' does not exist or cannot be read
CC src/closures.lo
aCC: warning 901: unknown option: `-arn': use +help for online documentation.
aCC: warning 1913: `all' does not exist or cannot be read
CC src/ia64/ffi.lo
aCC: warning 901: unknown option: `-arn': use +help for online documentation.
aCC: warning 1913: `all' does not exist or cannot be read
"src/ia64/ffi.c", line 41: error #3088: an attribute specifies a mode
incompatible with "void *"
typedef void *PTR64 __attribute__((mode(DI)));
^
"src/ia64/ffi.c", line 116: error #2018: expected a ")"
stf_spill (fpaddr, *(float *) addr);
^
"src/ia64/ffi.c", line 119: error #2018: expected a ")"
stf_spill (fpaddr, *(double *) addr);
^
"src/ia64/ffi.c", line 122: error #2018: expected a ")"
stf_spill (fpaddr, *(__float80 *) addr);
^
"src/ia64/ffi.c", line 140: error #2018: expected a ")"
ldf_fill (result, fpaddr);
^
"src/ia64/ffi.c", line 147: error #2018: expected a ")"
ldf_fill (result, fpaddr);
^
"src/ia64/ffi.c", line 154: error #2018: expected a ")"
ldf_fill (result, fpaddr);
^
"src/ia64/ffi.c", line 187: error #3578: case label value has already appeared
in this switch at line 181
case FFI_TYPE_LONGDOUBLE:
^
"src/ia64/ffi.c", line 327: error #2018: expected a ")"
stf_spill (&stack->fp_regs[fpcount++], *(float *)avalue[i]);
^
"src/ia64/ffi.c", line 337: error #2018: expected a ")"
stf_spill (&stack->fp_regs[fpcount++], *(double *)avalue[i]);
^
"src/ia64/ffi.c", line 341: error #3578: case label value has already appeared
in this switch at line 335
case FFI_TYPE_LONGDOUBLE:
^
"src/ia64/ffi.c", line 345: error #2018: expected a ")"
stf_spill (&stack->fp_regs[fpcount++], *(__float80 *)avalue[i]);
^
"src/ia64/ffi.c", line 371: error #3143: arithmetic on pointer to void or
function type
avalue[i] + offset);
^
"src/ia64/ffi.c", line 499: error #2018: expected a ")"
ldf_fill (result, addr);
^
"src/ia64/ffi.c", line 513: error #2018: expected a ")"
ldf_fill (result, addr);
^
"src/ia64/ffi.c", line 521: error #3578: case label value has already appeared
in this switch at line 507
case FFI_TYPE_LONGDOUBLE:
^
"src/ia64/ffi.c", line 529: error #2018: expected a ")"
ldf_fill (result, addr);
^
"src/ia64/ffi.c", line 560: error #3143: arithmetic on pointer to void or
function type
hfa_type_store (hfa_type, addr + offset,
^
"src/ia64/ffi.c", line 568: error #3143: arithmetic on pointer to void or
function type
memcpy (addr + offset, (char *)stack->gp_regs + gp_offset,
^
19 errors detected in the compilation of "src/ia64/ffi.c".
Makefile:1362: recipe for target 'src/ia64/ffi.lo' failed
gmake[5]: *** [src/ia64/ffi.lo] Error 1
gmake[5]: Leaving directory '/tmp/stable-snapshot/ext/fiddle/libffi-3.2.1'
Makefile:1596: recipe for target 'all-recursive' failed
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory '/tmp/stable-snapshot/ext/fiddle/libffi-3.2.1'
Makefile:730: recipe for target 'all' failed
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory '/tmp/stable-snapshot/ext/fiddle/libffi-3.2.1'
Makefile:373: recipe for target 'libffi-3.2.1/.libs/libffi_convenience.a' failed
gmake[2]: *** [libffi-3.2.1/.libs/libffi_convenience.a] Error 2
gmake[2]: Leaving directory '/tmp/stable-snapshot/ext/fiddle'
exts.mk:185: recipe for target 'ext/fiddle/all' failed
gmake[1]: *** [ext/fiddle/all] Error 2
gmake[1]: Leaving directory '/tmp/stable-snapshot'
Makefile:760: recipe for target 'build-ext' failed
gmake: *** [build-ext] Error 2
</code></pre> Ruby master - Bug #12396: Compilation crashes with segmentation fault in HP-UX 11.31https://bugs.ruby-lang.org/issues/12396?journal_id=657222017-07-10T08:13:33Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Assignee</strong> set to <i>takano32 (Mitsuhiro TAKANO)</i></li></ul> Ruby master - Bug #12396: Compilation crashes with segmentation fault in HP-UX 11.31https://bugs.ruby-lang.org/issues/12396?journal_id=799922019-07-24T23:05:10Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul>