Re: Libretto 70CT crash on cpu_switch

2009-01-11 Thread Fred Crowson
On Sun, Jan 11, 2009 at 12:44 PM, Stuart Henderson  wrote:
>
> please try a newer snap, if it still fails and nobody else picks it up
> from your list post, use sendbug to open a PR with this information (some
> developers don't read misc@)
>
> cheers,
> Stuart

Hi Misc,

Following Stuart's advice I've just upgraded my Libretto 70CT to the
latest snapshot but the kernel is still giving me the following error:

kernel: integer divide fault trap, code=0

Following is the dmesg and the output of ps and trace.

I'll submit a PR tomorrow if the combined genius of misc@ cannot
suggest an alternative approach to solving this issue.

Thanks

Fred

Script started on Sun Jan 11 23:59:45 2009
x41:fred ~> cu -l /dev/cuaU0 -s9600
can't open log file /var/log/aculog.
Connected
>> OpenBSD/i386 BOOT 3.02
boot>
booting hd0a:/bsd:
/-\|/6018908-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/+1058856
[52+334096-\|/-\|/-\|/-\|/-\|/+316668-\|/-\|/-\|/-\|/-\|/]=0x75ef38
entry point at 0x200120

[ using 651188 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2009 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.4-current (GENERIC) #1648: Fri Jan  9 10:26:32 MST 2009
t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium/MMX ("GenuineIntel" 586-class) 121 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX
cpu0: F00F bug workaround installed
real mem  = 16478208 (15MB)
avail mem = 5857280 (5MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/11/97
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 51%
apm0: AC on, battery charge high, charging
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xe4000/0xc000
cpu0 at mainbus0: (uniprocessor)
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
vga0 at isa0 port 0x3b0/48 iomem 0xa/131072
wsdisplay0 at vga0 mux 1: console (80x25, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
wdc0 at isa0 port 0x1f0/8 irq 14
wd0 at wdc0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 1551MB, 3177216 sectors
wd0(wdc0:0:0): using BIOS timings
sb0 at isa0 port 0x220/24 irq 5 drq 1: dsp v3.01
midi0 at sb0: 
audio0 at sb0
opl0 at sb0: model OPL3
midi1 at opl0: 
wss0 at isa0 port 0x530/8 irq 10 drq 0: CS4231 or AD1845 (vers 4)
audio1 at wss0
pcppi0 at isa0 port 0x61
midi2 at pcppi0: 
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pcic0 at isa0 port 0x3e0/2 iomem 0xd/65536
pcic0 controller 0:  has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
xe0 at pcmcia0 function 0 "Xircom, CreditCard 10Base-T, PS-CE2-10"
port 0x340/16, irq 9: address 00:80:c7:42:37:d9
pcmcia1 at pcic0 controller 0 socket 1
pcic0: irq 11, polling enabled
biomask e145 netmask e345 ttymask fbdf
softraid0 at root
kernel: integer divide fault trap, code=0
Stopped at  cpu_switchto+0x90:  popl%ebx
ddb> ps
   PID   PPID   PGRPUID  S   FLAGS  WAIT  COMMAND
 8  0  0  0  20x100200pfpurge
 7  0  0  0  20x100200pcic0,0,1
 6  0  0  0  20x100200pcic0,0,0
 5  0  0  0  20x100200apm0
 4  0  0  0  20x100200syswq
 3  0  0  0  20x100200idle0
 2  0  0  0  20x100200kmthread
*1  0  0  0  7   0swapper
 0 -1  0  0  3 0x80200  wdccmdswapper
ddb> trace
cpu_switchto(d07a1194,d0b22000,d0961f18,d036048d,d0b22000) at cpu_switchto+0x90

cfdata(d0b22000,d0b22000,0,d0961f20,100) at cfdata+0x41d0
config_attach(0,d0799020,0,0,d07a37f8) at config_attach+0xfd
config_rootfound(d06e4a57,0,d0961fa0,d034bd85,2) at config_rootfound+0x27
main(0,0,0,0,0) at main+0x4af
ddb> boot power off
Symbol not found
ddb> boot poweroff

Attempting to power down...
~
[EOT]
x41:fred ~> exit

Script done on Mon Jan 12 00:02:41 2009



Libretto 70CT crash on cpu_switch

2009-01-11 Thread Fred Crowson
Hi Misc,

I was upgrading my Libretto 70CT from 4.3 to 4.4 and following a
successful install my libretto crashed at cpu_switch the same
happened with 4.4-current from the 30 Dec 08.

The output from ps and trace are shown:

Stopped at  cpu_switchto+0x90:  popl%ebx
ddb> ps
   PID   PPID   PGRPUID  S   FLAGS  WAIT  COMMAND
 8  0  0  0  20x100200pfpurge
 7  0  0  0  20x100200pcic0,0,1
 6  0  0  0  20x100200pcic0,0,0
 5  0  0  0  20x100200apm0
 4  0  0  0  20x100200syswq
 3  0  0  0  20x100200idle0
 2  0  0  0  20x100200kmthread
*1  0  0  0  7   0swapper
 0 -1  0  0  3 0x80200  wdccmdswapper
ddb> trace
cpu_switchto(d0799154,d0b19000,d0958f18,d03603dd,d0b19000) at cpu_switchto+0x90

cfdata(d0b19000,d0b19000,0,d0958f20,100) at cfdata+0x4188
config_attach(0,d0791020,0,0,d079b7b8) at config_attach+0xfd
config_rootfound(d06ddef7,0,d0958fa0,d034bcd5,2) at config_rootfound+0x27
main(0,0,0,0,0) at main+0x4af
ddb> boot power  off

This is the first time since 2.9 that my libretto has crashed on boot
- can anyone point me in the
right direction to help me fix this issue...

Thanks

Fred

The complete dmesg are shown below:
Script started on Sun Jan 11 10:28:09 2009
x41:fred ~> cu -l /dev/cuaU0 -s9600
can't open log file /var/log/aculog.
Connected
boot>
booting hd0a:/bsd:
/-\|/5985916-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\+1058856
[52+332768|/-\|/-\|/-\|/-\|/-\+315493|/-\|/-\|/-\|/-\|/-]=0x756494
entry point at 0x200120

[ using 648688 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2008 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.4-current (GENERIC) #1643: Tue Dec 30 13:50:47 MST 2008
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium/MMX ("GenuineIntel" 586-class) 121 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX
cpu0: F00F bug workaround installed
real mem  = 16478208 (15MB)
avail mem = 5894144 (5MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/11/97
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 3%
apm0: AC on, battery charge low, charging
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xe4000/0xc000
cpu0 at mainbus0: (uniprocessor)
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
vga0 at isa0 port 0x3b0/48 iomem 0xa/131072
wsdisplay0 at vga0 mux 1: console (80x25, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
wdc0 at isa0 port 0x1f0/8 irq 14
wd0 at wdc0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 1551MB, 3177216 sectors
wd0(wdc0:0:0): using BIOS timings
sb0 at isa0 port 0x220/24 irq 5 drq 1: dsp v3.01
midi0 at sb0: 
audio0 at sb0
opl0 at sb0: model OPL3
midi1 at opl0: 
wss0 at isa0 port 0x530/8 irq 10 drq 0: CS4231 or AD1845 (vers 4)
audio1 at wss0
pcppi0 at isa0 port 0x61
midi2 at pcppi0: 
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pcic0 at isa0 port 0x3e0/2 iomem 0xd/65536
pcic0 controller 0:  has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
pcic0: irq 9, polling enabled
biomask e945 netmask e945 ttymask fbdf
softraid0 at root
kernel: integer divide fault trap, code=0
Stopped at  cpu_switchto+0x90:  popl%ebx
ddb> ps
   PID   PPID   PGRPUID  S   FLAGS  WAIT  COMMAND
 8  0  0  0  20x100200pfpurge
 7  0  0  0  20x100200pcic0,0,1
 6  0  0  0  20x100200pcic0,0,0
 5  0  0  0  20x100200apm0
 4  0  0  0  20x100200syswq
 3  0  0  0  20x100200idle0
 2  0  0  0  20x100200kmthread
*1  0  0  0  7   0swapper
 0 -1  0  0  3 0x80200