Repeatable panic in current, cause Netscape

1999-09-29 Thread Vallo Kallaste

Hello

The latest -current system crashes while starting up Netscape, mine
version is 4.61, Linux one. It's fully repeatable in my case. I got
crash dump and here's my dmesg and gdb trace:

Copyright (c) 1992-1999 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
FreeBSD 4.0-CURRENT #0: Wed Sep 29 09:53:08 EEST 1999
[EMAIL PROTECTED]:/usr/src/sys/compile/Myhakas
Timecounter "i8254"  frequency 1193038 Hz
CPU: Pentium III (501.08-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x672  Stepping = 2
  
Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,XMM
real memory  = 134217728 (131072K bytes)
avail memory = 126898176 (123924K bytes)
Programming 24 pins in IOAPIC #0
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  0, version: 0x00040011, at 0xfee0
 cpu1 (AP):  apic id:  1, version: 0x00040011, at 0xfee0
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec0
Preloaded elf kernel "kernel" at 0xc02fe000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc02fe09c.
VESA: v2.0, 32768k memory, flags:0x1, mode table:0xc00c6954 (c0006954)
VESA: Matrox Graphics Inc.
Pentium Pro MTRR support enabled
devclass_alloc_unit: pcib0 already exists, using next available unit number
npx0: math processor on motherboard
npx0: INT 16 interface
pcib0: Intel 82443GX host to PCI bridge on motherboard
pci0: PCI bus on pcib0
pcib2: Intel 82443GX (440 GX) PCI-PCI (AGP) bridge at device 1.0 on pci0
pci1: PCI bus on pcib2
vga-pci0: Matrox model 0525 graphics accelerator irq 2 at device 0.0 on pci1
isab0: Intel 82371AB PCI to ISA bridge at device 7.0 on pci0
isa0: ISA bus on isab0
chip1: Intel PIIX4 IDE controller at device 7.1 on pci0
chip2: UHCI USB controller at device 7.2 on pci0
Timecounter "PIIX"  frequency 3579545 Hz
chip3: Intel 82371AB Power management controller at device 7.3 on pci0
ahc0: Adaptec aic7896/97 Ultra2 SCSI adapter irq 16 at device 11.0 on pci0
ahc0: aic7896/97 Wide Channel A, SCSI Id=7, 16/255 SCBs
ahc1: Adaptec aic7896/97 Ultra2 SCSI adapter irq 16 at device 11.1 on pci0
ahc1: aic7896/97 Wide Channel B, SCSI Id=7, 16/255 SCBs
fxp0: Intel EtherExpress Pro 10/100B Ethernet irq 19 at device 13.0 on pci0
fxp0: Ethernet address 00:e0:81:10:50:32
ncr0: ncr 53c875 fast20 wide scsi irq 16 at device 14.0 on pci0
fxp1: Intel EtherExpress Pro 10/100B Ethernet irq 17 at device 15.0 on pci0
fxp1: Ethernet address 00:90:27:54:57:26
devclass_alloc_unit: pci1 already exists, using next available unit number
pcib1: Intel 82443GX host to AGP bridge on motherboard
pci2: PCI bus on pcib1
atkbdc0: keyboard controller (i8042) at port 0x60-0x6f on isa0
atkbd0: AT Keyboard irq 1 on atkbdc0
psm0: PS/2 Mouse irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: Generic ISA VGA at port 0x3b0-0x3df iomem 0xa-0xb on isa0
sc0: System console on isa0
sc0: VGA 8 virtual consoles, flags=0x200
fdc0: NEC 72065B or clone at port 0x3f0-0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1440-KB 3.5" drive on fdc0 drive 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
unknown0: Disabled Device on isa0
unknown1: Disabled Device on isa0
unknown2: Disabled Device on isa0
pcm0: GusPnP at port 0x220-0x22f,0x320-0x327,0x32c-0x32f irq 11 drq 5,7 on isa0
unknown3: Disabled Device on isa0
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via pin 2
BRIDGE 981214, have 3 interfaces
-- index 1 fxp0 type 6 phy 0 addrl 6 addr 00.e0.81.10.50.32
-- index 2 fxp1 type 6 phy 0 addrl 6 addr 00.90.27.54.57.26
Waiting 5 seconds for SCSI devices to settle
SMP: AP CPU #1 Launched!
changing root device to da0s1a
da0 at ahc0 bus 0 target 5 lun 0
da0: QUANTUM VIKING II 4.5WSE 5520 Fixed Direct Access SCSI-2 device 
da0: 40.000MB/s transfers (20.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da0: 4350MB (8910423 512 byte sectors: 255H 63S/T 554C)
da1 at ahc0 bus 0 target 6 lun 0
da1: QUANTUM VIKING II 4.5WSE 5520 Fixed Direct Access SCSI-2 device 
da1: 40.000MB/s transfers (20.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da1: 4350MB (8910423 512 byte sectors: 255H 63S/T 554C)
cd0 at ncr0 bus 0 target 0 lun 0
cd0: TOSHIBA CD-ROM XM-6201TA 1030 Removable CD-ROM SCSI-2 device 
cd0: 10.000MB/s transfers (10.000MHz, offset 16)
cd0: Attempt to query device size failed: NOT READY, Medium not present
WARNING: / was not properly dismounted
called sysctl for bridge name bridge arg2 0 val 0-0
called sysctl for bridge name bridge arg2 0 val 0-0
called sysctl for bridge name bridge arg2 0 val 0-1
called sysctl for bridge name bridge arg2 0 val 1-1
called sysctl for bridge name bridge arg2 0 val 1-1
fxp0: promiscuous mode enabled
 now  fxp0 flags 0x8943 promisc 0
fxp1: promiscuous mode enabled
 now  fxp1 flags 0x8943 promisc 0


Script started on Wed Sep 29 11:07:23 1999

Re: Repeatable panic in current, cause Netscape

1999-09-29 Thread Vallo Kallaste

On Wed, Sep 29, 1999 at 09:51:49AM -0700, Alfred Perlstein [EMAIL PROTECTED] 
wrote:

 excellent, using kgbd, can you please type "up" until you hit
 frame 5 and print the value of the ndp and some of the other
 variables?  A listing of the code at that location would also
 be great. ('list')

Sorry I don't know anything about debugging, so I did some
trial-and-error game and used print on something which seemed emit
useful information. Useful from my point of view ;-) Hope it's really
useful. Otherwise please give exact guidelines or I can try limit memory
and get 32MB dump or so suitable for downloading.

Script started on Wed Sep 29 20:42:14 1999
myhakas# gdb -k /sys/compile/Myhakas/kernel.debug vmcore.1
GNU gdb 4.18
Copyright 1998 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-unknown-freebsd"...
SMP 2 cpus
IdlePTD 3211264
initial pcb at 298e00
panicstr: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
mp_lock = 0102; cpuid = 1; lapic.id = 0100
fault virtual address   = 0x17
fault code  = supervisor read, page not present
instruction pointer = 0x8:0xc017ad2c
stack pointer   = 0x10:0xc8e5fca0
frame pointer   = 0x10:0xc8e5fcf0
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 666 (netscape)
interrupt mask  = none - SMP: XXX
trap number = 12
panic: page fault
mp_lock = 0102; cpuid = 1; lapic.id = 0100
boot() called on cpu#1

syncing disks... 19 5 1 done

dumping to dev #da/0x20001, offset 0
dump 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 
108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 
82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 
53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 
24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 
---
#0  boot (howto=256) at ../../kern/kern_shutdown.c:281
281 dumppcb.pcb_cr3 = rcr3();
(kgdb) where
#0  boot (howto=256) at ../../kern/kern_shutdown.c:281
#1  0xc0155349 in panic (fmt=0xc026de2f "page fault")
at ../../kern/kern_shutdown.c:531
#2  0xc0236400 in trap_fatal (frame=0xc8e5fc60, eva=23)
at ../../i386/i386/trap.c:907
#3  0xc0236071 in trap_pfault (frame=0xc8e5fc60, usermode=0, eva=23)
at ../../i386/i386/trap.c:800
#4  0xc0235ce7 in trap (frame={tf_fs = 1048600, tf_es = 16, tf_ds = 16, 
  tf_edi = -924451276, tf_esi = -924451236, tf_ebp = -924451600, 
  tf_isp = -924451700, tf_ebx = -1061078179, tf_edx = -924572480, 
  tf_ecx = 7, tf_eax = 7, tf_trapno = 12, tf_err = 0, 
  tf_eip = -1072190164, tf_cs = 8, tf_eflags = 66198, 
  tf_esp = -1061078179, tf_ss = 0}) at ../../i386/i386/trap.c:426
#5  0xc017ad2c in namei (ndp=0xc8e5fe34) at ../../kern/vfs_lookup.c:91
#6  0xc0c12eb5 in ?? ()
#7  0xc0c11c55 in ?? ()
#8  0xc0236642 in syscall (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, 
  tf_edi = 677678720, tf_esi = 677674201, tf_ebp = -1077946400, 
  tf_isp = -924450860, tf_ebx = 677674201, tf_edx = -1077946464, 
  tf_ecx = -1077946464, tf_eax = 106, tf_trapno = 12, tf_err = 2, 
  tf_eip = 677666503, tf_cs = 31, tf_eflags = 582, tf_esp = -1077946504, 
  tf_ss = 47}) at ../../i386/i386/trap.c:1056
#9  0xc02241b1 in Xint0x80_syscall ()
#10 0x28644564 in ?? ()
(kgdb) up 5
#5  0xc017ad2c in namei (ndp=0xc8e5fe34) at ../../kern/vfs_lookup.c:91
91  ndp-ni_cnd.cn_cred = ndp-ni_cnd.cn_proc-p_ucred;
(kgdb) list
86  struct uio auio;
87  int error, linklen;
88  struct componentname *cnp = ndp-ni_cnd;
89  struct proc *p = cnp-cn_proc;
90  
91  ndp-ni_cnd.cn_cred = ndp-ni_cnd.cn_proc-p_ucred;
92  KASSERT(cnp-cn_cred  cnp-cn_proc, ("namei: bad cred/proc"));
93  KASSERT((cnp-cn_nameiop  (~OPMASK)) == 0,
94  ("namei: nameiop contaminated with flags"));
95  KASSERT((cnp-cn_flags  OPMASK) == 0,
(kgdb) print ndp
$1 = (struct nameidata *) 0xc8e5fe34
(kgdb) print *ndp
$2 = {ni_dirp = 0xc0d2b000 "/compat/linux/etc/ld.so.cache", 
  ni_segflg = UIO_SYSSPACE, ni_startdir = 0xc046d730, ni_rootdir = 0xc0462000, 
  ni_topdir = 0x871c000, ni_vp = 0xc8e5fe8c, ni_dvp = 0xc0233db8, 
  ni_pathlen = 3370408552, 
  ni_next = 0x871c000 
"KeyBackSpace\nosfDelete:KeyDelete\nosfInsert:KeyInsert\nosfAddMode:Shift 
KeyF8\nosfHelp:KeyF1\nosfMenu:ShiftKeyF10\nosfMenuBar:KeyF10", ni_loopcnt = 0, 
ni_cnd = {cn_nameiop = 64, 

Re: Repeatable panic in current, cause Netscape

1999-09-29 Thread Marcel Moolenaar

Vallo Kallaste wrote:

 The latest -current system crashes while starting up Netscape, mine
 version is 4.61, Linux one. It's fully repeatable in my case. I got
 crash dump and here's my dmesg and gdb trace:

Make sure that the linux module is as uptodate as the kernel is. As a
rule of thumb: rebuild the modules you use when you rebuild the kernel.

If that doesn't help in this case, continue debugging :-)

-- 
Marcel Moolenaarmailto:[EMAIL PROTECTED]
SCC Internetworking  Databases   http://www.scc.nl/
The FreeBSD projectmailto:[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Repeatable panic in current, cause Netscape

1999-09-29 Thread Vallo Kallaste

On Wed, Sep 29, 1999 at 07:42:50PM +0200, Marcel Moolenaar [EMAIL PROTECTED] wrote:

  The latest -current system crashes while starting up Netscape, mine
  version is 4.61, Linux one. It's fully repeatable in my case. I got
  crash dump and here's my dmesg and gdb trace:
 
 Make sure that the linux module is as uptodate as the kernel is. As a
 rule of thumb: rebuild the modules you use when you rebuild the kernel.
 
 If that doesn't help in this case, continue debugging :-)

Thankyou for tip, discovered that my modules are from Sept 17 and I know
I've compiled the kernel several times in between 17 to date. Quick look
at /usr/sup/src-all/checkouts.cvs:. gives me the 26'th. I must have done
cvsup for src-all by accident.
Sorry for false alert, my Netscape works now as usual.

Thanks
-- 

Vallo Kallaste
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message