Re: geting weird semi-random panic on kmalloc

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



Hi... :)

On Tue, Jun 26, 2012 at 6:22 AM, NorthPole <morfeas3000@xxxxxxxxx> wrote:
> @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

it is described in qemu wiki website actually. I found it here:
http://www.elinux.org/Virtual_Development_Board

jump into 'Debug U-Boot" section. Of course, adjust the parameters so
that it boots your kernel name and you invoke the qemu arch of your
choice. The rest is the same.

Other thing that I recall is sometimes Qemu had trouble when debugging
interrupts....or in general things that works periodically.

> 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));

great!! :) casting mistakes, right?

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

See above :) google might reveal more IMHO

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Networking]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

Add to Google Powered by Linux