From: Vegard Nossum <vegard.nossum@oracle.com>
To: Richard Weinberger <richard@nod.at>
Cc: Jeff Dike <jdike@addtoit.com>,
user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] uml instance crashes when started from script
Date: Sun, 6 Dec 2015 16:34:14 +0100 [thread overview]
Message-ID: <56645576.3050807@oracle.com> (raw)
Hi,
I've been running into some odd crashes when starting my UML instance
from Python. This is my script:
import subprocess
subprocess.check_call(['path/to/vmlinux', 'mem=2048M',
'rootfstype=hostfs', 'rw', 'init=/bin/bash'])
This will crash 9 out of 10 times with various strange messages on the
console:
[ 1.890000] devtmpfs: mounted
[ 1.960000] mount (947) used greatest stack depth: 5592 bytes left
[ 1.990000] mount (948) used greatest stack depth: 5496 bytes left
#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#��+J@��o��#7%����2Z����.�j
o
��h� -^(�l0�w8�\@�}P�)o`o-�p)CS�-!���8��,��Ҋ8�>)DV9 �
�9�����$��#�#�#�#[ 6.870000]
[ 6.870000] Pid: 1, comm: init Not tainted 4.4.0-rc3
[ 6.870000] RIP: 0033:[<00000000018d4848>]
[ 6.870000] RSP: 00000000dff3efa8 EFLAGS: 00010216
[ 6.870000] RAX: 0000000000000001 RBX: 00000000600748c0 RCX:
00007fb9d87dacd8
[ 6.870000] RDX: ffffffffffffffff RSI: 0000000000000001 RDI:
00000000dfeba3c8
[ 6.870000] RBP: 00000000dff3efe8 R08: 00000000dff3ee38 R09:
0000000000001382
[ 6.870000] R10: 0000000000000000 R11: 0000000000000246 R12:
00000000dff3e000
[ 6.870000] R13: 0000000060050f90 R14: 0000000000000000 R15:
0000000060050a20
[ 6.870000] Kernel panic - not syncing: Kernel tried to access user
memory at addr 0x18d4848, ip 0x18d4848
[ 6.870000] CPU: 0 PID: 1 Comm: init Not tainted 4.4.0-rc3 #1
[ 6.870000]
[ 6.870000] Pid: -538516280, comm: Not tainted 4.4.0-rc3
[ 6.870000] RIP: 0033:[<000000006005b54a>]
[ 6.870000] RSP: 00000000dff3c060 EFLAGS: 00010206
[ 6.870000] RAX: 0000000002556c00 RBX: 0000000002557610 RCX:
0000000000000001
[ 6.870000] RDX: 0000000000000006 RSI: 0000000000000000 RDI:
000000006005b54a
[ 6.870000] RBP: 00000000dff3c120 R08: 00000000dff3e0a0 R09:
0000000000000001
[ 6.870000] R10: 0000000000000008 R11: 0000000000000246 R12:
00000000dff3c190
[ 6.870000] R13: 0000000000000000 R14: 000000006005b54a R15:
00000000dff3c578
[ 6.870000] Kernel panic - not syncing: Kernel tried to access user
memory at addr 0x2557610, ip 0x6005b54a
I think the biggest clue is perhaps this message that occurs occasionally:
[ 1.880000] winch_thread : TIOCSCTTY failed on fd 1 err = 1
I've also seen these traces:
[ 1.940000] Kernel panic - not syncing: Kernel mode signal 4
[ 1.940000] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.0-rc3 #1
[ 1.940000] Stack:
[ 1.940000] e032f4e0 601099cb ffffffffff0a0110 6187c3c0
[ 1.940000] 611ad811 601ad6c6 e032f500 60acf171
[ 1.940000] 60acf134 60aeec40 e032f620 601ad207
[ 1.940000] Call Trace:
[ 1.940000] [<60076f89>] ? os_is_signal_stack+0x29/0x40
[ 1.940000] [<601ad6c6>] ? printk+0x0/0xfd
[ 1.940000] [<6005850e>] show_stack+0x1fe/0x430
[ 1.940000] [<601099cb>] ? dump_stack_print_info+0x17b/0x1f0
[ 1.940000] [<601ad6c6>] ? printk+0x0/0xfd
[ 1.940000] [<60acf171>] dump_stack+0x3d/0x4c
[ 1.940000] [<60acf134>] ? dump_stack+0x0/0x4c
[ 1.940000] [<60aeec40>] ? bust_spinlocks+0x0/0xe0
[ 1.940000] [<601ad207>] panic+0x206/0x5be
[ 1.940000] [<601ad001>] ? panic+0x0/0x5be
[ 1.940000] [<6005bfde>] relay_signal+0x23e/0x290
[ 1.940000] [<60076c08>] sig_handler_common+0x98/0x1a0
[ 1.940000] [<60076db4>] sig_handler+0xa4/0x160
[ 1.940000] [<600761e1>] hard_handler+0xf1/0x1e0
[ 1.940000] [<601182ab>] ? __call_rcu.isra.1+0x9b/0x140
[ 1.940000] [<60ae48bf>] ? put_dec+0x4f/0x140
[ 1.940000] [<60ae7ce0>] ? number.isra.10+0x720/0x7e0
[ 1.940000] [<601182ab>] ? __call_rcu.isra.1+0x9b/0x140
[ 1.940000] [<600eecec>] ? __enqueue_entity+0xec/0x130
[ 1.940000] [<600f06a0>] ? update_cfs_shares.isra.11+0x0/0x1e0
[ 1.940000] [<600ef3f8>] ? check_preempt_wakeup+0x468/0x6a0
[ 1.940000] [<600748c0>] ? write_sigio_thread+0x0/0x500
[ 1.940000] [<6007494e>] ? write_sigio_thread+0x8e/0x500
[ 1.940000] [<600e625d>] ? schedule_tail+0x2d/0x290
[ 1.940000] [<600748c0>] ? write_sigio_thread+0x0/0x500
and
[ 1.900000] Pid: 943, comm: deferwq Not tainted 4.4.0-rc3
[ 1.900000] RIP: 0033:[<0000000000000000>]
(On Ctrl-C:)
[ 239.840000] Kernel panic - not syncing: Kernel tried to access user
memory at addr 0x1844248, ip 0x1844248
[ 239.840000] CPU: 0 PID: 1 Comm: init Not tainted 4.4.0-rc3 #1
[ 239.840000]
[ 239.840000] Pid: -538516280, comm: Not tainted 4.4.0-rc3
[ 239.840000] RIP: 0033:[<000000006005b54a>]
When I start my instance from the command line (but inside a screen --
the Python script was also started in a screen) there is no problem AFAICT.
I am not passing any con*= parameters, so it should be using all the
defaults.
I can test patches. Thanks,
Vegard
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next reply other threads:[~2015-12-06 15:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-06 15:34 Vegard Nossum [this message]
2015-12-07 7:24 ` [uml-devel] uml instance crashes when started from script stian
2015-12-07 7:35 ` Anton Ivanov
2015-12-08 21:53 ` Richard Weinberger
2015-12-09 9:08 ` stian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56645576.3050807@oracle.com \
--to=vegard.nossum@oracle.com \
--cc=jdike@addtoit.com \
--cc=richard@nod.at \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.