geting weird semi-random panic on kmalloc

NorthPole morfeas3000 at
Mon Jun 25 19:22:11 EDT 2012

@Mulyadi Santosa

several sources on the net suggested that interactive debuggers on the
kernel are a bad thing so I pushed it down on the todo kernel-skill stack
so I dont yet know how to use qemu's gdb with the kernel

Good news is I found the error (not me the folks at batman's irc channel
did)  the

memcpy(tvlv+sizeof(struct shortTvlv),value,length*sizeof(uint8_t)); needs
to be
memcpy((char *)tvlv+sizeof(struct shortTvlv),value,length*sizeof(uint8_t));

thanks for the assist everyone and if you have any good tutorials on qemu +
kernel +gdb i'll be thankfull

On Fri, Jun 22, 2012 at 7:49 PM, Mulyadi Santosa
<mulyadi.santosa at>wrote:

> Hi...
> On Fri, Jun 22, 2012 at 11:27 PM, NorthPole <morfeas3000 at> wrote:
> > Hi...
> >
> > The virtual machine is supposed to run on 128 mb ram and according to the
> > batman folks its more than enough
> >
> > How can I force a backtrace?
> When it hangs, AFAIK in gdb, press will get you back to
> gdb prompt ... then type "bt" and Enter.
> I assume you use gdb that is hooked into qemu's gdb stub, right?
> --
> regards,
> Mulyadi Santosa
> Freelance Linux trainer and consultant
> blog:
> training:
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Kernelnewbies mailing list