# Inconsistent testing Ruby 1.8.4 on Tiger

**URL:** <https://www.ruby-forum.com/t/inconsistent-testing-ruby-1-8-4-on-tiger/51090>\
**Category:** Ruby\
**Created:** [December 26, 2005, 12:10am UTC](https://www.ruby-forum.com/t/inconsistent-testing-ruby-1-8-4-on-tiger/51090 "2005-12-26T00:10:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 26, 2005, 12:10am UTC](https://www.ruby-forum.com/t/inconsistent-testing-ruby-1-8-4-on-tiger/51090/1 "2005-12-26T00:10:52Z")

</div>

I was able to build ruby 1.8.4 on my Tiger (OSX 10.4.3) box here.  
Everything built fine, and it appears that the readline support works  
as well. But when i run “make test-all” I get Inconsistent results.  
Ocne I’d get the following failures:

1. Failure:  
test\_cgi(TestWEBrickCGI)  
[./webrick/test\_cgi.rb:27:in `test_cgi' /Users/seanwolfe/src/ruby-1.8.4/lib/net/http.rb:1049:in`request’  
/Users/seanwolfe/src/ruby-1.8.4/lib/net/http.rb:2104:in  
`reading_body' /Users/seanwolfe/src/ruby-1.8.4/lib/net/http.rb:1048:in`request’  
/Users/seanwolfe/src/ruby-1.8.4/lib/net/http.rb:1033:in `request' /Users/seanwolfe/src/ruby-1.8.4/lib/net/http.rb:545:in`start’  
/Users/seanwolfe/src/ruby-1.8.4/lib/net/http.rb:1031:in `request' ./webrick/test_cgi.rb:27:in`test\_cgi’  
./webrick/utils.rb:26:in `start_server' ./webrick/utils.rb:34:in`start\_httpserver’  
./webrick/test\_cgi.rb:24:in `test\_cgi’]:  
\<"/webrick.cgi"\> expected but was  
\<"\n\n

Internal Server Error\n \n
# Internal Server Error
\n Premature end of script headers: /Users/seanwolfe/src/ruby-1.8.4/test/webrick/webrick.cgi\n 
* * *
\n \n WEBrick/1.3.1 (Ruby/1.8.4/2005-12-24) OpenSSL/0.9.7b at\n 127.0.0.1:59698\n \n \n\n"\>.
1. Failure:  
test\_nil\_parse(Test\_Features)  
[./xmlrpc/test\_features.rb:43:in `test_nil_parse' /Users/seanwolfe/src/ruby-1.8.4/lib/xmlrpc/parser.rb:803:in`each\_installed\_parser’  
/Users/seanwolfe/src/ruby-1.8.4/lib/xmlrpc/parser.rb:801:in  
`each_installed_parser' ./xmlrpc/test_features.rb:33:in`test\_nil\_parse’  
/Users/seanwolfe/src/ruby-1.8.4/lib/xmlrpc/create.rb:95:in  
`each_installed_writer' /Users/seanwolfe/src/ruby-1.8.4/lib/xmlrpc/create.rb:93:in`each\_installed\_writer’  
./xmlrpc/test\_features.rb:30:in `test\_nil\_parse’]:  
\<[nil, {“test”=\>nil}, [nil, nil]]\> expected but was  
\<[nil, {“test”=\>nil}, [nil, 1, nil]]\>.

With another run, I’d get:  
/Users/seanwolfe/src/ruby-1.8.4/lib/rational.rb:453: [BUG]  
Segmentation fault

I’ve also seen the last error before, but on different files.

All other tests seem to pass. IS this any call for alarm? If there is  
something wrong, I don’t want to overwrite my current working ruby  
1.8.2 install. I also never liked installing packages with fink or  
DarwinPorts, always seem to muck things up. Does anyone have a  
successful test run of 1.84 from building on tiger?

Sean

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 26, 2005, 11:20am UTC](https://www.ruby-forum.com/t/inconsistent-testing-ruby-1-8-4-on-tiger/51090/2 "2005-12-26T11:20:54Z")

</div>

“removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

> I was able to build ruby 1.8.4 on my Tiger (OSX 10.4.3) box here.  
> Everything built fine, and it appears that the readline support works  
> as well. But when i run “make test-all” I get Inconsistent results.  
> Ocne I’d get the following failures:
> 
> 1. Failure:  
> test\_cgi(TestWEBrickCGI)

> \<“/webrick.cgi”\> expected but was  
> \<"\n\n
> 
> Internal Server Error\n \n
> # Internal Server Error
> \n Premature end of script headers: /Users/seanwolfe/src/ruby-1.8.4/test/webrick/webrick.cgi\n 
> * * *
> \n \n WEBrick/1.3.1 (Ruby/1.8.4/2005-12-24) OpenSSL/0.9.7b at\n 127.0.0.1:59698\n \n \n\n"\>.

I noticed that too (late), doing “make install” before testing makes it  
go  
away, probably a path issue of the ruby interpreter.

> ```
> /Users/seanwolfe/src/ruby-1.8.4/lib/xmlrpc/create.rb:93:in
> 
> ```
> 
> `each_installed_writer' ./xmlrpc/test_features.rb:30:in `test\_nil\_parse’]:  
> \<[nil, {“test”=\>nil}, [nil, nil]]\> expected but was  
> \<[nil, {“test”=\>nil}, [nil, 1, nil]]\>.
> 
> With another run, I’d get:  
> /Users/seanwolfe/src/ruby-1.8.4/lib/rational.rb:453: [BUG]  
> Segmentation fault

Run in gdb and post a backtrace.

> I’ve also seen the last error before, but on different files.
> 
> All other tests seem to pass. IS this any call for alarm? If there is  
> something wrong, I don’t want to overwrite my current working ruby  
> 1.8.2 install. I also never liked installing packages with fink or  
> DarwinPorts, always seem to muck things up. Does anyone have a  
> successful test run of 1.84 from building on tiger?

That said, I built on Panther.  
Likely a GCC 4.0 issue, did you try building with 3.3?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 27, 2005, 1:54am UTC](https://www.ruby-forum.com/t/inconsistent-testing-ruby-1-8-4-on-tiger/51090/3 "2005-12-27T01:54:30Z")

</div>

Hmmm… Wierd, I just built 1.8.4 without the CFLAGS using GCC 4.0, and  
then installed it. I tested it a bunch, the first 2 times had failures,  
but on all the following runs, they all pass.

Here were the previous 2 failures.

1. Error:  
test\_doc\_enc\_doc\_enc(SOAP::TestStyleUse):  
SOAP::EncodingStyle::Handler::EncodingStyleError: illegal parent:

/usr/src/ruby/ruby-1.8.4/lib/soap/encodingstyle/soapHandler.rb:238:in  
`decode\_parent’

/usr/src/ruby/ruby-1.8.4/lib/soap/encodingstyle/soapHandler.rb:118:in  
`as\_struct’

/usr/src/ruby/ruby-1.8.4/lib/soap/encodingstyle/soapHandler.rb:219:in  
`decode\_parent’

/usr/src/ruby/ruby-1.8.4/lib/soap/encodingstyle/soapHandler.rb:177:in  
`decode_tag' /usr/src/ruby/ruby-1.8.4/lib/soap/parser.rb:179:in`decode\_tag’  
/usr/src/ruby/ruby-1.8.4/lib/soap/parser.rb:130:in `start_element' /usr/src/ruby/ruby-1.8.4/lib/xsd/xmlparser/parser.rb:67:in`start\_element’  
/usr/src/ruby/ruby-1.8.4/lib/xsd/xmlparser/rexmlparser.rb:34:in  
`tag_start' /usr/src/ruby/ruby-1.8.4/lib/rexml/parsers/streamparser.rb:24:in`parse’  
/usr/src/ruby/ruby-1.8.4/lib/rexml/document.rb:173:in  
`parse_stream' /usr/src/ruby/ruby-1.8.4/lib/xsd/xmlparser/rexmlparser.rb:27:in`do\_parse’  
/usr/src/ruby/ruby-1.8.4/lib/soap/parser.rb:92:in `parse' /usr/src/ruby/ruby-1.8.4/lib/soap/processor.rb:39:in`unmarshal’  
/usr/src/ruby/ruby-1.8.4/lib/soap/rpc/router.rb:288:in `unmarshal' /usr/src/ruby/ruby-1.8.4/lib/soap/rpc/router.rb:155:in`route’  
/usr/src/ruby/ruby-1.8.4/lib/soap/rpc/soaplet.rb:88:in `do_POST' /usr/src/ruby/ruby-1.8.4/lib/webrick/httpservlet/abstract.rb:35:in`service’  
/usr/src/ruby/ruby-1.8.4/lib/webrick/httpserver.rb:104:in `service' /usr/src/ruby/ruby-1.8.4/lib/webrick/httpserver.rb:65:in`run’  
/usr/src/ruby/ruby-1.8.4/lib/webrick/server.rb:173:in  
`start_thread' /usr/src/ruby/ruby-1.8.4/lib/webrick/server.rb:162:in`start\_thread’  
/usr/src/ruby/ruby-1.8.4/lib/webrick/server.rb:95:in `start' /usr/src/ruby/ruby-1.8.4/lib/webrick/server.rb:92:in`start’  
/usr/src/ruby/ruby-1.8.4/lib/webrick/server.rb:23:in `start' /usr/src/ruby/ruby-1.8.4/lib/webrick/server.rb:82:in`start’  
/usr/src/ruby/ruby-1.8.4/lib/soap/rpc/httpserver.rb:123:in `run' /usr/src/ruby/ruby-1.8.4/lib/logger.rb:668:in`start’  
./soap/test\_styleuse.rb:250:in `start_server_thread' ./soap/test_styleuse.rb:248:in`start\_server\_thread’  
./soap/test\_styleuse.rb:216:in `setup_server' ./soap/test_styleuse.rb:204:in`setup’  
runner.rb:7  
/usr/src/ruby/ruby-1.8.4/lib/soap/rpc/proxy.rb:354:in `raise_fault' /usr/src/ruby/ruby-1.8.4/lib/soap/rpc/proxy.rb:147:in`call’  
/usr/src/ruby/ruby-1.8.4/lib/soap/rpc/driver.rb:178:in `call' /usr/src/ruby/ruby-1.8.4/lib/soap/rpc/driver.rb:232:in`rpc\_enc\_rpc\_enc’  
./soap/test\_styleuse.rb:299:in `test\_doc\_enc\_doc\_enc’

1. Error:  
test\_parser(RSS::TestSyndication):  
NoMethodError: undefined method `include?' for -517611318:Fixnum /usr/src/ruby/ruby-1.8.4/lib/rss/parser.rb:324:in`start\_else\_element’  
/usr/src/ruby/ruby-1.8.4/lib/rss/parser.rb:290:in `tag_start' /usr/src/ruby/ruby-1.8.4/lib/rexml/parsers/streamparser.rb:24:in`parse’  
/usr/src/ruby/ruby-1.8.4/lib/rexml/document.rb:173:in  
`parse_stream' /usr/src/ruby/ruby-1.8.4/lib/rss/rexmlparser.rb:21:in`\_parse’  
/usr/src/ruby/ruby-1.8.4/lib/rss/parser.rb:143:in `parse' /usr/src/ruby/ruby-1.8.4/lib/rss/parser.rb:70:in`parse’  
./rss/test\_syndication.rb:51:in `test_parser' /usr/src/ruby/ruby-1.8.4/test/rss/rss-assertions.rb:53:in`assert\_too\_much\_tag’  
/usr/src/ruby/ruby-1.8.4/test/rss/rss-assertions.rb:51:in  
`assert_too_much_tag' ./rss/test_syndication.rb:50:in`test\_parser’  
./rss/test\_syndication.rb:49:in `test\_parser’

They both seem to have something to do with web features. I’m not sure  
if it was because something else was running and didn’t let go of the  
previous Ruby libs in memory, and now has been refreshed, because I  
can’t get the tests to fail now.

Sean

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 27, 2005, 12:33am UTC](https://www.ruby-forum.com/t/inconsistent-testing-ruby-1-8-4-on-tiger/51090/4 "2005-12-27T00:33:17Z")

</div>

Christian N. wrote:

> I noticed that too (late), doing “make install” before testing makes it go  
> away, probably a path issue of the ruby interpreter.

Hmmm… So this may have something to do with the already installed  
copy of Ruby that is in my /usr/bin path? I’ve tried a few more builds.  
Let me list the results:

(just a note, the last build and these first few builds had the CFLAGS  
environment variable set to “-mcpu=G5 -mtune=G5 -O3”)  
First new run:  
$ sudo gcc\_select 3.3  
$ ./configure --prefix=/usr  
$ make  
$ make test-all  
results:

…/miniruby ./runruby.rb --extout=.ext – -C “./test” runner.rb  
–runner=console  
Loaded suite .  
Started  
  
Finished in 157.68762 seconds.

1. Failure:  
test\_cgi(TestWEBrickCGI)  
[./webrick/test\_cgi.rb:27:in `test_cgi' /usr/src/ruby/ruby-1.8.4/lib/net/http.rb:1049:in`request’  
/usr/src/ruby/ruby-1.8.4/lib/net/http.rb:2104:in `reading_body' /usr/src/ruby/ruby-1.8.4/lib/net/http.rb:1048:in`request’  
/usr/src/ruby/ruby-1.8.4/lib/net/http.rb:1033:in `request' /usr/src/ruby/ruby-1.8.4/lib/net/http.rb:545:in`start’  
/usr/src/ruby/ruby-1.8.4/lib/net/http.rb:1031:in `request' ./webrick/test_cgi.rb:27:in`test\_cgi’  
./webrick/utils.rb:26:in `start_server' ./webrick/utils.rb:34:in`start\_httpserver’  
./webrick/test\_cgi.rb:24:in `test\_cgi’]:  
\<"/webrick.cgi"\> expected but was  
\<"\n\n

Internal Server Error\n \n
# Internal Server Error
\n Premature end of script headers: /usr/src/ruby/ruby-1.8.4/test/webrick/webrick.cgi\n 
* * *
\n \n WEBrick/1.3.1 (Ruby/1.8.4/2005-12-24) OpenSSL/0.9.7b at\n 127.0.0.1:64887\n \n \n\n"\>.

1313 tests, 14436 assertions, 1 failures, 0 errors  
make: \*\*\* [test-all] Error 1

second run:  
$ ./miniruby ./runruby.rb --extout=.ext – -C “./test” runner.rb  
–runner=console  
results:

third run:  
$ sudo gcc\_select 4.0  
$ make clean  
$ ./configure --prefix=/usr  
$ make  
$ make test-all  
results:

fourth run:  
$ gdb make  
(gdb) run test-all  
results:  
Starting program: /usr/bin/make test-all  
Reading symbols for shared libraries . done  
…/miniruby ./runruby.rb --extout=.ext – -C “./test” runner.rb  
–runner=console  
Loaded suite .  
Started  
…/usr/src/ruby/ruby-1.8.4/lib/rinda/tuplespace.rb:173:  
[BUG] Segmentation fault  
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.3.0]

make: \*\*\* [test-all] Abort trap

Program exited with code 02.  
(gdb) bt  
No stack.

fifth run:  
(I see that I couldn’t get a backtrace so I’ll try to run it outside of  
make.)  
I’m cutting the commands and results short since the debugger caught a  
lot of SIGPIPE signals.  
here is one result i received, with a backtrace:

Program received signal EXC\_BAD\_ACCESS, Could not access memory.  
Reason: KERN\_INVALID\_ADDRESS at address: 0xc24bc195  
0x0000d608 in rb\_eval ()  
(gdb) bt  
#0 0x0000d608 in rb\_eval ()  
#1 0x0000d658 in rb\_eval ()  
warning: Previous frame identical to this frame (corrupt stack?)  
#2 0x0000bc1c in rb\_eval ()  
#3 0x0001104c in rb\_call0 ()  
#4 0x00011874 in rb\_call ()  
#5 0x0000d834 in rb\_eval ()  
#6 0x0000e710 in rb\_eval ()  
#7 0x0000c520 in rb\_eval ()  
#8 0x0001104c in rb\_call0 ()  
#9 0x00011874 in rb\_call ()  
#10 0x0000d834 in rb\_eval ()  
#11 0x0001104c in rb\_call0 ()  
#12 0x00011874 in rb\_call ()  
#13 0x0000d834 in rb\_eval ()  
#14 0x0000ce14 in rb\_eval ()  
#15 0x0001104c in rb\_call0 ()  
#16 0x00011874 in rb\_call ()  
#17 0x0000db30 in rb\_eval ()  
#18 0x0001104c in rb\_call0 ()  
#19 0x00011874 in rb\_call ()  
#20 0x00012440 in rb\_f\_send ()  
#21 0x00010a80 in rb\_call0 ()  
#22 0x00011874 in rb\_call ()  
#23 0x0000d834 in rb\_eval ()  
#24 0x0001f238 in block\_pass ()  
#25 0x0000c6cc in rb\_eval ()  
#26 0x0000ce14 in rb\_eval ()  
#27 0x0001104c in rb\_call0 ()  
#28 0x00011874 in rb\_call ()  
#29 0x0000d834 in rb\_eval ()  
#30 0x0001104c in rb\_call0 ()  
#31 0x00011874 in rb\_call ()  
#32 0x0000d834 in rb\_eval ()  
#33 0x0000e9dc in rb\_eval ()  
#34 0x0001104c in rb\_call0 ()  
#35 0x00011874 in rb\_call ()  
#36 0x0000db30 in rb\_eval ()  
#37 0x0000ce14 in rb\_eval ()  
#38 0x0000cfcc in rb\_eval ()  
#39 0x0001104c in rb\_call0 ()  
#40 0x00011874 in rb\_call ()  
#41 0x0000d834 in rb\_eval ()  
#42 0x0001f238 in block\_pass ()  
#43 0x0000c6cc in rb\_eval ()  
#44 0x000188a0 in rb\_yield\_0 ()  
#45 0x000322e4 in rb\_ary\_each ()  
#46 0x00010a80 in rb\_call0 ()  
#47 0x00011874 in rb\_call ()  
#48 0x0000d834 in rb\_eval ()  
#49 0x0000c894 in rb\_eval ()  
#50 0x0001104c in rb\_call0 ()  
#51 0x00011874 in rb\_call ()  
#52 0x0000d834 in rb\_eval ()  
#53 0x0001f238 in block\_pass ()  
#54 0x0000c6cc in rb\_eval ()  
#55 0x000188a0 in rb\_yield\_0 ()  
#56 0x000322e4 in rb\_ary\_each ()  
#57 0x00010a80 in rb\_call0 ()  
#58 0x00011874 in rb\_call ()  
#59 0x0000d834 in rb\_eval ()  
#60 0x0000c894 in rb\_eval ()  
#61 0x0001104c in rb\_call0 ()  
#62 0x00011874 in rb\_call ()  
#63 0x0000d834 in rb\_eval ()  
#64 0x0001f238 in block\_pass ()  
#65 0x0000c6cc in rb\_eval ()  
#66 0x000188a0 in rb\_yield\_0 ()  
#67 0x000322e4 in rb\_ary\_each ()  
#68 0x00010a80 in rb\_call0 ()  
#69 0x00011874 in rb\_call ()  
#70 0x0000d834 in rb\_eval ()  
#71 0x0000c894 in rb\_eval ()  
#72 0x0001104c in rb\_call0 ()  
#73 0x00011874 in rb\_call ()  
#74 0x0000d834 in rb\_eval ()  
#75 0x0000c894 in rb\_eval ()  
#76 0x0001104c in rb\_call0 ()  
#77 0x00011874 in rb\_call ()  
#78 0x0000d834 in rb\_eval ()  
#79 0x0000d2e0 in rb\_eval ()  
#80 0x0001104c in rb\_call0 ()  
#81 0x00011874 in rb\_call ()  
#82 0x0000db30 in rb\_eval ()  
#83 0x0000d2e0 in rb\_eval ()  
#84 0x0001104c in rb\_call0 ()  
#85 0x00011874 in rb\_call ()  
#86 0x0000d834 in rb\_eval ()  
#87 0x0000d2e0 in rb\_eval ()  
#88 0x0001104c in rb\_call0 ()  
#89 0x00011874 in rb\_call ()  
#90 0x0000d834 in rb\_eval ()  
#91 0x0000d658 in rb\_eval ()  
#92 0x0001104c in rb\_call0 ()  
#93 0x00011874 in rb\_call ()  
#94 0x0000d834 in rb\_eval ()  
#95 0x0001104c in rb\_call0 ()  
#96 0x00011874 in rb\_call ()  
#97 0x0000d834 in rb\_eval ()  
#98 0x0000d900 in rb\_eval ()  
#99 0x000225c8 in ruby\_exec\_internal ()  
#100 0x00022680 in ruby\_run ()  
#101 0x00002090 in main ()

Could these segmentation faults be due to the optimization flags I used  
when building Ruby? I’ll try without the flags and try installing and  
then testing to see how it runs.

sean
