What happen when you run it in the default console you are working?

r ubd0=../linux_fs.ext3 ubd1=../swap_file mem=128M  umid=vm001 eth0=tuntap,tap0


One thing is that UML uses uml_net to setup the tuntap interfaces. It is a
setuid program. Now gdb does not get the setuid priviledges so the tuntap
step is not performed. So you need to attach to the virtual machines once
that step is passed.

Hope it helps.

David


2010/8/28 Paweł Rusak <pawel.ru...@wp.pl>

>  Hello all UML users,
>
> I've using UML kernel to debug kernel module that I'm developing. I'm new
> to kernel programming but I found this tutorial (
> http://www.ime.usp.br/~baroni/docs/uml-en.html<http://www.ime.usp.br/%7Ebaroni/docs/uml-en.html>)
> and I tried to follow it up to setup my debug environment. Before that I was
> using manual setup as described in hacking tutorial on UML home page.
>
> Everytime I try to use to run gdb with .gdbinit (
> http://www.ime.usp.br/~baroni/docs/.gdbinit<http://www.ime.usp.br/%7Ebaroni/docs/.gdbinit>)
> with following commands in it:
>
>  file ./linux
> handle SIGSEGV pass nostop noprint
> handle SIGUSR1 pass nostop noprint
> r ubd0=../linux_fs.ext3 ubd1=../swap_file mem=128M con0=xterm con=xterm 
> ssl=xterm  umid=vm001 eth0=tuntap,tap0
>
>
> I always get following results. Xterm process finish as zombie process (*xterm
> <defunct>*). But when I run:
>
> ./linux ubd0=../linux_fs.ext3 ubd1=../swap_file mem=128M con0=xterm con=xterm 
> ssl=xterm  umid=vm001 eth0=tuntap,tap0
>
>
> and then attach to its pid gdb everything works perfect. I don't understand
> where is the issue. Could anyone help?
>
> I use *Ubuntu 10.04* with *2.6.32-24-generic* and kernel that I'm using to
> debug my module is *linux-2.6.32.19*.
>
>
> regards,
> --
> Pawel R.
> <pawel.ru...@wp.pl> <pawel.ru...@wp.pl>
>
>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> User-mode-linux-user mailing list
> User-mode-linux-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
>
>
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to