ruby-1.8.6 and GCC-4.2 issues

From: Chris Dionissopoulos <dionch_at_freemail.gr>
Date: Sun, 20 May 2007 14:33:01 +0300
Hello ppl,

It seems that ruby-1.8.6,1 builded with GCC4.2 have the same OpenSSL
issues (illegal instruction). How to reproduce:

mail# cd /usr/ports/ports-mgmt/portupgrade
mail# make install clean

.... builds ruby-1.8.6,1 as dependency....

mail# cd /usr/ports
mail# portupgrade -f -o ports-mgmt/portupgrade-devel portupgrade
[Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... ** Stale lock file was found. Removed.
Illegal instruction (core dumped)
mail# ll /usr/ports/ruby18.core
-rw-------  1 root  wheel  143671296 May 20 14:19 /usr/ports/ruby18.core
mail# gdb -c ruby18.core  /usr/local/bin/ruby18
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `ruby18'.
Program terminated with signal 4, Illegal instruction.
Reading symbols from /usr/local/lib/libruby18.so.18...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libruby18.so.18
Reading symbols from /lib/libcrypt.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libm.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libthr.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libthr.so.2
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/ruby/1.8/i386-freebsd7/dl.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd7/dl.so
Reading symbols from /usr/local/lib/ruby/1.8/i386-freebsd7/dbm.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/ruby/1.8/i386-freebsd7/dbm.so
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x281dd662 in free () from /lib/libc.so.7
[New Thread 0x28301100 (LWP 100203)]
(gdb) t
[Current thread is 1 (Thread 0x28301100 (LWP 100203))]
(gdb) bt
#0  0x281dd662 in free () from /lib/libc.so.7
#1  0x281dec39 in malloc () from /lib/libc.so.7
#2  0x28240657 in arc4random_addrandom () from /lib/libc.so.7
#3  0x2823bbfa in __srget () from /lib/libc.so.7
#4  0x2823bcc6 in __srget () from /lib/libc.so.7
#5  0x2823bcc6 in __srget () from /lib/libc.so.7
#6  0x2823bcc6 in __srget () from /lib/libc.so.7
#7  0x2823bcc6 in __srget () from /lib/libc.so.7
#8  0x2823bcc6 in __srget () from /lib/libc.so.7
#9  0x2823bcc6 in __srget () from /lib/libc.so.7
#10 0x2823bcc6 in __srget () from /lib/libc.so.7
#11 0x2823bcc6 in __srget () from /lib/libc.so.7
#12 0x2823bcc6 in __srget () from /lib/libc.so.7
#13 0x2823bcc6 in __srget () from /lib/libc.so.7
#14 0x2823bcc6 in __srget () from /lib/libc.so.7
#15 0x2823bcc6 in __srget () from /lib/libc.so.7
#16 0x2823bcc6 in __srget () from /lib/libc.so.7
#17 0x2823bcc6 in __srget () from /lib/libc.so.7
#18 0x2823bcc6 in __srget () from /lib/libc.so.7
#19 0x2823bcc6 in __srget () from /lib/libc.so.7
#20 0x2823bcc6 in __srget () from /lib/libc.so.7
#21 0x2823bcc6 in __srget () from /lib/libc.so.7
#22 0x2823bcc6 in __srget () from /lib/libc.so.7
#23 0x2823bcc6 in __srget () from /lib/libc.so.7
#24 0x2823bcc6 in __srget () from /lib/libc.so.7
#25 0x2823bcc6 in __srget () from /lib/libc.so.7
#26 0x2823bcc6 in __srget () from /lib/libc.so.7
#27 0x2823bcc6 in __srget () from /lib/libc.so.7
#28 0x2823bcc6 in __srget () from /lib/libc.so.7
#29 0x2823bcc6 in __srget () from /lib/libc.so.7
#30 0x2823bcc6 in __srget () from /lib/libc.so.7
#31 0x2823bcc6 in __srget () from /lib/libc.so.7
#32 0x2823bcc6 in __srget () from /lib/libc.so.7
#33 0x2823bcc6 in __srget () from /lib/libc.so.7
#34 0x2823bcc6 in __srget () from /lib/libc.so.7
#35 0x2823bcc6 in __srget () from /lib/libc.so.7
#36 0x2823bcc6 in __srget () from /lib/libc.so.7
#37 0x2823bcc6 in __srget () from /lib/libc.so.7
#38 0x2823bcc6 in __srget () from /lib/libc.so.7
#39 0x2823bcc6 in __srget () from /lib/libc.so.7
#40 0x2823bcc6 in __srget () from /lib/libc.so.7
#41 0x2823bcc6 in __srget () from /lib/libc.so.7
#42 0x2823bcc6 in __srget () from /lib/libc.so.7
#43 0x2823bcc6 in __srget () from /lib/libc.so.7
#44 0x2823bcc6 in __srget () from /lib/libc.so.7
#45 0x2823bcc6 in __srget () from /lib/libc.so.7
#46 0x2823bcc6 in __srget () from /lib/libc.so.7
#47 0x2823bcc6 in __srget () from /lib/libc.so.7
#48 0x2823bcc6 in __srget () from /lib/libc.so.7
#49 0x2823bcc6 in __srget () from /lib/libc.so.7
#50 0x2823bcc6 in __srget () from /lib/libc.so.7
#51 0x2823bcc6 in __srget () from /lib/libc.so.7
#52 0x2823bcc6 in __srget () from /lib/libc.so.7
#53 0x2823bcc6 in __srget () from /lib/libc.so.7
#54 0x2823bcc6 in __srget () from /lib/libc.so.7
#55 0x2823bcc6 in __srget () from /lib/libc.so.7
#56 0x2823bcc6 in __srget () from /lib/libc.so.7
#57 0x2823bcc6 in __srget () from /lib/libc.so.7
#58 0x2823bcc6 in __srget () from /lib/libc.so.7
#59 0x2823bcc6 in __srget () from /lib/libc.so.7
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) q
mail# 


any help is welcome,

Chris.

ps. buildworld/kernel from sources after GCC-4.2 import and with Alexander's openssl patch applied.
Received on Sun May 20 2007 - 09:34:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:10 UTC