All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0"]
@ 2004-07-18 18:45 Matt Zimmerman
  2004-07-19  0:04 ` Nicholas Lee
  0 siblings, 1 reply; 7+ messages in thread
From: Matt Zimmerman @ 2004-07-18 18:45 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: 260111-forwarded, Brian McGroarty

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

I received this bug report from a Debian user.  It seems that something is
wrong with tt mode in 2.4.26-2um; I can reproduce a similar (though not
identical) hang by trying to boot with mode=tt (my host kernel is 2.6.6 with
skas3).  In my case, it hangs after init has started.  Booting in skas mode
works fine (which is why I didn't notice this in the first place).

-- 
 - mdz

[-- Attachment #2: Type: message/rfc822, Size: 5414 bytes --]

From: Brian McGroarty <brian@sb.mcgroarty.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0"
Date: Sun, 18 Jul 2004 09:51:41 -0500
Message-ID: <E1BmD0v-00039M-FQ@sb.mcgroarty.net>

Package: user-mode-linux
Version: 2.4.26-2um-1
Severity: normal


On upgrading user-mode-linux, my guest machines all hang during
startup, as below.

When I ran again with "|tee log.txt" to generate the log below, the
machine makes it through the kernel startup and hangs on usermode
daemons trying to start.


Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
Kernel virtual memory size shrunk to 243269632 bytes
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Linux version 2.4.26-2um (root@mizar) (gcc version 3.3.4 (Debian 1:3.3.4-3)) #2 Fri Jul 16 17:51
:17 PDT 2004
On node 0 totalpages: 65536
zone(0): 65536 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: -s mem=256M eth0=daemon root=/dev/ubd/0 devfs=mount hostfs=/home/brian/uml/
hostfs ubd0=/home/brian/uml/drives/mcg.root ubd1=/home/brian/uml/drives/mcg.swap
Calibrating delay loop... 2090.59 BogoMIPS
Memory: 252584k available
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 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
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
SGI XFS with ACLs, no debug enabled
SGI XFS Quota Management subsystem
Disabling 2.6 AIO in tt mode
pty: 256 Unix98 ptys configured
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Initializing Cryptographic API
Initializing software serial port version 1
Netdevice 0 : daemon backend (uml_switch version 3) - unix:/var/run/uml-utilities/uml_switch.ctl
mconsole (version 2) initialized on /home/brian/.uml/mcg/mconsole
Partition check:
 ubda: unknown partition table
 ubdb: unknown partition table
Initializing stdio console driver
NET4: Linux TCP/IP 1.0 for NET4.0
[hang here]

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-k7
Locale: LANG=C, LC_CTYPE=C

Versions of packages user-mode-linux depends on:
ii  uml-utilities                 20040406-1 User-mode Linux (utility programs)

-- no debconf information

[-- Attachment #3: Type: message/rfc822, Size: 3147 bytes --]

[-- Attachment #3.1.1: Type: text/plain, Size: 1394 bytes --]

> On upgrading user-mode-linux, my guest machines all hang during
> startup, as below.
> [...]
> mconsole (version 2) initialized on /home/brian/.uml/mcg/mconsole
> Partition check:
>  ubda: unknown partition table
>  ubdb: unknown partition table
> Initializing stdio console driver
> NET4: Linux TCP/IP 1.0 for NET4.0
> [hang here]

> This is about the point where the consoles should be initialized.
> You didn't specify a console configuration parameter, so it is
> presumably trying to open terminal emulators.  Any reason why that
> might not work?

I'm not sure if I know enough to answer your question.  I normally
achieve a terminal with the below in inittab. I'm not running X, and
the only user mode linux tool I'm using besides the kernel itself is
the net daemon:

1:2345:respawn:/sbin/getty 38400 /dev/ttys/0


If it's helpful, I rolled back to the user-mode-linux version in
testing, and with that version, this is what follows the NET4 line in
the boot sequence:

IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Mounted devfs on /dev
[followed by INIT and userland stuff]

[-- Attachment #3.1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [uml-devel] [Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0"]
  2004-07-18 18:45 [uml-devel] [Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0"] Matt Zimmerman
@ 2004-07-19  0:04 ` Nicholas Lee
  2004-07-19  0:24   ` Brian McGroarty
  0 siblings, 1 reply; 7+ messages in thread
From: Nicholas Lee @ 2004-07-19  0:04 UTC (permalink / raw)
  To: Matt Zimmerman; +Cc: user-mode-linux-devel, 260111-forwarded, Brian McGroarty


Have they tried with 2.4 host kernels?

There are some NTPL issues with UML.

See
http://sourceforge.net/mailarchive/message.php?msg_id=6991583

I know I had a similar problem with 2.6 host. Currently I'm running
debian/sid with 2.4-skas host.

I haven't retried 2.6 host kernel yet, due to unrelated issues. SATA
driver problem, causing my system to lockup. 

Nicholas


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&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] 7+ messages in thread

* Re: [uml-devel] [Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0"]
  2004-07-19  0:04 ` Nicholas Lee
@ 2004-07-19  0:24   ` Brian McGroarty
  2004-07-19  2:13     ` Nicholas Lee
  0 siblings, 1 reply; 7+ messages in thread
From: Brian McGroarty @ 2004-07-19  0:24 UTC (permalink / raw)
  To: Nicholas Lee; +Cc: Matt Zimmerman, user-mode-linux-devel, 260111-forwarded

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

On Mon, Jul 19, 2004 at 12:04:03PM +1200, Nicholas Lee wrote:
> 
> Have they tried with 2.4 host kernels?
> 
> There are some NTPL issues with UML.

I'm the original submitter.

I tried both 2.4 and 2.6 kernels. The problem is the same with each.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [uml-devel] [Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0"]
  2004-07-19  0:24   ` Brian McGroarty
@ 2004-07-19  2:13     ` Nicholas Lee
  2004-07-19 11:54       ` Brian McGroarty
  0 siblings, 1 reply; 7+ messages in thread
From: Nicholas Lee @ 2004-07-19  2:13 UTC (permalink / raw)
  To: Brian McGroarty; +Cc: Matt Zimmerman, user-mode-linux-devel, 260111-forwarded


Well this is odd.

I can get it to start with my 2.4.25 kernel.

/uml/weather/linux-2.4.25  con=null con0=fd:0,fd:1 mem=256M \
ubda=/uml/weather/weather.ext2 ubd1=/uml/weather/swapfs     \
eth0=tuntap,uml-weather  eth1=tuntap,uml-weather-int

This fails

uml/weather/linux-2.4.26  con=null con0=fd:0,fd:1 mem=256M \
ubda=/uml/weather/weather.ext2 ubd1=/uml/weather/swapfs    \
eth0=tuntap,uml-weather  eth1=tuntap,uml-weather-int


This sometimes works, but not this time:-

nic@stateless:/uml/weather] /uml/weather/linux-2.4.26  con=null \
con0=fd:0,fd:1 mem=256M ubda=/uml/weather/weather.ext2 ubd1=/uml/weather/swapfs
Checking for the skas3 patch in the host...found
Checking for /proc/mm...found
Kernel virtual memory size shrunk to 258998272 bytes Checking for /dev/anon on the host...Not available (open failed with
errno 2)
Linux version 2.4.26-2um (nic@stateless) (gcc version 3.3.3 20040125 (prerelease) (Debian)) #1 Sat Jul 17 11:46:02 NZST 2004
On node 0 totalpages: 65536
zone(0): 65536 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: con=null con0=fd:0,fd:1 mem=256M
ubda=/uml/weather/weather.ext2 ubd1=/uml/weather/swapfs root=/dev/ubd0
Calibrating delay loop... 3525.83 BogoMIPS
Kernel panic: Segfault with no mm
In idle task - not syncing
 <6>SysRq : Show Regs

EIP: 0000:[<00000000>] CPU: 0 Not tainted EFLAGS: 00000000 Not tainted
EAX: 00000000 EBX: 00000000 ECX: 00000000 EDX: 00000000
ESI: 00000000 EDI: 00000000 EBP: 00000000 DS: 0000 ES: 0000
Call Trace: [<a00ec2f0>] [<a00d4d5f>] [<a001db8d>] [<a0011c48>] [<a00d3fcb>]
   [<a01c69d2>] [<a0166ae4>] [<a00d1a23>] [<a00d4425>] [<a00da944>] [<a00d4535>]
   [<a01669f8>] [<a00da8e5>] [<a00da8dd>] [<a00d4535>] [<a01669f8>] [<a00da8e5>]
   [<a00da8dd>] [<a00d4535>] [<a01669f8>] [<a00da8e5>] [<a00da8dd>] [<a00d4535>]
   [<a01669f8>] [<a00da8e5>] [<a0195905>] [<a01783c2>] [<a01c698d>] [<a01c698d>]
   [<a0007bc8>] [<a01c95b1>] [<a01c6766>] [<a017eb37>] [<a00d2fea>] [<a01c6766>]
   [<a01783c2>] [<a0008387>] [<a00da8dd>] [<a00d4535>] [<a01669f8>] [<a00da8e5>]
   [<a00da8dd>] [<a00d4535>] [<a01669f8>] [<a00da8e5>] [<a00da8dd>] [<a00d4535>]
   [<a01669f8>] [<a001ae05>] [<a001af46>] [<a001b127>] [<a00d3699>] [<a01669f8>]
   [<a00d98f3>] [<a00d9969>] [<a00d3670>] [<a01669f8>] [<a01669f8>] [<a01669f8>]
   [<a00d9db0>] [<a01669f8>] [<a0166ae4>] [<a00d1920>] [<a00d9db0>] [<a00d99e1>]
   [<a00ce641>] [<a01667ec>] [<a00d9929>] [<a00da168>] [<a00df103>] [<a00d4bed>]
   [<a000c1b0>] [<a000c3ee>] [<a017eacb>] [<a017a681>] [<a0177fca>] [<a01783c2>]
   [<a017f234>] [<a0198f5a>] [<a01666f0>] [<a01661cc>] [<a000c021>] [<a000c210>]
   [<a0166690>] [<a01666f0>] [<a000c000>]



Strangely this works:

 /uml/weather/linux-2.4.26  con=null con0=fd:0,fd:1         mem=256M  \
ubda=/uml/weather/weather.ext2 ubd1=/uml/weather/swapfs | tee log2.txt

and this:

/uml/weather/linux-2.4.26  con=null con0=fd:0,fd:1         mem=256M
ubda=/uml/weather/weather.ext2         ubd1=/uml/weather/swapfs
eth0=tuntap,uml-weather  eth1=tuntap,uml-weather-int | tee log3.txt

full networking works on the last.


Note versions used:

Linux version 2.4.26-2um (nic@stateless) (gcc version 3.3.3 20040125 (prerelease) (Debian)) #1 Sat Jul 17 11:46:02 NZST 2004
Linux version 2.4.25-1um (nic@stateless) (gcc version 3.3.3 20040125 (prerelease) (Debian)) #1 Mon Mar 8 11:09:39 NZDT 2004

[nic@stateless:/uml/weather] uname -a
Linux stateless 2.4.25 #1 SMP Sat Mar 27 16:35:34 NZST 2004 i686 GNU/Linux

Both hosts and guest using SKAS.



These seems to be the only major differences in the tee log files:

+aio_thread failed to initialize context, err = 38
+2.6 AIO not supported on the host - reverting to 2.4 AIO

+ip_tables: (C) 2000-2002 Netfilter core team


This works as well:
/uml/weather/linux-2.4.26  con=null con0=fd:0,fd:1         mem=256M
ubda=/uml/weather/weather.ext2         ubd1=/uml/weather/swapfs
eth0=tuntap,uml-weather  eth1=tuntap,uml-weather-int 2>&1 | tee /dev/null


So 2.4.25 works, and 2.4.26 requires tee to work.

Nicholas




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&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] 7+ messages in thread

* [uml-devel] Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0"
       [not found] <200407181816.39870.alydar@users.sourceforge.net>
@ 2004-07-19  4:20 ` Allen Chan
  0 siblings, 0 replies; 7+ messages in thread
From: Allen Chan @ 2004-07-19  4:20 UTC (permalink / raw)
  To: 260111; +Cc: nic

Confirming results from Nicolas Lee, the same 2.4.26-2um-1 guest 
kernel that failed earlier with the 2.6.6-1-k7 host kernel with the 
skas3 patch now works if the output from the command line is piped to 
"tee".

This guest kernel also appears to work if on the command line, the 
stdout is redirected to a file, or if it is piped to anything that 
does not require additional user interaction (i.e., piping to "cat" 
works, but piping to "more" caused some other, probably unrelated, 
problems).


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&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] 7+ messages in thread

* Re: [uml-devel] [Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0"]
  2004-07-19  2:13     ` Nicholas Lee
@ 2004-07-19 11:54       ` Brian McGroarty
  0 siblings, 0 replies; 7+ messages in thread
From: Brian McGroarty @ 2004-07-19 11:54 UTC (permalink / raw)
  To: Nicholas Lee; +Cc: Matt Zimmerman, user-mode-linux-devel, 260111-forwarded

On Mon, Jul 19, 2004 at 02:13:21PM +1200, Nicholas Lee wrote:
> 
> Well this is odd.
> 
> [...]
> 
> So 2.4.25 works, and 2.4.26 requires tee to work.

Yes, that was the case for me. However, tee only prolonged the life of
the machine.

With tee, I can bring up the machine in single-user mode if I use tee,
but attempting to boot fully results in a hang when exim4 is coming
up. Attempting to go to multi-user mode from single user mode results
in a hang when inetd is coming up.


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&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] 7+ messages in thread

* Re: [uml-devel] [Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0"]
  2004-07-18 22:40 [uml-devel] [alydar@users.sourceforge.net: Bug#260111: " Matt Zimmerman
@ 2004-07-20 19:48 ` Daniel Heemann
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Heemann @ 2004-07-20 19:48 UTC (permalink / raw)
  To: user-mode-linux-devel

On Monday 19 July 2004 00:40, Matt Zimmerman wrote:
> Another report with the same symptoms, but this one with skas.  Has
> anyone else seen this?

I can confirm the same problems on woody systems
(2.4.21-skas and 2.4.18-bf2.4-non-skas host kernels)
but also on a gentoo system (2.4.26-non-skas host kernel, gcc 
3.3.3-20040412, glibc-2.3.3-20040420).

For me it looks like during/after 'Initializing stdio console driver' the 
problem occurs as it's not alwas hanging while 'NET4: Linux TCP/IP 1.0 for 
NET4.0' but also when something like the following is displayed.
However, always 'Initializing stdio console driver' seems to be the last 
working step:

  ...
  UML Audio Relay (host dsp = /dev/sound/dsp, host mixer = /dev/sound/mixer)
  Initializing stdio console driver
  mconsole (version 2) initialized o  <hangs here>


Regards
Daniel

-- 
"Those who would give up essential liberty, to purchase a little temporary 
safety, deserve neither liberty nor safety."  - Benjamin Franklin


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&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] 7+ messages in thread

end of thread, other threads:[~2004-07-20 19:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-18 18:45 [uml-devel] [Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0"] Matt Zimmerman
2004-07-19  0:04 ` Nicholas Lee
2004-07-19  0:24   ` Brian McGroarty
2004-07-19  2:13     ` Nicholas Lee
2004-07-19 11:54       ` Brian McGroarty
  -- strict thread matches above, loose matches on Subject: below --
2004-07-18 22:40 [uml-devel] [alydar@users.sourceforge.net: Bug#260111: " Matt Zimmerman
2004-07-20 19:48 ` [uml-devel] [Bug#260111: " Daniel Heemann
     [not found] <200407181816.39870.alydar@users.sourceforge.net>
2004-07-19  4:20 ` [uml-devel] Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0" Allen Chan

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.