Project

General

Profile

Actions

Bug #2465

closed

Couldn't compile ruby 1.8.7-p72 on HP-UX 11.23 ia64 with pthread

Added by koliama (Nikolay Aralovets) over 14 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
ruby -v:
1.8.7-p72
[ruby-core:27112]

Description

=begin
Hello,
I try to compile ruby 1.8.7-p72 on HP-UX 11.23 ia64 with pthread support. My actions is:

  1. export LDFLAGS=-L/usr/local/lib -L/usr/lib -L/opt/openssl/lib/hpux32
    export CPPFLAGS=-I/usr/local/include -I/usr/include -I/opt/openssl/include/openssl
    export CC=/usr/local/bin/gcc - use gcc v3.4.4
  2. ./configure --enable-pthread --enable-shared --with-search-path=/opt/openssl
  3. gmake
    Gmake ends with error:
    ld -b -E array.o bignum.o class.o compar.o dir.o dln.o enum.o enumerator.o error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o prec.o random.o range.o re.o regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o variable.o version.o flock.o isinf.o ia64.o dmyext.o -lpthread -ldld -ldl -lm -o libruby.sl.1.8.7
    /bin/sh: 9313 Memory fault(coredump)
    gmake: *** [all] Error 139
    I usage native hp-ux ld
  4. Run GDB
    gdb -core=core

bash-4.0# gdb -core=core
HP gdb 5.7 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.7 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.

Reading symbols from miniruby...done.
Core was generated by `miniruby'.
Program terminated with signal 11, Segmentation fault.
SEGV_MAPERR - Address not mapped to object
#0 0x405f760:0 in rb_eval (self=1076674104, n=0x402d85a0) at eval.c:2943
2943 NODE * volatile contnode = 0;
(gdb) ba
#0 0x405f760:0 in rb_eval (self=1076674104, n=0x402d85a0) at eval.c:2943
#1 0x4061630:0 in rb_eval (self=1076674104, n=0x402d8540) at eval.c:3441
#2 0x4067d60:0 in rb_eval (self=1076674104, n=0x402d8528) at eval.c:3487
#3 0x4080f70:0 in block_pass (self=1076674104, node=0x402d8558) at eval.c:9138
#4 0x4061a90:0 in rb_eval (self=1076674104, n=0x402d8510) at eval.c:3208
#5 0x40751d0:0 in rb_yield_0 (val=1076673960, self=1076674104,
klass=1076685456, flags=0, avalue=0) at eval.c:5077
#6 0x417b0d0:0 in rb_ary_reverse_each (ary=1076674008) at array.c:1318
#7 0x4050460:0 in call_cfunc (func=0x4043610 <.opd+0x4130>, recv=1076674008,
len=0, argc=0, argv=0x402cbde8) at eval.c:5752
#8 0x406e4a0:0 in rb_call0 (klass=1074183456, recv=1076674008, id=3945,
oid=3945, argc=0, argv=0x0, body=0x4006b7c8, flags=0) at eval.c:5904
#9 0x406e930:0 in rb_call (klass=1074183456, recv=1076674008, mid=3945,
argc=0, argv=0x0, scope=0, self=1076674104) at eval.c:6151
#10 0x4060050:0 in rb_eval (self=1076674104, n=0x402d8630) at eval.c:3492
#11 0x406afa0:0 in rb_eval (self=1076674104, n=0x402d86d8) at eval.c:3222
#12 0x406df50:0 in rb_call0 (klass=1076685456, recv=1076674104, id=15649,
oid=15649, argc=2, argv=0x7f9dbb84, body=0x402d86d8, flags=0)
at eval.c:6055
#13 0x406e930:0 in rb_call (klass=1076685456, recv=1076674104, mid=15649,
argc=3, argv=0x7f9dbb80, scope=1, self=1076674104) at eval.c:6151
#14 0x4060380:0 in rb_eval (self=1076674104, n=0x402d8168) at eval.c:3492
#15 0x406afa0:0 in rb_eval (self=1076674104, n=0x402d7fd0) at eval.c:3222
---Type to continue, or q to quit---
#16 0x406df50:0 in rb_call0 (klass=1076685456, recv=1076674104, id=15425,
oid=15425, argc=0, argv=0x7fa76788, body=0x402d7fd0, flags=0)
at eval.c:6055
#17 0x406e930:0 in rb_call (klass=1076685456, recv=1076674104, mid=15425,
argc=2, argv=0x7fa76780, scope=1, self=1076674104) at eval.c:6151
#18 0x4060380:0 in rb_eval (self=1076674104, n=0x402e5428) at eval.c:3492
#19 0x406afa0:0 in rb_eval (self=1076674104, n=0x402e4eb8) at eval.c:3222
#20 0x4063830:0 in rb_eval (self=1076674104, n=0x402e4a08) at eval.c:3047
#21 0x40751d0:0 in rb_yield_0 (val=1076673216, self=1076674104,
klass=1076685456, flags=0, avalue=0) at eval.c:5077
#22 0x417ae60:0 in rb_ary_each (ary=1076673096) at array.c:1261
#23 0x4050460:0 in call_cfunc (func=0x7efce7c8, recv=1076673096, len=0,
argc=0, argv=0x402cba58) at eval.c:5752
#24 0x406e4a0:0 in rb_call0 (klass=1074183456, recv=1076673096, id=4001,
oid=4001, argc=0, argv=0x0, body=0x4006b828, flags=0) at eval.c:5904
#25 0x406e930:0 in rb_call (klass=1074183456, recv=1076673096, mid=4001,
argc=0, argv=0x0, scope=0, self=1076674104) at eval.c:6151
#26 0x4060050:0 in rb_eval (self=1076674104, n=0x402e5518) at eval.c:3492
#27 0x406afa0:0 in rb_eval (self=1076674104, n=0x402e58a8) at eval.c:3222
#28 0x406df50:0 in rb_call0 (klass=1076685456, recv=1076674104, id=15745,
oid=15745, argc=0, argv=0x7fbff538, body=0x402e58a8, flags=0)
at eval.c:6055
#29 0x406e930:0 in rb_call (klass=1076685456, recv=1076674104, mid=15745,
---Type to continue, or q to quit---
argc=2, argv=0x7fbff530, scope=1, self=1076674104) at eval.c:6151
#30 0x4060380:0 in rb_eval (self=1076674104, n=0x402dfc68) at eval.c:3492
#31 0x4062190:0 in rb_eval (self=1076674104, n=0x402dfc50) at eval.c:3677
#32 0x4061810:0 in rb_eval (self=1076674104, n=0x402dfc38) at eval.c:3276
#33 0x4067d60:0 in rb_eval (self=1076674104, n=0x402dfd28) at eval.c:3487
#34 0x406df50:0 in rb_call0 (klass=1076685456, recv=1076674104, id=15841,
oid=15841, argc=1, argv=0x7fd28df0, body=0x402dfd28, flags=0)
at eval.c:6055
#35 0x406e930:0 in rb_call (klass=1076685456, recv=1076674104, mid=15841,
argc=1, argv=0x7fd28df0, scope=1, self=1076674104) at eval.c:6151
#36 0x4060380:0 in rb_eval (self=1076674104, n=0x402df920) at eval.c:3492
#37 0x4080f70:0 in block_pass (self=1076674104, node=0x402df950) at eval.c:9138
#38 0x4061a90:0 in rb_eval (self=1076674104, n=0x402df9b0) at eval.c:3208
#39 0x406df50:0 in rb_call0 (klass=1076685456, recv=1076674104, id=11537,
oid=11537, argc=1, argv=0x7fdcf8f0, body=0x402df9b0, flags=0)
at eval.c:6055
#40 0x406e930:0 in rb_call (klass=1076685456, recv=1076674104, mid=11537,
argc=1, argv=0x7fdcf8f0, scope=0, self=1074214872) at eval.c:6151
#41 0x4060050:0 in rb_eval (self=1074214872, n=0x400551f0) at eval.c:3492
#42 0x406afa0:0 in rb_eval (self=1074214872, n=0x40054ef0) at eval.c:3222
#43 0x40751d0:0 in rb_yield_0 (val=1076674104, self=1074214872,
klass=1074220968, flags=0, avalue=0) at eval.c:5077
#44 0x4069410:0 in rb_eval (self=1076674104, n=0x402eb4a0) at eval.c:3297
---Type to continue, or q to quit---
#45 0x406df50:0 in rb_call0 (klass=1076685456, recv=1076674104, id=2961,
oid=2961, argc=0, argv=0x0, body=0x402eb4a0, flags=0) at eval.c:6055
#46 0x406e930:0 in rb_call (klass=1076685456, recv=1076674104, mid=2961,
argc=0, argv=0x0, scope=1, self=6) at eval.c:6151
#47 0x406f820:0 in rb_obj_call_init (obj=1076674104, argc=0, argv=0x0)
at eval.c:7770
#48 0x40de390:0 in rb_class_new_instance (argc=0, argv=0x0, klass=1076685456)
at object.c:1644
#49 0x4050420:0 in call_cfunc (func=0x7efce0d8, recv=1076685456, len=-1,
argc=0, argv=0x402cbe38) at eval.c:5758
#50 0x406e4a0:0 in rb_call0 (klass=1074220920, recv=1076685456, id=3361,
oid=3361, argc=0, argv=0x0, body=0x40073940, flags=0) at eval.c:5904
#51 0x406e930:0 in rb_call (klass=1074220920, recv=1076685456, mid=3361,
argc=0, argv=0x0, scope=0, self=1074214872) at eval.c:6151
#52 0x4060050:0 in rb_eval (self=1074214872, n=0x400552b0) at eval.c:3492
#53 0x406afa0:0 in rb_eval (self=1074214872, n=0x40053c00) at eval.c:3222
#54 0x40623d0:0 in rb_eval (self=1074214872, n=0x40055328) at eval.c:3692
#55 0x406df50:0 in rb_call0 (klass=1074220968, recv=1074214872, id=11505,
oid=11505, argc=0, argv=0x0, body=0x40055328, flags=0) at eval.c:6055
#56 0x406e930:0 in rb_call (klass=1074220968, recv=1074214872, mid=11505,
argc=0, argv=0x0, scope=1, self=1074214872) at eval.c:6151
#57 0x4060380:0 in rb_eval (self=1074214872, n=0x4005f468) at eval.c:3492
#58 0x4087710:0 in ruby_exec_internal () at eval.c:1641
---Type to continue, or q to quit---
#59 0x40878e0:0 in ruby_exec () at eval.c:1661
#60 0x408b790:0 in ruby_run () at eval.c:1671
#61 0x40442b0:0 in main (argc=14, argv=0x7ffff55c, envp=0xc002cc90:0)
at main.c:48
=end

Actions #1

Updated by naruse (Yui NARUSE) over 14 years ago

=begin
Please try p174.

Anyway, we can't support HP-UX because we doesn't have HP-UX environment.
=end

Actions #2

Updated by koliama (Nikolay Aralovets) about 14 years ago

=begin
Hello,
After small studying of a problem, I have understood, that problem not in Ruby source code. Problem in parameter "maxssiz" on my host which is responsible for stack size in kernel. By default his equal 8 Mb. For successful compilation Ruby with "pthread" his size should be increased at least to 56 Mb. After that Ruby compiled without problems.
I hope my experience it is useful to somebody
By!
=end

Actions #3

Updated by naruse (Yui NARUSE) about 14 years ago

  • Status changed from Open to Closed

=begin
I see, thank you for the info.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0