* [uml-devel] Kernel panic on UML linux
@ 2004-03-19 23:47 Mark Hurenkamp
2004-03-20 1:08 ` Jeff Dike
0 siblings, 1 reply; 12+ messages in thread
From: Mark Hurenkamp @ 2004-03-19 23:47 UTC (permalink / raw)
To: user-mode-linux-devel
Hi,
I'm trying to get a Suse 9.0 minimum install running with a firewall,
had it all configured and working, but when rebooting after enabling
the firewall, it crashes with a kernel panic.
Anyone can shed some light onto this?
The host is a gentoo system, with 2.6.0 kernel, the uml system
is a Suse 9.0. Uml kernel is 2.4.24r1-1um gentoo build.
If you need more info, just let me know.
Regards,
Mark.
P.S.
The reason for the missing IP's is because I have the tuntap
devices on the host connected to bridge devices.
root@nine# /usr/src/uml/linux-2.4.24/linux ubd0=root.cow,root.img
ubd1=swap.cow,swap.img mem=128M con0=fd:0,fd:1 con1=tty:/dev/tty9 con=null
eth0=tuntap,tap_rt0,, eth1=tuntap,tap_rt1,, eth2=tuntap,tap_rt2,,
Checking for the skas3 patch in the host...found
Checking for /proc/mm...found
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Linux version 2.4.24r1-1um (root@nine) (gcc version 3.3.2 20031218 (Gentoo
Linux 3.3.2-r5, propolice-3.3-7)) #2 Fri Mar 19 23:31:24 CET 2004
On node 0 totalpages: 32768
zone(0): 32768 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: ubd0=root.cow,root.img ubd1=swap.cow,swap.img mem=128M
con0=fd:0,fd:1 con1=tty:/dev/tty9 con=null eth0=tuntap,tap_rt0,,
eth1=tuntap,tap_rt1,, eth2=tuntap,tap_rt2,, root=/dev/ubd0
Calibrating delay loop... 1317.27 BogoMIPS
Memory: 125180k available
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
Checking for host processor cmov support...Yes
Checking for host processor xmm support...No
Checking that ptrace can change system call numbers...OK
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
udf: registering filesystem
pty: 256 Unix98 ptys configured
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
PPP generic driver version 2.4.2
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Initializing software serial port version 1
mconsole (version 2) initialized on /root/.uml/aJcqSi/mconsole
Partition check:
ubda: unknown partition table
ubdb: unknown partition table
UML Audio Relay (host dsp = /dev/sound/dsp, host mixer = /dev/sound/mixer)
Initializing stdio console driver
Netdevice 0 : TUN/TAP backend -
Netdevice 1 : TUN/TAP backend -
Netdevice 2 : TUN/TAP backend -
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
UDF-fs: No partition found (1)
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ubd(98,0)) ...
for (ubd(98,0))
reiserfs: replayed 7 transactions in 1 seconds
ubd(98,0):Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
INIT: version 2.82 booting
System Boot Control: Running /etc/init.d/boot
Mounting /proc filesystem
done
Mounting /dev/pts
done
modprobe: modprobe: Can't locate module block-major-9
showconsole: Warning: the ioctl TIOCGDEV is not known by the kernel
Activating swap-devices in /etc/fstab...
Adding Swap: 262136k swap-space (priority 42)
done
showconsole: Warning: the ioctl TIOCGDEV is not known by the kernel
Checking file systems...
fsck 1.34 (25-Jul-2003)
Reiserfs super block in block 16 on 0x6200 of format 3.6 with standard journal
Blocks (total/free): 131072/42898 by 4096 bytes
Filesystem is NOT clean
Filesystem seems mounted read-only. Skipping journal replay.
Checking internal tree..finished
done
Mounting local file systems...
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
none on /dev/shm type tmpfs (rw)
done
Activating remaining swap-devices in /etc/fstab...
done
Mounting shared memory FS on /dev/shm
done
Loading required kernel modules
done
Setting up the CMOS clockhwclock is unable to get I/O port access: the
iopl(3) call failed.
hwclock is unable to get I/O port access: the iopl(3) call failed.
failed
Setting up timezone data
done
Setting scheduling timeslices
unused
Setting up hostname 'suse9-uml'
done
Setting up loopback interface
done
Disabling IP forwarding
done
Creating /var/log/boot.msg
done
showconsole: Warning: the ioctl TIOCGDEV is not known by the kernel
System Boot Control: The system has been
setup
Skipped features:
boot.sched
System Boot Control: Running /etc/init.d/boot.local
done
INIT: Entering runlevel: 3
Master Resource Control: previous runlevel: N, switching to runlevel:
3
Initializing random number generator
done
Starting Firewall Initialization (phase 1 of 3) modprobe: modprobe: Can't
locate module net-pf-10
modprobe: modprobe: Can't locate module net-pf-10
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack version 2.1 (977 buckets, 7816 max) - 292 bytes per conntrack
done
Setting up network interfaces:
lo
done
eth0 dev_ip_addr - device not assigned an IP address
IP/Netmask: 213.84.241.98 / 255.255.255.255
done
eth1 dev_ip_addr - device not assigned an IP address
IP/Netmask: 192.168.1.201 / 255.255.255.0
done
eth2 dev_ip_addr - device not assigned an IP address
IP/Netmask: 192.168.2.201 / 255.255.255.0
done
Starting syslog servicesmodprobe: modprobe: Can't locate module char-major-4
syslogd: /dev/tty10: No such device
done
Starting RPC portmap daemon
done
Starting Firewall Initialization (phase 2 of 3)
Warning: interface eth1, is not (yet?) active.Kernel panic: Kernel mode fault
at addr 0x489f4000, ip 0x400e9df8
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [uml-devel] Kernel panic on UML linux 2004-03-19 23:47 [uml-devel] Kernel panic on UML linux Mark Hurenkamp @ 2004-03-20 1:08 ` Jeff Dike 2004-03-20 23:34 ` Mark Hurenkamp 0 siblings, 1 reply; 12+ messages in thread From: Jeff Dike @ 2004-03-20 1:08 UTC (permalink / raw) To: Mark Hurenkamp; +Cc: user-mode-linux-devel mark.hurenkamp@xs4all.nl said: > Uml kernel is 2.4.24r1-1um gentoo build. Can you make it happen with a stock UML. I've heard things about gentoo adding bugs to UML. > If you need more info, just let me know. If you can make it happen with a stock UML, get a stack trace from the panic. Jeff ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uml-devel] Kernel panic on UML linux 2004-03-20 1:08 ` Jeff Dike @ 2004-03-20 23:34 ` Mark Hurenkamp 2004-03-22 21:15 ` Jeff Dike 0 siblings, 1 reply; 12+ messages in thread From: Mark Hurenkamp @ 2004-03-20 23:34 UTC (permalink / raw) To: Jeff Dike; +Cc: user-mode-linux-devel > Can you make it happen with a stock UML. I've heard things about gentoo > adding bugs to UML. Yep, also occurs with stock 2.4.24 kernel with patch (from the sf site) applied. I also tried to run it from a Suse 9.0 host, same problem. > If you can make it happen with a stock UML, get a stack trace from the > panic. Forgive me for being ignorant, but how can I create such a stack trace? The UML doesn't dump core, and I've not been able to run it from gdb or ddd properly (yet :-). Regards, Mark. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uml-devel] Kernel panic on UML linux 2004-03-20 23:34 ` Mark Hurenkamp @ 2004-03-22 21:15 ` Jeff Dike 2004-03-27 3:48 ` Mark Hurenkamp 0 siblings, 1 reply; 12+ messages in thread From: Jeff Dike @ 2004-03-22 21:15 UTC (permalink / raw) To: Mark Hurenkamp; +Cc: user-mode-linux-devel mark.hurenkamp@xs4all.nl said: > Forgive me for being ignorant, but how can I create such a stack > trace? The UML doesn't dump core, and I've not been able to run it > from gdb or ddd properly (yet :-). You've read the docs on debugging UML? Jeff ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uml-devel] Kernel panic on UML linux 2004-03-22 21:15 ` Jeff Dike @ 2004-03-27 3:48 ` Mark Hurenkamp 2004-03-27 10:55 ` Henrik Nordstrom 0 siblings, 1 reply; 12+ messages in thread From: Mark Hurenkamp @ 2004-03-27 3:48 UTC (permalink / raw) To: Jeff Dike; +Cc: user-mode-linux-devel On Monday 22 March 2004 22:15, you wrote: > You've read the docs on debugging UML? Aiai, I feel so emberassed now... I went and read some more on the UML site, and found some hints that helped me get the UML running within GDB However, for some reason GDB reports 'Program exited normally', eventhough there is a kernel panic. Could that be due to disabling the SIGSEGV handler? (according to the debugging manual I need to disable this handler...) I am not able to backtrace now, gdb reports 'no stack'... I also tried a different client setup, strangely enough, it also crashes after enabling the firewall (this case, mandrake 8.2 system with Bastille firewall), but the addresses mentioned are different (Kernel panic: Kernel mode fault at addr 0x48b16000, ip 0x400fc344). Without the firewall enabled, both systems work flawlessly. The Suse system even works, when it is booted without the firewall, and the firewall is then enabled via Yast after boot. However a reboot will result again in this problem. Here's the output of my debug session: root@nine # gdb ./linux GNU gdb 6.0 Copyright 2003 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 "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) handle SIGSEGV pass nostop noprint Signal Stop Print Pass to program Description SIGSEGV No No Yes Segmentation fault (gdb) handle SIGUSR1 pass nostop noprint Signal Stop Print Pass to program Description SIGUSR1 No No Yes User defined signal 1 (gdb) r ubd0=root.cow,root.img ubd1=swap.cow,swap.img mem=128M con0=fd:0,fd:1 con1=tty:/dev/tty9 con=null eth0=tuntap,tap_rt0,, eth1=tuntap,tap_rt1,, eth2=tuntap,tap_rt2,, Starting program: /usr/src/uml/linux-2.4.24/linux ubd0=root.cow,root.img ubd1=swap.cow,swap.img mem=128M con0=fd:0,fd:1 con1=tty:/dev/tty9 con=null eth0=tuntap,tap_rt0,, eth1=tuntap,tap_rt1,, eth2=tuntap,tap_rt2,, Detaching after fork from child process 13820. Checking for the skas3 patch in the host...found Checking for /proc/mm...found Detaching after fork from child process 13822. Detaching after fork from child process 13823. Detaching after fork from child process 13824. Detaching after fork from child process 13825. Checking for /dev/anon on the host...Not available (open failed with errno 2) Linux version 2.4.24stock-1um (root@nine) (gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)) #1 Sat Mar 20 02:02:53 CET 2004 On node 0 totalpages: 32768 zone(0): 32768 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: ubd0=root.cow,root.img ubd1=swap.cow,swap.img mem=128M con0=fd:0,fd:1 con1=tty:/dev/tty9 con=null eth0=tuntap,tap_rt0,, eth1=tuntap,tap_rt1,, eth2=tuntap,tap_rt2,, root=/dev/ubd0 Calibrating delay loop... 1143.60 BogoMIPS Memory: 125180k available Dentry cache hash table entries: 16384 (order: 5, 131072 bytes) Inode cache hash table entries: 8192 (order: 4, 65536 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) Checking for host processor cmov support...Yes Checking for host processor xmm support...No Checking that ptrace can change system call numbers...Detaching after fork from child process 13826. OK Checking that host ptys support output SIGIO...Yes Checking that host ptys support SIGIO on close...No, enabling workaround POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd VFS: Disk quotas vdquot_6.5.1 devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x0 udf: registering filesystem pty: 256 Unix98 ptys configured SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256). RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) PPP generic driver version 2.4.2 Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky Initializing software serial port version 1 mconsole (version 2) initialized on /root/.uml/jX9R1I/mconsole Partition check: ubda: unknown partition table ubdb: unknown partition table Detaching after fork from child process 13827. UML Audio Relay (host dsp = /dev/sound/dsp, host mixer = /dev/sound/mixer) Initializing stdio console driver Detaching after fork from child process 13828. Netdevice 0 : TUN/TAP backend - Netdevice 1 : TUN/TAP backend - Netdevice 2 : TUN/TAP backend - NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 8192 bind 16384) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. UDF-fs: No partition found (1) reiserfs: found format "3.6" with standard journal reiserfs: checking transaction log (device ubd(98,0)) ... for (ubd(98,0)) reiserfs: replayed 7 transactions in 1 seconds ubd(98,0):Using r5 hash to sort names VFS: Mounted root (reiserfs filesystem) readonly. INIT: version 2.82 booting System Boot Control: Running /etc/init.d/boot Mounting /proc filesystem done Mounting /dev/pts done modprobe: modprobe: Can't locate module block-major-9 showconsole: Warning: the ioctl TIOCGDEV is not known by the kernel Activating swap-devices in /etc/fstab... Adding Swap: 262136k swap-space (priority 42) done showconsole: Warning: the ioctl TIOCGDEV is not known by the kernel Checking file systems... fsck 1.34 (25-Jul-2003) Reiserfs super block in block 16 on 0x6200 of format 3.6 with standard journal Blocks (total/free): 131072/43612 by 4096 bytes Filesystem is NOT clean Filesystem seems mounted read-only. Skipping journal replay. Checking internal tree..finished done Mounting local file systems... proc on /proc type proc (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) none on /dev/shm type tmpfs (rw) done Loading required kernel modules done Activating remaining swap-devices in /etc/fstab... done Mounting shared memory FS on /dev/shm done Setting up the CMOS clockhwclock is unable to get I/O port access: the iopl(3) call failed. hwclock is unable to get I/O port access: the iopl(3) call failed. failed Setting up timezone data done Setting scheduling timeslices unused Setting up hostname 'suse9-uml' done Setting up loopback interface done Enabling IP forwarding done Creating /var/log/boot.msg done showconsole: Warning: the ioctl TIOCGDEV is not known by the kernel System Boot Control: The system has been setup Skipped features: boot.sched System Boot Control: Running /etc/init.d/boot.local done INIT: Entering runlevel: 3 Master Resource Control: previous runlevel: N, switching to runlevel: 3 Initializing random number generator done Starting Firewall Initialization (phase 1 of 3) modprobe: modprobe: Can't locate module net-pf-10 modprobe: modprobe: Can't locate module net-pf-10 ip_tables: (C) 2000-2002 Netfilter core team ip_conntrack version 2.1 (977 buckets, 7816 max) - 292 bytes per conntrack done Setting up network interfaces: lo done eth0 dev_ip_addr - device not assigned an IP address IP/Netmask: 213.84.241.98 / 255.255.255.255 done eth1 dev_ip_addr - device not assigned an IP address IP/Netmask: 192.168.1.1 / 255.255.255.0 done eth2 dev_ip_addr - device not assigned an IP address IP/Netmask: 192.168.2.1 / 255.255.255.0 done Starting syslog servicesmodprobe: modprobe: Can't locate module char-major-4 syslogd: /dev/tty10: No such device done Starting RPC portmap daemon done Starting Firewall Initialization (phase 2 of 3) Kernel panic: Kernel mode fault at addr 0x489f2000, ip 0x400e9df8 Program exited normally. (gdb) bt No stack. (gdb) ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uml-devel] Kernel panic on UML linux 2004-03-27 3:48 ` Mark Hurenkamp @ 2004-03-27 10:55 ` Henrik Nordstrom 2004-03-27 11:30 ` Mark Hurenkamp 0 siblings, 1 reply; 12+ messages in thread From: Henrik Nordstrom @ 2004-03-27 10:55 UTC (permalink / raw) To: Mark Hurenkamp; +Cc: Jeff Dike, user-mode-linux-devel On Sat, 27 Mar 2004, Mark Hurenkamp wrote: > I went and read some more on the UML site, and found > some hints that helped me get the UML running within GDB > However, for some reason GDB reports 'Program exited normally', > eventhough there is a kernel panic. > Could that be due to disabling the SIGSEGV handler? No. You need to set a breakpoint on panic break panic > crashes after enabling the firewall (this case, mandrake 8.2 > system with Bastille firewall), but the addresses mentioned > are different (Kernel panic: Kernel mode fault at addr 0x48b16000, > ip 0x400fc344). > Without the firewall enabled, both systems work flawlessly. Is this TT or SKAS mode? Regards Henrik ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uml-devel] Kernel panic on UML linux 2004-03-27 10:55 ` Henrik Nordstrom @ 2004-03-27 11:30 ` Mark Hurenkamp 2004-03-27 12:00 ` Henrik Nordstrom 0 siblings, 1 reply; 12+ messages in thread From: Mark Hurenkamp @ 2004-03-27 11:30 UTC (permalink / raw) To: Henrik Nordstrom; +Cc: Jeff Dike, user-mode-linux-devel On Saturday 27 March 2004 11:55, Henrik Nordstrom wrote: > You need to set a breakpoint on panic > > break panic Seems to make no difference, gdb still reports 'Program exited normally' (gdb) handle SIGSEGV pass nostop noprint Signal Stop Print Pass to program Description SIGSEGV No No Yes Segmentation fault (gdb) handle SIGUSR1 pass nostop noprint Signal Stop Print Pass to program Description SIGUSR1 No No Yes User defined signal 1 (gdb) break panic Breakpoint 1 at 0xa0011ac7: file panic.c, line 58. .... Starting Firewall Initialization (phase 2 of 3) Kernel panic: Kernel mode fault at addr 0x489f2000, ip 0x400e9df8 Program exited normally. (gdb) bt No stack. > Is this TT or SKAS mode? This is running in SKAS mode. Mark. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uml-devel] Kernel panic on UML linux 2004-03-27 11:30 ` Mark Hurenkamp @ 2004-03-27 12:00 ` Henrik Nordstrom 2004-03-28 0:54 ` Mark Hurenkamp 0 siblings, 1 reply; 12+ messages in thread From: Henrik Nordstrom @ 2004-03-27 12:00 UTC (permalink / raw) To: Mark Hurenkamp; +Cc: Jeff Dike, user-mode-linux-devel On Sat, 27 Mar 2004, Mark Hurenkamp wrote: > > Is this TT or SKAS mode? > > This is running in SKAS mode. I have found that GDB in some case works better if I attach to the kernel separately, not starting the kernel from within GDB. At least on Fedora Core 2 test 1.. the GDB version used there seems to have very many problems, not only with UML. Maybe this also applies to your system? To gain some time to attach the debugger you can boot the guest in "failsafe" mode by using init=/bin/sh. Then when you have attached the debugger, configured signals, set breakpoints etc allow the guest to continue the boot by running exec /sbin/init from the guest console.. Regards Henrik ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uml-devel] Kernel panic on UML linux 2004-03-27 12:00 ` Henrik Nordstrom @ 2004-03-28 0:54 ` Mark Hurenkamp 2004-03-28 1:02 ` Henrik Nordstrom 0 siblings, 1 reply; 12+ messages in thread From: Mark Hurenkamp @ 2004-03-28 0:54 UTC (permalink / raw) To: hno; +Cc: jdike, user-mode-linux-devel > I have found that GDB in some case works better if I attach to the kernel > separately, not starting the kernel from within GDB. At least on Fedora > Core 2 test 1.. the GDB version used there seems to have very many > problems, not only with UML. Maybe this also applies to your system? Could be, I don't use gdb often enough to notice... I'm using version 6.0 on a Gentoo distro. > To gain some time to attach the debugger you can boot the guest in > "failsafe" mode by using init=/bin/sh. Then when you have attached the > debugger, configured signals, set breakpoints etc allow the guest to > continue the boot by running > > exec /sbin/init > > from the guest console. Thanks for the tip, this seems to work great :-) So here's the stacktrace of the panic: Breakpoint 1, panic (fmt=0x400e9df8 <Address 0x400e9df8 out of bounds>) at panic.c:5858 machine_paniced = 1; (gdb) bt #0 panic (fmt=0x400e9df8 <Address 0x400e9df8 out of bounds>) at panic.c:58 #1 0xa00c8932 in segv (address=1218387968, ip=1074699768, is_write=0, is_user=0, sc=0x400e9df8) at trap_kern.c:149#2 0xa00c8d65 in segv_handler (sig=11, regs=0xa70d0274) at trap_user.c:67 #3 0xa00d0674 in sig_handler_common_skas (sig=11, sc_ptr=0x58) at trap_user.c:35#4 0xa00c8e75 in sig_handler (sig=0, sc= {gs = 0, __gsh = 0, fs = 0, __fsh = 0, es = 123, __esh = 0, ds = 123, __dsh = 0, edi = 2808081524, esi = 1218387968, ebp = 2802662140, esp = 2802662132, ebx = 2808081524, edx = 2802662280, ecx = 24, eax = 96, trapno = 14, err = 4, eip = 2685209117, cs = 115, __csh = 0, eflags = 2163222, esp_at_signal = 2802662132, ss = 123, __ssh = 0, fpstate = 0x0, oldmask = 0, cr2 = 1218387968}) at trap_user.c:103#5 <signal handler called> #6 0xa00d0a1d in copy_chunk_to_user (to=2808081524, len=96, arg=0xa70d3b88) at string.h:202#7 0xa00d080d in do_op (addr=2808081524, len=96, is_write=96, op=0xa00d0a00 <copy_chunk_to_user>, arg=0x60) at uaccess.c:46#8 0xa00d0867 in buffer_op (addr=134671476, len=-1492305016, is_write=1, op=0xa00d0a00 <copy_chunk_to_user>, arg=0xa70d3b88) at uaccess.c:59#9 0xa00d0aa4 in copy_to_user_skas (to=0x806ec74, from=0x489f2000, n=-1492305016) at uaccess.c:122#10 0xa00d4974 in read_kmem (file=0xa70c25a0, buf=0x806ec74 <Address 0x806ec74 out of bounds>, count=96, ppos=0xa70c25c0) at mem.c:264#11 0xa0038d75 in sys_read (fd=96, buf=0x60 <Address 0x60 out of bounds>, count=96) at read_write.c:177#12 0xa00d00a2 in execute_syscall_skas (r=0x806ec74) at syscall_kern.c:28 #13 0xa00d0124 in handle_syscall (regs=0xa70d0274) at syscall_user.c:26 #14 0xa00cefca in handle_trap (pid=1407, regs=0xa70d0274) at process.c:85 #15 0xa00cf303 in userspace (regs=0xa70d0274) at process.c:160 #16 0xa00cfca4 in fork_handler (sig=10) at process_kern.c:102 #17 <signal handler called> #18 0xa01532f1 in kill () at string.h:486 #19 0xa00d440a in os_usr1_process (pid=0) at process.c:95 #20 0xa00cf3b2 in new_thread (stack=0xa771f794, switch_buf_ptr=0x0, fork_buf_ptr=0x0, handler=0xa771f794) at process.c:199#21 0xa00c6320 in enable_mask (mask=0x0) at signal_user.c:92 #22 0xa00c6411 in set_signals (enable=0) at signal_user.c:127 (gdb) ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uml-devel] Kernel panic on UML linux 2004-03-28 0:54 ` Mark Hurenkamp @ 2004-03-28 1:02 ` Henrik Nordstrom 2004-03-28 2:44 ` Mark Hurenkamp 0 siblings, 1 reply; 12+ messages in thread From: Henrik Nordstrom @ 2004-03-28 1:02 UTC (permalink / raw) To: Mark Hurenkamp; +Cc: jdike, user-mode-linux-devel On Sun, 28 Mar 2004, Mark Hurenkamp wrote: > Could be, I don't use gdb often enough to notice... > I'm using version 6.0 on a Gentoo distro. Fedora Core 2 test 1 is also GDB 6.0 something... > Thanks for the tip, this seems to work great :-) > > So here's the stacktrace of the panic: > > #10 0xa00d4974 in read_kmem (file=0xa70c25a0, buf=0x806ec74 <Address0x806ec74 out of bounds>, count=96, ppos=0xa70c25c0) at mem.c:264 > #11 0xa0038d75 in sys_read (fd=96, buf=0x60 <Address 0x60 out of bounds>,count=96) at read_write.c:177 > #12 0xa00d00a2 in execute_syscall_skas (r=0x806ec74) at syscall_kern.c:28 > #13 0xa00d0124 in handle_syscall (regs=0xa70d0274) at syscall_user.c:26 This is the same issue I reported a some week ago.. for now disable klogd and things should work.. Regards Henrik ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uml-devel] Kernel panic on UML linux 2004-03-28 1:02 ` Henrik Nordstrom @ 2004-03-28 2:44 ` Mark Hurenkamp 2004-03-28 3:44 ` Jeff Dike 0 siblings, 1 reply; 12+ messages in thread From: Mark Hurenkamp @ 2004-03-28 2:44 UTC (permalink / raw) To: hno; +Cc: Mark.Hurenkamp, jdike, user-mode-linux-devel > On Sun, 28 Mar 2004, Mark Hurenkamp wrote: > This is the same issue I reported a some week ago.. for now disable > klogd and things should work.. Many thanks!! Tthat did the trick, both the Suse 9.0 system, and the Mandrake 8.2 system now work fine with UML. Mark. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uml-devel] Kernel panic on UML linux 2004-03-28 2:44 ` Mark Hurenkamp @ 2004-03-28 3:44 ` Jeff Dike 0 siblings, 0 replies; 12+ messages in thread From: Jeff Dike @ 2004-03-28 3:44 UTC (permalink / raw) To: Mark Hurenkamp; +Cc: hno, user-mode-linux-devel On Sun, Mar 28, 2004 at 04:44:43AM +0200, Mark Hurenkamp wrote: > Many thanks!! Tthat did the trick, both the Suse 9.0 system, and the > Mandrake 8.2 system now work fine with UML. This is also fixed in my current tree. Jeff ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2004-03-28 3:09 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-03-19 23:47 [uml-devel] Kernel panic on UML linux Mark Hurenkamp 2004-03-20 1:08 ` Jeff Dike 2004-03-20 23:34 ` Mark Hurenkamp 2004-03-22 21:15 ` Jeff Dike 2004-03-27 3:48 ` Mark Hurenkamp 2004-03-27 10:55 ` Henrik Nordstrom 2004-03-27 11:30 ` Mark Hurenkamp 2004-03-27 12:00 ` Henrik Nordstrom 2004-03-28 0:54 ` Mark Hurenkamp 2004-03-28 1:02 ` Henrik Nordstrom 2004-03-28 2:44 ` Mark Hurenkamp 2004-03-28 3:44 ` Jeff Dike
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.