Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2007 23:43:39 -0700
From:      snowcrash+freebsd <schneecrash+freebsd@gmail.com>
To:        "Stanislav Sedov" <stas@freebsd.org>
Cc:        freebsd-ports@freebsd.org, Yuri Pankov <yuri@darklight.org.ru>
Subject:   Re: coredump on portupgrade of installed ruby-1.8.6, 1 to ruby-1.8.6_1, 1
Message-ID:  <70f41ba20707112343n6626aec8vc5c354de9c16f72b@mail.gmail.com>
In-Reply-To: <20070712100341.9601d252.stas@FreeBSD.org>
References:  <70f41ba20707111230y66532185o7fd8a335d7c72694@mail.gmail.com> <20070711214025.GD95578@darklight.org.ru> <70f41ba20707111535q32cfde90p21f218e128d9bc4c@mail.gmail.com> <20070712100341.9601d252.stas@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
hi,

> Builds fine with your cflags on i386/current.
>
> Could you, please, send me your `dmesg` output as well as the coredump
> along with the executable,  that produces it?

@:

% make
------------------------------------------------------------
...
/usr/local/libexec/ccache/cc -O2 -pipe -funroll-loops -s
-frename-registers -fomit-frame-pointer -march=pentium-mmx   -fPIC
-DRUBY_EXPORT  -rdynamic -L.   main.o  libruby18-static.a -lcrypt -lm
-rpath=/usr/local/lib -pthread  -o miniruby
./lib/fileutils.rb:1236: [BUG] Segmentation fault
ruby 1.8.6 (2007-03-13) [i386-freebsd6]

Abort trap (core dumped)
*** Error code 134

Stop in /usr/ports/lang/ruby18/work/ruby-1.8.6.
*** Error code 1

Stop in /usr/ports/lang/ruby18.
------------------------------------------------------------


% dmesg
------------------------------------------------------------
Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE-p5 #2: Mon Jun  4 12:15:53 PDT 2007
    root@router.mydomain.com:/usr/obj/usr/src/sys/CUSTOM_ROUTER
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by National Semi (266.64-MHz 586-class CPU)
  Origin = "Geode by NSC"  Id = 0x540  Stepping = 0
  Features=0x808131<FPU,TSC,MSR,CX8,CMOV,MMX>
real memory  = 268435456 (256 MB)
avail memory = 257470464 (245 MB)
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
sis0: <NatSemi DP8381[56] 10/100BaseTX> port 0xe100-0xe1ff mem
0xa0000000-0xa0000fff irq 10 at device 6.0 on pci0
sis0: Silicon Revision: DP83816A
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: xx:xx:xx:xx:xx:xx
sis1: <NatSemi DP8381[56] 10/100BaseTX> port 0xe200-0xe2ff mem
0xa0001000-0xa0001fff irq 10 at device 7.0 on pci0
sis1: Silicon Revision: DP83816A
miibus1: <MII bus> on sis1
ukphy1: <Generic IEEE 802.3u media interface> on miibus1
ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis1: Ethernet address: xx:xx:xx:xx:xx:xx
sis2: <NatSemi DP8381[56] 10/100BaseTX> port 0xe300-0xe3ff mem
0xa0002000-0xa0002fff irq 10 at device 8.0 on pci0
sis2: Silicon Revision: DP83816A
miibus2: <MII bus> on sis2
ukphy2: <Generic IEEE 802.3u media interface> on miibus2
ukphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis2: Ethernet address: xx:xx:xx:xx:xx:xx
Geode GPIO@ = 6100
Geode Soekris net4801 comBIOS ver. 1.30 20070326 Copyright (C) 2000-2007
isab0: <PCI-ISA bridge> port 0x6100-0x613f,0x6200-0x623f at device 18.0 on pci0
isa0: <ISA bus> on isab0
pci0: <bridge> at device 18.1 (no driver attached)
atapci0: <National Geode SC1100 ATA33 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 18.2 on
pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
Geode CBA@ 0x6000
Geode rev: 06 03
Timecounter "Geode" frequency 27000000 Hz quality 1000
pci0: <bridge> at device 18.5 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xa0003000-0xa0003fff irq
11 at device 19.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: (0x0e11) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc8000-0xd0fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: unable to get the current command byte value.
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
Timecounters tick every 10.000 msec
ad0: 38154MB <HTS541040G9AT00 MB2OA60A> at ata0-master UDMA33
Trying to mount root from ufs:/dev/ad0s1a
sis1: discard oversize frame (ether type 8864 flags 3 len 1510 > max 1506)
sis1: discard oversize frame (ether type 8864 flags 3 len 1514 > max 1506)
sis1: discard oversize frame (ether type 8864 flags 3 len 1514 > max 1506)
sis1: discard oversize frame (ether type 8864 flags 3 len 1514 > max 1506)
sis1: discard oversize frame (ether type 8864 flags 3 len 1514 > max 1506)
sis1: discard oversize frame (ether type 8864 flags 3 len 1514 > max 1506)
sis1: discard oversize frame (ether type 8864 flags 3 len 1514 > max 1506)
sis1: discard oversize frame (ether type 8864 flags 3 len 1514 > max 1506)
sis1: discard oversize frame (ether type 8864 flags 3 len 1514 > max 1506)
sis1: discard oversize frame (ether type 8864 flags 3 len 1514 > max 1506)
sis1: discard oversize frame (ether type 8864 flags 3 len 1514 > max 1506)
sis1: discard oversize frame (ether type 8864 flags 3 len 1514 > max 1506)
sis1: discard oversize frame (ether type 8864 flags 3 len 1514 > max 1506)
Waiting (max 60 seconds) for system process `vnlru' to stop...done
Waiting (max 60 seconds) for system process `bufdaemon' to stop...done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining...1 1 1 1 0 0 0 done
All buffers synced.
Uptime: 17d19h29m27s
Rebooting...
Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE-p5 #2: Mon Jun  4 12:15:53 PDT 2007
    root@router.mydomain.com:/usr/obj/usr/src/sys/CUSTOM_ROUTER
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by National Semi (266.65-MHz 586-class CPU)
  Origin = "Geode by NSC"  Id = 0x540  Stepping = 0
  Features=0x808131<FPU,TSC,MSR,CX8,CMOV,MMX>
real memory  = 268435456 (256 MB)
avail memory = 257470464 (245 MB)
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
sis0: <NatSemi DP8381[56] 10/100BaseTX> port 0xe100-0xe1ff mem
0xa0000000-0xa0000fff irq 10 at device 6.0 on pci0
sis0: Silicon Revision: DP83816A
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: xx:xx:xx:xx:xx:xx
sis1: <NatSemi DP8381[56] 10/100BaseTX> port 0xe200-0xe2ff mem
0xa0001000-0xa0001fff irq 10 at device 7.0 on pci0
sis1: Silicon Revision: DP83816A
miibus1: <MII bus> on sis1
ukphy1: <Generic IEEE 802.3u media interface> on miibus1
ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis1: Ethernet address: xx:xx:xx:xx:xx:xx
sis2: <NatSemi DP8381[56] 10/100BaseTX> port 0xe300-0xe3ff mem
0xa0002000-0xa0002fff irq 10 at device 8.0 on pci0
sis2: Silicon Revision: DP83816A
miibus2: <MII bus> on sis2
ukphy2: <Generic IEEE 802.3u media interface> on miibus2
ukphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis2: Ethernet address: xx:xx:xx:xx:xx:xx
Geode GPIO@ = 6100
Geode Soekris net4801 comBIOS ver. 1.30 20070326 Copyright (C) 2000-2007
isab0: <PCI-ISA bridge> port 0x6100-0x613f,0x6200-0x623f at device 18.0 on pci0
isa0: <ISA bus> on isab0
pci0: <bridge> at device 18.1 (no driver attached)
atapci0: <National Geode SC1100 ATA33 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 18.2 on
pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
Geode CBA@ 0x6000
Geode rev: 06 03
Timecounter "Geode" frequency 27000000 Hz quality 1000
pci0: <bridge> at device 18.5 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xa0003000-0xa0003fff irq
11 at device 19.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: (0x0e11) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc8000-0xd0fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: unable to get the current command byte value.
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
Timecounters tick every 10.000 msec
ad0: 38154MB <HTS541040G9AT00 MB2OA60A> at ata0-master UDMA33
Trying to mount root from ufs:/dev/ad0s1a
ticket: 3 != [1]4
pid 7535 (miniruby), uid 0: exited on signal 6 (core dumped)
pid 30966 (miniruby), uid 0: exited on signal 6 (core dumped)
pid 35121 (miniruby), uid 0: exited on signal 6 (core dumped)
pid 35243 (miniruby), uid 0: exited on signal 6 (core dumped)
pid 41953 (miniruby), uid 0: exited on signal 6 (core dumped)
pid 17852 (miniruby), uid 0: exited on signal 6 (core dumped)
------------------------------------------------------------

and,

% gdb ./work/ruby-1.8.6/miniruby ./work/ruby-1.8.6/miniruby.core
------------------------------------------------------------
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 `miniruby'.
Program terminated with signal 6, Aborted.
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/libpthread.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2824fecb in kill () from /lib/libc.so.6
[New LWP 100085]
(gdb) bt
#0  0x2824fecb in kill () from /lib/libc.so.6
#1  0x28175236 in raise () from /lib/libpthread.so.2
#2  0x2824eb78 in abort () from /lib/libc.so.6
#3  0x080f43f5 in rb_bug ()
#4  0x313a6272 in ?? ()
#5  0x3a363332 in ?? ()
#6  0x00000020 in ?? ()
#7  0x00000000 in ?? ()
#8  0x00000000 in ?? ()
#9  0x00000000 in ?? ()
#10 0x00000000 in ?? ()
#11 0x00000000 in ?? ()
#12 0x00000000 in ?? ()
#13 0x00000000 in ?? ()
#14 0x00000000 in ?? ()
#15 0x00000000 in ?? ()
---Type <return> to continue, or q <return> to quit--- q
Quit
(gdb) q
------------------------------------------------------------

% cd /usr/ports/lang/ruby18/work/ruby-1.8.6
% ls -al miniruby
	-rwxr-xr-x  1 root  wheel  827048 Jul 11 23:18 miniruby*

attached as miniruby.bz2, sent 2 u offlist ...

thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?70f41ba20707112343n6626aec8vc5c354de9c16f72b>