Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: KASSERT(ci->ci_ilevel < IPL_HIGH) failed when running a linux binary



Arnaud Lacombe <lacombar%gmail.com@localhost> wrote:
> > The exact trace is
> >
> > netbsd_elf_signature() ->
> > Âstrlen() ->
> > Â Âtrap(): trap number 6 ->
> > Â Â Âuvm_fault_internal() ->
> > Â Â Â Âpmap_map_ptes() ...
> >
> I missed "printf()" right after netbsd_elf_signature(), sorry.
> 

One of the following printf()s are trying to print a non-terminated
string (thus strlen(), inside, traps):

http://nxr.netbsd.org/xref/src/sys/kern/exec_elf.c?r=1.20#882

Fail is unusual due to kprintf_mtx, which is at IPL_HIGH, and protects
kprintf().  Trap at such level is not expected and triggers asserts a
bit earlier.

-- 
Mindaugas


Home | Main Index | Thread Index | Old Index