Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2004 14:32:08 +0200
From:      "Willem Jan Withagen" <wjw@withagen.nl>
To:        "Willem Jan Withagen" <wjw@withagen.nl>, <freebsd-amd64@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Not able to make coredumps... (Was: Re: Panic at line 602 in file ffs_vnops.c)
Message-ID:  <006201c4418b$217bfd50$471b3dd4@dual>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_005F_01C4419B.E4D77BC0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

This time with Dmesg....

> > > ----- Original Message ----- 
> > > From: "Willem Jan Withagen" <wjw@withagen.nl>
> > >
> > > > In an attempt to port some compiler tools, I'm testing its memory
> allocator.
> > > > And that does not really work, it is a shure way to crash my dual
opteron.
> > > >
> > > > panic: ffs_write: uio -> uio_resid < 0
> > > > at line 602 in file /home2/src/sys/ufs/ffs/ffs_vnop.c
> > > >
> > > > If I then type 'cont' I'd exepct to get coredump.
> > > > But it just gives up on 708 buffers, prints the uptime
> > > > and sits quitely in a corner until I hard-reset it.
> > > > No other keys will get it back....
> > > >
> > > > Before it crashes I first get the inocent LOR on ....swap...:1313
> > > > The program usually get an invalid pointer allocated with calloc.
> > > > And as far as I can tell, then crashes on free-ing with this pointer.
> > > >
> > > > Any takers on this??
> > > > Looks to me there are 2 problems:
> > > >     I'm able to upset allocator with this program.
> > > >         (If I write the same program, in shorthand, it stays alive)
> > > >     The system does not want to dump/reboot
> > >
> > > To follow up on myself:
> > >
> > > 'where' after the crash gives: (copied via paper)
> > > ffs_write()   at ... +0x64e
> > > vn_rdwr()     at ... +0xf1
> > > vn_rdwr_inchuncks()    at ... +0x77
> > > elf64_coredump()       at ... +0x1222
> > > coredump()    at ... +0x5da
> > > sigexit()     at ... +0x71
> > > postsig()     at ... +0x30e
> > > ast()         at ... +0x297
> > > Xfas_syscall()         at ... +0xdd
> > >
> > > ------ syscall(0, FreeBSD ELF64, nosys)
> > >     rip = 0x20067b8ec
> > >     rsp = 0x7fffffffe678
> > >     rbp = 0x2006de6c0
> > >
> > > So it looks like the systems want to write a dump, but does not really get
> > > to write it....
> >
> > And even more follow up:
> > I tried to just get a coredump by going crtl-alt-esc and go 'panic' in ddb.
> > But ended up with a freeze and:
> >
> > pmap_invalidate_range: interrupts disabled
> > at line 664 inf file /home2/src/sys/amd64/amd64/pmap.ccpuid=1
> >
> > Where I think the last line should read:
> >     pmap.c cpuid=1
> >
> > I think I need this fixed before I can start looking at the other problem??
>
> To continue this saga, I can reproduce this on i386 as well....
> Completely the same effect.
> Dmesg included. The amd64 version was of sunday late.
> The i386 version is still somewhat older.
>
> > >
> > > What more can I do??
>
> --WjW
>

------=_NextPart_000_005F_01C4419B.E4D77BC0
Content-Type: application/octet-stream;
	name="dmesg.opteron"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="dmesg.opteron"

Copyright (c) 1992-2004 The FreeBSD Project.=0A=
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994=0A=
	The Regents of the University of California. All rights reserved.=0A=
FreeBSD 5.2-CURRENT #1: Sun May 23 22:03:51 CEST 2004=0A=
    wjw@opteron.digiware.nl:/usr/obj/home2/src/sys/OPTERON.amd64=0A=
WARNING: WITNESS option enabled, expect reduced performance.=0A=
Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff806ab000.=0A=
Timecounter "i8254" frequency 1193182 Hz quality 0=0A=
CPU: AMD Opteron(tm) Processor 242 (1603.65-MHz K8-class CPU)=0A=
  Origin =3D "AuthenticAMD"  Id =3D 0xf51  Stepping =3D 1=0A=
  =
Features=3D0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE=
,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>=0A=
  AMD Features=3D0xe0500800<SYSCALL,NX,MMX+,LM,3DNow!+,3DNow!>=0A=
real memory  =3D 2146304000 (2046 MB)=0A=
avail memory =3D 2062696448 (1967 MB)=0A=
ACPI APIC Table: <VIAK8  AWRDACPI>=0A=
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs=0A=
 cpu0 (BSP): APIC ID:  0=0A=
 cpu1 (AP): APIC ID:  1=0A=
ioapic0: Changing APIC ID to 2=0A=
ioapic0 <Version 0.3> irqs 0-23 on motherboard=0A=
random: <entropy source, Software, Yarrow>=0A=
acpi0: <VIAK8 AWRDACPI> on motherboard=0A=
acpi0: [GIANT-LOCKED]=0A=
acpi0: Power Button (fixed)=0A=
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000=0A=
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0=0A=
cpu0: <ACPI CPU> on acpi0=0A=
cpu1: <ACPI CPU> on acpi0=0A=
acpi_tz0: <Thermal Zone> on acpi0=0A=
acpi_button0: <Power Button> on acpi0=0A=
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0=0A=
pci0: <ACPI PCI bus> on pcib0=0A=
pcib0: possible interrupts:  21=0A=
pcib0: slot 16 INTA routed to irq 21 via \\_SB_.PCI0.ALKB=0A=
pcib0: possible interrupts:  21=0A=
pcib0: slot 16 INTA routed to irq 21 via \\_SB_.PCI0.ALKB=0A=
pcib0: possible interrupts:  21=0A=
pcib0: slot 16 INTB routed to irq 21 via \\_SB_.PCI0.ALKB=0A=
pcib0: possible interrupts:  21=0A=
pcib0: slot 16 INTC routed to irq 21 via \\_SB_.PCI0.ALKB=0A=
pcib0: possible interrupts:  22=0A=
pcib0: slot 17 INTC routed to irq 22 via \\_SB_.PCI0.ALKC=0A=
pcib1: <PCI-PCI bridge> at device 1.0 on pci0=0A=
pci1: <PCI bus> on pcib1=0A=
pcib1: slot 0 INTA is routed to irq 16=0A=
pci1: <display, VGA> at device 0.0 (no driver attached)=0A=
pci1: <display> at device 0.1 (no driver attached)=0A=
de0: <Digital 21041 Ethernet> port 0xd000-0xd07f mem =
0xfb050000-0xfb05007f irq 18 at device 7.0 on pci0=0A=
de0: [GIANT-LOCKED]=0A=
de0: COMPEX unknown 21041 [10Mb/s] pass 1.1=0A=
de0: Ethernet address: 00:80:48:ea:6c:8b=0A=
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> port =
0xd400-0xd43f mem 0xfb020000-0xfb03ffff,0xfb000000-0xfb01ffff irq 19 at =
device 8.0 on pci0=0A=
em0: [GIANT-LOCKED]=0A=
em0: Ethernet address: 00:0e:0c:35:2b:f8=0A=
em0:  Speed:N/A  Duplex:N/A=0A=
bge0: <Broadcom BCM5705 Gigabit Ethernet, ASIC rev. 0x3003> mem =
0xfb040000-0xfb04ffff irq 16 at device 11.0 on pci0=0A=
miibus0: <MII bus> on bge0=0A=
brgphy0: <BCM5705 10/100/1000baseTX PHY> on miibus0=0A=
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, =
1000baseTX-FDX, auto=0A=
bge0: Ethernet address: 00:0c:76:ac:93:4a=0A=
bge0: [GIANT-LOCKED]=0A=
atapci0: <VIA 8237 UDMA133 controller> port =
0xd800-0xd80f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 15.0 on pci0=0A=
ata0: at 0x1f0 irq 14 on atapci0=0A=
ata1: at 0x170 irq 15 on atapci0=0A=
uhci0: <VIA 83C572 USB controller> port 0xdc00-0xdc1f irq 21 at device =
16.0 on pci0=0A=
uhci0: [GIANT-LOCKED]=0A=
usb0: <VIA 83C572 USB controller> on uhci0=0A=
usb0: USB revision 1.0=0A=
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1=0A=
uhub0: 2 ports with 2 removable, self powered=0A=
uhub0: port error, restarting port 1=0A=
uhub0: port error, giving up port 1=0A=
uhub0: port error, restarting port 2=0A=
uhub0: port error, giving up port 2=0A=
uhci1: <VIA 83C572 USB controller> port 0xe000-0xe01f irq 21 at device =
16.1 on pci0=0A=
uhci1: [GIANT-LOCKED]=0A=
usb1: <VIA 83C572 USB controller> on uhci1=0A=
usb1: USB revision 1.0=0A=
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1=0A=
uhub1: 2 ports with 2 removable, self powered=0A=
uhub1: port error, restarting port 1=0A=
uhub1: port error, giving up port 1=0A=
uhub1: port error, restarting port 2=0A=
uhub1: port error, giving up port 2=0A=
uhci2: <VIA 83C572 USB controller> port 0xe400-0xe41f irq 21 at device =
16.2 on pci0=0A=
uhci2: [GIANT-LOCKED]=0A=
usb2: <VIA 83C572 USB controller> on uhci2=0A=
usb2: USB revision 1.0=0A=
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1=0A=
uhub2: 2 ports with 2 removable, self powered=0A=
uhub2: port error, restarting port 1=0A=
uhub2: port error, giving up port 1=0A=
uhub2: port error, restarting port 2=0A=
uhub2: port error, giving up port 2=0A=
pci0: <serial bus, USB> at device 16.4 (no driver attached)=0A=
isab0: <PCI-ISA bridge> at device 17.0 on pci0=0A=
isa0: <ISA bus> on isab0=0A=
pci0: <multimedia, audio> at device 17.5 (no driver attached)=0A=
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port =
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0=0A=
fdc0: FIFO enabled, 8 bytes threshold=0A=
fd0: <1440-KB 3.5" drive> on fdc0 drive 0=0A=
sio0 port 0x3f8-0x3ff irq 4 on acpi0=0A=
sio0: type 16550A=0A=
sio1 port 0x2f8-0x2ff irq 3 on acpi0=0A=
sio1: type 16550A=0A=
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0=0A=
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode=0A=
ppc0: FIFO with 16/16/9 bytes threshold=0A=
ppbus0: <Parallel port bus> on ppc0=0A=
lpt0: <Printer> on ppbus0=0A=
lpt0: Interrupt-driven port=0A=
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0=0A=
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0=0A=
kbd0 at atkbd0=0A=
atkbd0: [GIANT-LOCKED]=0A=
psm0: <PS/2 Mouse> irq 12 on atkbdc0=0A=
psm0: [GIANT-LOCKED]=0A=
psm0: model IntelliMouse Explorer, device ID 4=0A=
orm0: <Option ROMs> at iomem 0xd0000-0xd0fff,0xc0000-0xccfff on isa0=0A=
sc0: <System console> at flags 0x100 on isa0=0A=
sc0: VGA <16 virtual consoles, flags=3D0x300>=0A=
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0=0A=
Timecounters tick every 0.976 msec=0A=
de0: enabling 10baseT port=0A=
ad0: 238475MB <WDC WD2500JB-00EVA0> [484521/16/63] at ata0-master UDMA100=0A=
acd0: DVDR <_NEC DVD_RW ND-2500A> at ata1-master PIO4=0A=
SMP: AP CPU #1 Launched!=0A=
Mounting root from ufs:/dev/ad0s1d=0A=
WARNING: /amd64 was not properly dismounted=0A=
WARNING: /amd64/home2 was not properly dismounted=0A=
WARNING: /amd64/home3 was not properly dismounted=0A=
WARNING: /amd64/tmp was not properly dismounted=0A=
WARNING: /amd64/usr was not properly dismounted=0A=
WARNING: /amd64/var was not properly dismounted=0A=
WARNING: /tmp was not properly dismounted=0A=
/tmp: mount pending error: blocks 8 files 2=0A=
/i386/tmp: superblock summary recomputed=0A=
WARNING: /var was not properly dismounted=0A=
/var: mount pending error: blocks 192 files 17=0A=
/i386/var: superblock summary recomputed=0A=
WARNING: /usr was not properly dismounted=0A=
WARNING: /home1 was not properly dismounted=0A=
em0: Link is up 100 Mbps Full Duplex=0A=

------=_NextPart_000_005F_01C4419B.E4D77BC0--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006201c4418b$217bfd50$471b3dd4>