Build of 1.8.0 preview3 crashes on alphaev67-osf5.1

We run 3 alpha servers running tru64 5.1A (osf 5.1A). The 1.8.0
preview3 default build crashes. I could not see anything very wrong
in defines.h, and 1.6.8 built without this error (it did need a minor
fix in [socket]. The make output ends with:

*** bunch o stuff edited out ***
cc -ieee -g -oldc -std -I. -I. -c version.c
cc -I. -ieee -g -oldc -std -I. -I. -c ./missing/isinf.c
cc -ieee -g -oldc -std -I. -I. -c dmyext.c
ar rcu libruby-static.a array.o bignum.o class.o compar.o dir.o
dln.o enum.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
isinf.o dmyext.o
cc -ieee -g -oldc -std -I. -I. -c main.c
cc -ieee -g -oldc -std main.o dmyext.o libruby-static.a -lm -o
miniruby
compiling Win32API
/u13/home/doug/ruby/download/ruby-1.8.0/lib/mkmf.rb:191: [BUG]
Segmentation fault
ruby 1.8.0 (2003-06-23) [alphaev67-osf5.1]

sh: 363974 Abort - core dumped
*** Exit 134
Stop.

  1. What is my next step?
  2. Why is ruby building win32api? I’m not running on a windows box.
  3. Is anybody out there using osf 5.1? With preview 3?

doug.hendricks@tnziXYZ.com # dispose of the “XYZ” to send stuff back

Hi,

  1. What is my next step?

Show us stack trace using gdb. Can you?

  1. Why is ruby building win32api? I’m not running on a windows box.

It’s trying to check if it’s not available.

						matz.
···

In message “Build of 1.8.0 preview3 crashes on alphaev67-osf5.1” on 03/07/09, the_rev_dharma_roadkill doug.hendricks@tnzi.com writes:

Hi,

In mail “Build of 1.8.0 preview3 crashes on alphaev67-osf5.1”

We run 3 alpha servers running tru64 5.1A (osf 5.1A). The 1.8.0
preview3 default build crashes. I could not see anything very wrong
in defines.h, and 1.6.8 built without this error (it did need a minor
fix in [socket]. The make output ends with:

compiling Win32API
/u13/home/doug/ruby/download/ruby-1.8.0/lib/mkmf.rb:191: [BUG]
Segmentation fault
ruby 1.8.0 (2003-06-23) [alphaev67-osf5.1]

  1. What is my next step?

Did you applied my patch?
If not, please try this:

http://i.loveruby.net/archive/ruby-1.8.0-preview3-alphafix.diff.gz

This patch is already included in CVS repository,
you will not warried about this problem in the next preview
(or, 1.8.0 release :slight_smile:

Regards,
Minero Aoki

···

doug.hendricks@tnzi.com (the_rev_dharma_roadkill) wrote:

matz@ruby-lang.org (Yukihiro Matsumoto) wrote in message news:1057722296.192858.13666.nullmailer@picachu.netlab.jp

Hi,

  1. What is my next step?

Show us stack trace using gdb. Can you?

  1. Why is ruby building win32api? I’m not running on a windows box.

It’s trying to check if it’s not available.

  					matz.

from dbx (i dont have gdb or sdb):

dbx miniruby ext/Win32API/core
dbx version 5.1
Type ‘help’ for help.
Core file created by program “miniruby”

signal IOT/Abort trap at >*[__kill, 0x3ff800e9468] beq a3,
0x3ff800e948
0
(dbx) t

0 __kill(0x3ff00000000, 0x1401ab8f0, 0x3ff801c9898, 0x0, 0x2) [0x3ff800e9468]
1 (unknown)() [0x3ff802132a0]
2 __tis_raise(0x2, 0xffffffffffffffff, 0x3ff8013c1f8, 0x0,
0x3ff801c98cc) [0x
3ff8013c1f4]
3 abort(0x1200517bc, 0x140089850, 0x0, 0x0, 0x100000000)
[0x3ff801c98c8]
4 rb_bug(fmt = 0x140008768 = “Segmentation fault”) [“error.c”:191,
0x1200517b
8]
5 sigsegv(sig = 11) [“signal.c”:412, 0x12009e0d4]
6 rb_class_of(obj = 1075493264) [“ruby.h”:632, 0x12001f678]
7 rb_funcall(recv = 1075493264, mid = 7241, n = 0) [“eval.c”:5157,
0x12002e63
c]
8 io_close(io = 1075493264) [“io.c”:1428, 0x12007b7b8]
9 rb_ensure(b_proc = 0x12002b0bc, data1 = 5370460560, e_proc =
0x12007b768, d
ata2 = 5370460560) [“eval.c”:4553, 0x12002c3c0]
10 rb_io_s_open(argc = 2, argv = 0x11fff1ab0, klass = 5369269760)
[“io.c”:2262
, 0x12007d410]
11 rb_f_open(argc = 2, argv = 0x11fff1ab0) [“io.c”:2304,
0x12007d664]
12 call_cfunc(func = 0x12007d5e4, recv = 5369345160, len = -1, argc
= 2, argv
= 0x11fff1ab0) [“eval.c”:4741, 0x12002cf30]
13 rb_call0(klass = 5369354520, recv = 5369345160, id = 6905, oid =
6905, argc
= 2, argv = 0x11fff1ab0, body = 0x14008b3d0, nosuper = 1)
[“eval.c”:4875, 0x120
02dabc]
14 rb_call(klass = 5369354520, recv = 5369345160, mid = 6905, argc =
2, argv =
0x11fff1ab0, scope = 1) [“eval.c”:5092, 0x12002e32c]
15 rb_eval(self = 5369345160, n = 0x1400483a0) [“eval.c”:2988,
0x120027434]
16 rb_eval(self = 5369345160, n = 0x140048148) [“eval.c”:2699,
0x120026070]
17 rb_call0(klass = 5369354800, recv = 5369345160, id = 10633, oid =
10633, ar
gc = 0, argv = 0x11fff27e8, body = 0x140048148, nosuper = 0)
[“eval.c”:5003, 0x1
2002de10]
18 rb_call(klass = 5369354800, recv = 5369345160, mid = 10633, argc
= 1, argv
= 0x11fff27e0, scope = 1) [“eval.c”:5092, 0x12002e32c]
19 rb_eval(self = 5369345160, n = 0x140047ce8) [“eval.c”:2988,
0x120027434]
20 rb_eval(self = 5369345160, n = 0x140047a40) [“eval.c”:2834,
0x120026924]
21 rb_call0(klass = 5369354800, recv = 5369345160, id = 10649, oid =
10649, ar
gc = 0, argv = 0x11fff3530, body = 0x140047a40, nosuper = 0)
[“eval.c”:5003, 0x1
2002de10]
22 rb_call(klass = 5369354800, recv = 5369345160, mid = 10649, argc
= 2, argv
= 0x11fff3520, scope = 1) [“eval.c”:5092, 0x12002e32c]
23 rb_eval(self = 5369345160, n = 0x140043d28) [“eval.c”:2988,
0x120027434]
24 rb_eval(self = 5369345160, n = 0x140043b70) [“eval.c”:2834,
0x120026924]
25 rb_call0(klass = 5369354800, recv = 5369345160, id = 10801, oid =
10801, ar
gc = 0, argv = 0x11fff4268, body = 0x140043b70, nosuper = 0)
[“eval.c”:5003, 0x1
2002de10]
26 rb_call(klass = 5369354800, recv = 5369345160, mid = 10801, argc
= 1, argv
= 0x11fff4260, scope = 1) [“eval.c”:5092, 0x12002e32c]
27 rb_eval(self = 5369345160, n = 0x1401e5488) [“eval.c”:2988,
0x120027434]
28 rb_eval(self = 5369345160, n = 0x1401e4fd8) [“eval.c”:2532,
0x1200253e4]
29 rb_yield_0(val = 6, self = 5369345160, klass = 0, pcall = 0,
avalue = 0) ["
eval.c":4118, 0x12002ad9c]
30 rb_eval(self = 5369345160, n = 0x1401e8200) [“eval.c”:2784,
0x12002661c]
31 rb_eval(self = 5369345160, n = 0x14003c1b8) [“eval.c”:3144,
0x120027e0c]
32 rb_call0(klass = 5369354800, recv = 5369345160, id = 11025, oid =
11025, ar
gc = 0, argv = 0x11fff5c38, body = 0x14003c1b8, nosuper = 0)
[“eval.c”:5003, 0x1
2002de10]
33 rb_call(klass = 5369354800, recv = 5369345160, mid = 11025, argc
= 1, argv
= 0x11fff5c30, scope = 1) [“eval.c”:5092, 0x12002e32c]
34 rb_eval(self = 5369345160, n = 0x1401e55a0) [“eval.c”:2988,
0x120027434]
35 rb_eval(self = 5369345160, n = 0x1401e4ee8) [“eval.c”:2699,
0x120026070]
36 rb_call0(klass = 5369354800, recv = 5369345160, id = 11081, oid =
11081, ar
gc = 0, argv = 0x11fff6968, body = 0x1401e4ee8, nosuper = 0)
[“eval.c”:5003, 0x1
2002de10]
37 rb_call(klass = 5369354800, recv = 5369345160, mid = 11081, argc
= 1, argv
= 0x11fff6960, scope = 1) [“eval.c”:5092, 0x12002e32c]
38 rb_eval(self = 5369345160, n = 0x1401ac2a0) [“eval.c”:2988,
0x120027434]
39 rb_eval(self = 5369345160, n = 0x1401ac1d8) [“eval.c”:2849,
0x120025738]
40 rb_eval(self = 5369345160, n = 0x1401ac048) [“eval.c”:2532,
0x1200253e4]
41 eval_node(self = 5369345160, node = 0x1401ac048) [“eval.c”:1217,
0x120021b4
8]
42 rb_load(fname = 5370463480, wrap = 0) [“eval.c”:5732,
0x1200303bc]
43 rb_f_load(argc = 1, argv = 0x11fff7f60) [“eval.c”:5781,
0x1200307a0]
44 call_cfunc(func = 0x120030744, recv = 5369345160, len = -1, argc
= 1, argv
= 0x11fff7f60) [“eval.c”:4741, 0x12002cf30]
45 rb_call0(klass = 5369354520, recv = 5369345160, id = 8889, oid =
8889, argc
= 1, argv = 0x11fff7f60, body = 0x140082028, nosuper = 1)
[“eval.c”:4875, 0x120
02dabc
46 rb_call(klass = 5369354520, recv = 5369345160, mid = 8889, argc =
1, argv =
0x11fff7f60, scope = 1) [“eval.c”:5092, 0x12002e32c]
47 rb_eval(self = 5369345160, n = 0x14007a4e0) [“eval.c”:2988,
0x120027434]
48 rb_eval(self = 5369345160, n = 0x14007a008) [“eval.c”:2794,
0x1200266c0]
49 rb_eval(self = 5369345160, n = 0x14007ae18) [“eval.c”:2834,
0x120026924]
50 rb_eval(self = 5369345160, n = 0x14007b9f8) [“eval.c”:2444,
0x120025874]
51 rb_eval(self = 5369345160, n = 0x14007c5d8) [“eval.c”:2834,
0x120026924]
52 rb_call0(klass = 5369354800, recv = 5369345160, id = 9777, oid =
9777, argc
= 0, argv = 0x11fff99a8, body = 0x14007c5d8, nosuper = 0)
[“eval.c”:5003, 0x120
02de10]
53 rb_call(klass = 5369354800, recv = 5369345160, mid = 9777, argc =
1, argv =
0x11fff99a0, scope = 1) [“eval.c”:5092, 0x12002e32c]
54 rb_eval(self = 5369345160, n = 0x140071840) [“eval.c”:2988,
0x120027434]
55 rb_eval(self = 5369345160, n = 0x140071908) [“eval.c”:2855,
0x120025768]
56 rb_yield_0(val = 5370467680, self = 5369345160, klass = 0, pcall
= 0, avalu
e = 0) [“eval.c”:4118, 0x12002ad9c]
57 rb_yield(val = 5370467680) [“eval.c”:4187, 0x12002b0e4]
58 push_pattern(path = 0x14020e9b0 =
“/u13/home/doug/ruby/download/ruby-1.8.0/
ext/Win32API/MANIFEST”, ary = 0) [“dir.c”:890, 0x1200c2f20]
59 glob_func_caller(val = 4831816072) [“dir.c”:670, 0x1200c2434]
60 rb_protect( = 4831817608, proc = 0x1200c2414, data = 4831816072,
state = 0x
11fffa9a0) [“eval.c”:4523, 0x12002c254]
61 glob_call_func( = 0x14020e9b0 =
“/u13/home/doug/ruby/download/ruby-1.8.0/ex
t/Win32API/MANIFEST”, = 5370866096, func = 0x1200c2ec4, path =
0x14020e9b0 = "/
62 glob_helper( = 0x3f0b7b07, = 1057716999, path = 0x14020e9b0 =
“/u13/home/d
oug/ruby/download/ruby-1.8.0/ext/Win32API/MANIFEST”, sub = 0x14020e9e4
= “/MANIF
EST”, flags = 0, func = 0x1200c2ec4, arg = 0) [“dir.c”:711,
0x1200c2564]
63 glob_helper( = 0x3f0b7b08, = 1057717000, path = 0x14020e910 =
“/u13/home/d
oug/ruby/download/ruby-1.8.0/ext/Win32API//MANIFEST", sub =
0x14020e944 = "/

/MANIFEST”, flags = 0, func = 0x1200c2ec4, arg = 0) [“dir.c”:753,
0x1200c2760]
64 glob_helper( = 0x3f0b7b08, = 1057717000, path = 0x140209140 =
“/u13/home/d
oug/ruby/download/ruby-1.8.0/ext//MANIFEST", sub = (nil), flags = 0,
func = 0x
1200c2ec4, arg = 0) [“dir.c”:792, 0x1200c29c0]
65 rb_glob2( = 0x1200c2f6c = “”, = 4832636780, path = 0x140209140 =
"/u13/hom
e/doug/ruby/download/ruby-1.8.0/ext/
/MANIFEST”, flags = 0, func =
0x1200c2ec4,
arg = 0) [“dir.c”:857, 0x1200c2e0c]
66 push_globs(ary = 0, s = 0x140209140 =
“/u13/home/doug/ruby/download/ruby-1.
8.0/ext/**/MANIFEST”, flags = 0) [“dir.c”:900, 0x1200c2f68]
67 rb_push_glob(str = 5370467720, flags = 0) [“dir.c”:995,
0x1200c3398]
68 dir_s_glob(argc = 1, argv = 0x11fffb380, obj = 5369257440)
[“dir.c”:1028, 0
x1200c34c8]
69 call_cfunc(func = 0x1200c3428, recv = 5369257440, len = -1, argc
= 1, argv
= 0x11fffb380) [“eval.c”:4741, 0x12002cf30]
70 rb_call0(klass = 5369257400, recv = 5369257440, id = 8137, oid =
8137, argc
= 1, argv = 0x11fffb380, body = 0x140085688, nosuper = 1)
[“eval.c”:4875, 0x120
02dabc]
71 rb_call(klass = 5369257400, recv = 5369257440, mid = 8137, argc =
1, argv =
0x11fffb380, scope = 0) [“eval.c”:5092, 0x12002e32c]
72 rb_eval(self = 5369345160, n = 0x140071ca0) [“eval.c”:2974,
0x120027234]
73 rb_eval(self = 5369345160, n = 0x14007f0d0) [“eval.c”:2699,
0x120026070]
74 eval_node(self = 5369345160, node = 0x14007f0d0) [“eval.c”:1217,
0x120021b4
8]
75 ruby_exec() [“eval.c”:1373, 0x120022208]
76 ruby_run() [“eval.c”:1394, 0x1200222e0]
77 main(argc = 7, argv = 0x11fffc018, envp = 0x11fffc058)
[“main.c”:50, 0x1200
1f5d0]
(dbx)

Hope this helps. Apologies for the cut/paste line breaks. Let me
know if you need anything else.

···

In message “Build of 1.8.0 preview3 crashes on alphaev67-osf5.1” > on 03/07/09, the_rev_dharma_roadkill doug.hendricks@tnzi.com writes:

Minero Aoki aamine@loveruby.net wrote in message news:20030710105622L.aamine@loveruby.net

Hi,

In mail “Build of 1.8.0 preview3 crashes on alphaev67-osf5.1”

We run 3 alpha servers running tru64 5.1A (osf 5.1A). The 1.8.0
preview3 default build crashes. I could not see anything very wrong
in defines.h, and 1.6.8 built without this error (it did need a minor
fix in [socket]. The make output ends with:

compiling Win32API
/u13/home/doug/ruby/download/ruby-1.8.0/lib/mkmf.rb:191: [BUG]
Segmentation fault
ruby 1.8.0 (2003-06-23) [alphaev67-osf5.1]

  1. What is my next step?

Did you applied my patch?
If not, please try this:

http://i.loveruby.net/archive/ruby-1.8.0-preview3-alphafix.diff.gz

I’ll give it a try when I can but my development machine is very sick
right now.

This patch is already included in CVS repository,
you will not warried about this problem in the next preview
(or, 1.8.0 release :slight_smile:

I’m also trying to get anonymous cvs to work on another machine but I
think that my company’s firewall is thwarting me.

Regards,
Minero Aoki

Many thanks,
Doug

···
doug.hendricks@tnzi.com (the_rev_dharma_roadkill) wrote:

Minero Aoki aamine@loveruby.net wrote in message news:20030710105622L.aamine@loveruby.net

Hi,

In mail “Build of 1.8.0 preview3 crashes on alphaev67-osf5.1”

We run 3 alpha servers running tru64 5.1A (osf 5.1A). The 1.8.0
preview3 default build crashes. I could not see anything very wrong
in defines.h, and 1.6.8 built without this error (it did need a minor
fix in [socket]. The make output ends with:

compiling Win32API
/u13/home/doug/ruby/download/ruby-1.8.0/lib/mkmf.rb:191: [BUG]
Segmentation fault
ruby 1.8.0 (2003-06-23) [alphaev67-osf5.1]

  1. What is my next step?

Did you applied my patch?
If not, please try this:

http://i.loveruby.net/archive/ruby-1.8.0-preview3-alphafix.diff.gz

This patch is already included in CVS repository,
you will not warried about this problem in the next preview
(or, 1.8.0 release :slight_smile:

Regards,
Minero Aoki

The patch isn’t enough: my build gets farther but still crashes at an
old sticking point: in ext/socket.
It’s because of -D__ss_family … at the top of the extconf.rb file,
my system hates this line but other platforms require it.
My experimental fix is to try to test HAVE_SOCKADDR_STORAGE without
this line, then add it only if HAVE_SOCKADDR_STORAGE doesn’t link.

I will provide this diff in another thread.

Doug

···
doug.hendricks@tnzi.com (the_rev_dharma_roadkill) wrote:

Minero Aoki aamine@loveruby.net wrote in message news:20030710105622L.aamine@loveruby.net

Hi,

In mail “Build of 1.8.0 preview3 crashes on alphaev67-osf5.1”

We run 3 alpha servers running tru64 5.1A (osf 5.1A). The 1.8.0
preview3 default build crashes. I could not see anything very wrong
in defines.h, and 1.6.8 built without this error (it did need a minor
fix in [socket]. The make output ends with:

compiling Win32API
/u13/home/doug/ruby/download/ruby-1.8.0/lib/mkmf.rb:191: [BUG]
Segmentation fault
ruby 1.8.0 (2003-06-23) [alphaev67-osf5.1]

  1. What is my next step?

Did you applied my patch?
If not, please try this:

http://i.loveruby.net/archive/ruby-1.8.0-preview3-alphafix.diff.gz

This patch is already included in CVS repository,
you will not warried about this problem in the next preview
(or, 1.8.0 release :slight_smile:

Regards,
Minero Aoki

I am so dumb. I can’t remember if I replied to this or not, and it
will be many hours until google groups shows the update.

Yes, I applied the patch. It helped. Now I crash in a different
place, in ext/socket. The cause is a line at the top of
ext/socket/extconf.rb which sets a pre-processor macro -Dss_family=…
If I comment this out, it runs fine, but I hear that other systems
need it.
I have posted, in another thread, a possible fix.

Thanks,
Doug

···
doug.hendricks@tnzi.com (the_rev_dharma_roadkill) wrote: