Bug #2528

In VirtualBox one of possible network interfaces fails to attach

Added by kworr about 1 year ago. Updated about 1 year ago.

Status:ClosedStart date:03/21/2013
Priority:LowDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

After updating to current HEAD and recompiling machine fails to boot trapping at device detection:

lnc0: <AMD PCnet-PCI> port 0xd000-0xd01f mem 0xf0080000-0xf00fffff,0xf0000000-0xf0000fff irq 19 at device 3.0 on pci0
lnc0: 16 receive buffers, 4 transmit buffers

Fatal trap 12: page fault while in kernel mode
cpuid = 0; lapic->id = 00000000
fault virtual address = 0x74
fault code = supervisor write data, page not present
instruction pointer = 0x8:0xffffffff80767f8f
stack pointer = 0x10:0xffffffff824e5570
frame pointer = 0x10:0xffffffff824e5570
code segment = base 0x0. limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 0
current thread = pri 12
kernel: type 12 trap, code=2

CPU0 stopping CPOUs: 0x0000000e
stopped
Stopped at lance_stop+0x19: movl $0,0x74(%rdx)

x.png (11.3 KB) kworr, 03/21/2013 06:43 AM

y.png (16.3 KB) kworr, 03/21/2013 08:39 AM

x.png (16.4 KB) kworr, 03/21/2013 08:39 AM

History

#1 Updated by kworr about 1 year ago

Everything was working nice on 3.2.2.

#2 Updated by kworr about 1 year ago

db> where
lance_stop() at lance_stop+0x19 0xffffffff80767f8f
lance_config() at lance_config+0x248 0xffffffff80768237
am79900_config() at am79900_config+0x25 0xffffffff80766368
le_pci_attach() at le_pci_attach+0x461 0xffffffff80767c68
device_doattach() at device_doattach+0x3t 0xffffffff805221f0

#3 Updated by kworr about 1 year ago

# uname -a
DragonFly 3.3-DEVELOPMENT DragonFly v3.3.0.1375.gf00ea-DEVELOPMENT #0: Mon Mar 18 16:57:56 EET 2013 arcade@:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64

#4 Updated by sepherosa about 1 year ago

On Thu, Mar 21, 2013 at 11:39 PM, Volodymyr Kostyrko via Redmine
<> wrote:
>
> Issue #2528 has been updated by kworr.
>
> File y.png added
> File x.png added
>
> db> where
> lance_stop() at lance_stop+0x19 0xffffffff80767f8f
> lance_config() at lance_config+0x248 0xffffffff80768237
> am79900_config() at am79900_config+0x25 0xffffffff80766368
> le_pci_attach() at le_pci_attach+0x461 0xffffffff80767c68
> device_doattach() at device_doattach+0x3t 0xffffffff805221f0

Look like the if_attach is not called before the lance_stop()

Please test the following patch:
http://leaf.dragonflybsd.org/~sephe/lance.diff

Best Regards,
sephe

> ----------------------------------------
> Bug #2528: In VirtualBox one of possible network interfaces fails to attach
> http://bugs.dragonflybsd.org/issues/2528
>
> Author: kworr
> Status: New
> Priority: Low
> Assignee:
> Category:
> Target version:
>
>
> After updating to current HEAD and recompiling machine fails to boot trapping at device detection:
>
> lnc0: <AMD PCnet-PCI> port 0xd000-0xd01f mem 0xf0080000-0xf00fffff,0xf0000000-0xf0000fff irq 19 at device 3.0 on pci0
> lnc0: 16 receive buffers, 4 transmit buffers
>
> Fatal trap 12: page fault while in kernel mode
> cpuid = 0; lapic->id = 00000000
> fault virtual address = 0x74
> fault code = supervisor write data, page not present
> instruction pointer = 0x8:0xffffffff80767f8f
> stack pointer = 0x10:0xffffffff824e5570
> frame pointer = 0x10:0xffffffff824e5570
> code segment = base 0x0. limit 0xfffff, type 0x1b
> = DPL 0, pres 1, long 1, def32 0, gran 1
> processor eflags = interrupt enabled, resume, IOPL = 0
> current process = 0
> current thread = pri 12
> kernel: type 12 trap, code=2
>
> CPU0 stopping CPOUs: 0x0000000e
> stopped
> Stopped at lance_stop+0x19: movl $0,0x74(%rdx)
>
>
> --
> You have received this notification because you have either subscribed to it, or are involved in it.
> To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account

--
Tomorrow Will Never Die

#5 Updated by kworr about 1 year ago

Yes, everything works now. Thanks.

#6 Updated by swildner about 1 year ago

  • Status changed from New to Closed

Also available in: Atom PDF