Jeff Dike wrote:

How about some more details?


here it goes...

the program I'm tring to debug is at http://nagyz.nefty.hu/uml/

I start the guest:
[EMAIL PROTECTED]:~/uml$ linux/vmlinux ubd0=root mem=256M con0=null,fd:2 con1=fd:0,fd:1 eth0=tuntap,,,192.168.1.1
Checking for /proc/mm...found
Checking for the skas3 patch in the host...found
Checking PROT_EXEC mmap in /tmp...OK
Linux version 2.6.11-rc3 ([EMAIL PROTECTED]) (gcc version 3.3.5 (Debian 1:3.3.5-8)) #1 Thu Feb 3 20:28:14 CET 2005
...
Debian GNU/Linux 3.1 devbox tty1
devbox login:


connect it up:

devbox:~# ifconfig lo 127.0.0.1 up
devbox:~# ifconfig eth0 192.168.1.2 up
* modprobe tun
FATAL: Module tun not found.
* ifconfig tap0 192.168.1.1 netmask 255.255.255.255 up
* bash -c echo 1 > /proc/sys/net/ipv4/ip_forward
* route add -host 192.168.1.2 dev tap0
* bash -c echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp
devbox:~# route add default gw 192.168.1.1
devbox:~#

ssh into it, export DISPLAY=someothermachine:0, then make, and gdb ./test:

devbox:~/t# make
gcc -O3 -W -Wall -ggdb `sdl-config --cflags` `sdl-config --libs` -o test test.c
devbox:~/t# export DISPLAY=212.40.116.85:0
devbox:~/t# gdb ./test
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/libthread_db.so.1".


(gdb) r
Starting program: /root/t/test

ssh stops.. having a look at the guest's main window... it blowed!
kernel BUG at mm/memory.c:891!
Kernel panic - not syncing: BUG!

EIP: 0073:[<4017e7ac>] CPU: 0 Not tainted ESP: 007b:bffff05c EFLAGS: 00000293
Not tainted
EAX: ffffffda EBX: 00000001 ECX: 0000018f EDX: ffffe000
ESI: bffff05c EDI: 00000000 EBP: bffff068 DS: 007b ES: 007b
Call Trace:
1724fa40: [<08086f2d>] notifier_call_chain+0x2d/0x50
1724fa60: [<080787b2>] panic+0x72/0x120
1724fa80: [<080a394b>] get_user_pages+0x15b/0x370
1724fab0: [<08081ad0>] access_process_vm+0x90/0x1b0
1724fb00: [<0805d29a>] sys_ptrace+0x11a/0x580
1724fb20: [<080601b8>] handle_page_fault+0x168/0x200
1724fb60: [<08060380>] segv+0x90/0x280
1724fba0: [<08062b3a>] execute_syscall_skas+0xaa/0xb0
1724fc10: [<0805f219>] record_syscall_start+0x59/0x70
1724fc30: [<08062b78>] handle_syscall+0x38/0x70
1724fc50: [<08061c1a>] handle_trap+0x2a/0x130
1724fc60: [<08072201>] save_registers+0x41/0x80
1724fc80: [<08062151>] userspace+0x231/0x240
1724fcd0: [<08063026>] force_flush_all_skas+0x36/0x40
1724fcf0: [<080627f3>] fork_handler+0xb3/0xd0


* route del -host 192.168.1.2 dev tap0
* bash -c echo 0 > /proc/sys/net/ipv4/conf/tap0/proxy_arp

[EMAIL PROTECTED]:~/uml$

that's all...

I could not get more info out of it.. but I'd like to know if there's anything more I could do to help.

Regards,

--
Zoltan NAGY,
Software Engineer



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
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