Date: Fri, 9 Mar 2012 15:45:42 -0800 From: "Gregory W. MacPherson" <greg@netpublishing.com> To: ruby@freebsd.org Subject: Seg fault in portupgrade Message-ID: <20120309234542.GA93276@b2.netpublishing.com>
next in thread | raw e-mail | index | archive | help
Hi, I routinely generate this error when I run portupgrade -arRu: /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:64: [BUG] Segmentation fault ruby 1.8.7 (2012-02-08 patchlevel 358) [amd64-freebsd6] It appears that pkginfo coughs on the regex for pkgname: 64:if /^(.+)-([^-]+)$/ !~ pkgname 65: raise ArgumentError, "Not in due form: <name>-<version>" 66:end This message appears after the 'clean' step for each port. Rerunning the command results in the next port being rebuilt followed by the same message. I don't code Ruby but I am a developer so would be perfectly comfortable doing something like: print "pkgname is " pkgname prior to the match. The portupgrade package can be either from ports-mgmt/portupgrade or ports-mgmt/portupgrade-devel - doesn't matter, seems Ruby coughs on either one. System Details follow - please reply if I can provide any additional information to help diagnose the issue. -- Greg ---------------------------------- CUT HERE ----------------------------- b2# uname -a FreeBSD b2.netpublishing.com 6.4-RELEASE-p11 FreeBSD 6.4-RELEASE-p11 #0: Wed Mar 7 19:33:54 PST 2012 root@b2.netpublishing.com:/usr/obj/usr/src/sys/B2 amd64 b2# dmesg Copyright (c) 1992-2008 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.4-RELEASE-p11 #0: Wed Mar 7 19:33:54 PST 2012 root@b2.netpublishing.com:/usr/obj/usr/src/sys/B2 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Opteron(tm) Processor 242 (1603.65-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0xf5a Stepping = 10 Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow!+,3DNow!> real memory = 4160094208 (3967 MB) avail memory = 4018536448 (3832 MB) ACPI APIC Table: <PTLTD APIC > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 <Version 1.1> irqs 0-23 on motherboard ioapic1 <Version 1.1> irqs 24-27 on motherboard ioapic2 <Version 1.1> irqs 28-31 on motherboard acpi0: <PTLTD XSDT> on motherboard acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) unknown: I/O range not supported unknown: I/O range not supported Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 cpu0: <ACPI CPU> on acpi0 cpu1: <ACPI CPU> on acpi0 acpi_button0: <Power Button> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 pcib1: <ACPI PCI-PCI bridge> at device 6.0 on pci0 pci1: <ACPI PCI bus> on pcib1 ohci0: <OHCI (generic) USB controller> mem 0xfb100000-0xfb100fff irq 19 at device 0.0 on pci1 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: <OHCI (generic) USB controller> on ohci0 usb0: USB revision 1.0 uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1: <OHCI (generic) USB controller> mem 0xfb101000-0xfb101fff irq 19 at device 0.1 on pci1 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: <OHCI (generic) USB controller> on ohci1 usb1: USB revision 1.0 uhub1: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 3 ports with 3 removable, self powered pci1: <display, VGA> at device 6.0 (no driver attached) isab0: <PCI-ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <AMD 8111 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1020-0x102f at device 7.1 on pci0 ata0: <ATA channel 0> on atapci0 ata1: <ATA channel 1> on atapci0 pci0: <bridge> at device 7.3 (no driver attached) pcib2: <ACPI PCI-PCI bridge> at device 10.0 on pci0 pci2: <ACPI PCI bus> on pcib2 bge0: <Broadcom BCM5703 A2, ASIC rev. 0x1002> mem 0xfd000000-0xfd00ffff irq 27 at device 3.0 on pci2 miibus0: <MII bus> on bge0 brgphy0: <BCM5703 10/100/1000baseTX PHY> on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto bge0: Ethernet address: 00:50:45:5d:63:7a bge1: <Broadcom BCM5703 A2, ASIC rev. 0x1002> mem 0xfd010000-0xfd01ffff irq 27 at device 4.0 on pci2 miibus1: <MII bus> on bge1 brgphy1: <BCM5703 10/100/1000baseTX PHY> on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto bge1: Ethernet address: 00:50:45:5d:63:7b pcib3: <ACPI PCI-PCI bridge> at device 11.0 on pci0 pci3: <ACPI PCI bus> on pcib3 twe0: <3ware Storage Controller. Driver version 1.50.01.002> port 0x3000-0x300f mem 0xfd100000-0xfd10000f,0xfd800000-0xfdffffff irq 29 at device 1.0 on pci3 twe0: [GIANT-LOCKED] twe0: 2 ports, Firmware FE8S 1.05.00.068, BIOS BE7X 1.08.00.048 speaker0: <PC speaker> port 0x61 on acpi0 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse Explorer, device ID 4 fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: does not respond device_attach: fdc0 attach returned 6 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: does not respond device_attach: fdc0 attach returned 6 orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc97ff,0xc9800-0xcafff,0xcb000-0xcbfff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 umass0: Kingston DT 101 G2, rev 2.00/1.00, addr 2 umass1: SanDisk Corporation Cruzer Mini, rev 2.00/0.20, addr 3 Timecounters tick every 1.000 msec ipfw2 (+ipv6) initialized, divert enabled, rule-based forwarding enabled, default to deny, logging disabled acd0: DMA limited to UDMA33, controller found non-ATA66 cable acd0: DVDR <DVDR PX-750A/1.01> at ata0-master UDMA33 twed0: <Unit 0, TwinStor, Normal> on twe0 twed0: 157065MB (321670912 sectors) acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 cd0 at ata0 bus 0 target 0 lun 0 cd0: <PLEXTOR DVDR PX-750A 1.01> Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: cd present [1 x 2048 byte records] SMP: AP CPU #1 Launched! da1 at umass-sim1 bus 1 target 0 lun 0 da1: <SanDisk Cruzer Mini 0.4> Removable Direct Access SCSI-2 device da1: 1.000MB/s transfers da1: 977MB (2001888 512 byte sectors: 64H 32S/T 977C) da0 at umass-sim0 bus 0 target 0 lun 0 da0: <Kingston DT 101 G2 PMAP> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 7636MB (15638528 512 byte sectors: 255H 63S/T 973C) acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00 acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00 Trying to mount root from ufs:/dev/twed0s1a bge0: link state changed to UP bge0: promiscuous mode enabled pid 58077 (ruby18), uid 0: exited on signal 6 pid 75744 (ruby18), uid 0: exited on signal 6 pid 91771 (ruby18), uid 0: exited on signal 6 b2# /usr/local/bin/ruby -v ruby 1.8.7 (2012-02-08 patchlevel 358) [amd64-freebsd6] ---------------------------------- CUT HERE ----------------------------- -- Gregory W. MacPherson Global Network Exploitation Specialist, CISSP, Security+, ITIL http://www.netpublishing.com/greg/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120309234542.GA93276>