Bug #1017

Kernel panic on most recent snapshot

Added by mneumann almost 6 years ago. Updated almost 6 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Hi,

Anyone else getting a kernel panic using the most recent HEAD revision?

When booting from CD:

Mounting root from cd9660:cd0c

Fatal trap 12: page fault while in kernel mode
fault virtual address = 0x8
...
...
...
kernel: type 12 trap, code=0
Stopped at dsioctl+0x64 cmpl 0x8(%eax),%edx

When booting from HD:

Mounting root from ufs:/dev/ad0s1a
no disk named 'ad0s1a'
setrootbyname failed
ffs_mountroot: can't find rootvp
Root mount failed: 6

Manual root filesystem specification.

Could it be related to this patch?

http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ufs/ffs_balloc.c.diff?r1=1.18&r2=1.19&f=u

Regards,

Michael

History

#1 Updated by voroskoi almost 6 years ago

This seems to be #1016.

#2 Updated by dillon almost 6 years ago

:Hi,
:
:Anyone else getting a kernel panic using the most recent HEAD revision?
:
:When booting from CD:
:
: Mounting root from cd9660:cd0c
:
:
: Fatal trap 12: page fault while in kernel mode
: fault virtual address = 0x8
: ...
: ...
: ...
: kernel: type 12 trap, code=0
: Stopped at dsioctl+0x64 cmpl 0x8(%eax),%edx
:
:
:When booting from HD:
:
: Mounting root from ufs:/dev/ad0s1a
: no disk named 'ad0s1a'
: setrootbyname failed
: ffs_mountroot: can't find rootvp
: Root mount failed: 6
:
: Manual root filesystem specification.
:
:
:Could it be related to this patch?
:
:http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ufs/ffs_balloc.c.diff?r1=1.18&r2=1.19&f=u
:
:Regards,

It seems really unlikely that it would be related to that patch.

Is this on a new machine that never ran DragonFly before? What's
the context?

-Matt

#3 Updated by dillon almost 6 years ago

::
::Anyone else getting a kernel panic using the most recent HEAD revision?
::
::When booting from CD:
::
:: Mounting root from cd9660:cd0c
::
::
:: Fatal trap 12: page fault while in kernel mode
:: fault virtual address = 0x8
:: ...
:: ...
:: ...
:: kernel: type 12 trap, code=0
:: Stopped at dsioctl+0x64 cmpl 0x8(%eax),%edx
::
::
::When booting from HD:
::
:: Mounting root from ufs:/dev/ad0s1a
:: no disk named 'ad0s1a'
:: setrootbyname failed
:: ffs_mountroot: can't find rootvp
:: Root mount failed: 6
::
:: Manual root filesystem specification.

I am having problems reproducing the actual assembly being reported
as the failure point.

Are you using any special options when compiling or overriding the
compiler? (using GCC-3 instead of GCC-4)?

I am doing a full world rebuild, install, and then rebuilding the
kernel with the new world right now to see if that produces different
code.

-Matt
Matthew Dillon
<>

#4 Updated by dillon almost 6 years ago

Ok, this is definitely the same bug as issue 1016 and I've got it
reproduced and will be committing a fix today.

-Matt
Matthew Dillon
<>

#5 Updated by mneumann almost 6 years ago

Matthew Dillon wrote:
> Ok, this is definitely the same bug as issue 1016 and I've got it
> reproduced and will be committing a fix today.

I think you already found the bug. It is definitively related to CAM,
because for some reason, after I cvs-updated my sources and those CAM
changes came in (for some reasons they came in after I committed the usb
changes), the error started to appeared.

Thanks! This fix allows me to start with the real USB changes.

Regards,

Michael

#6 Updated by dillon almost 6 years ago

Same as 1016, fix committed.

Also available in: Atom PDF