Skip to contentSkip to conversation

UML error - apps killed 50% of the time

DISCUSSION Adam Nielsen 2 participants 10 messages Feb 15, 2010 – Feb 21, 2010

lore
Share & tools
lore
#0 lore raw

Hi all,

From my other message I am trying to get a UML kernel running again after an OS upgrade, but I am unable to get it working again (on the original machine this time, everything is 32-bit.)

When I boot the kernel normally I get tons of error messages, but if I boot it with "init=/bin/bash" I can get a command prompt up. Unfortunately most of the time my apps break:

$ ls
bin  boot  dev  etc  home  lib  lost+found  mnt  opt  proc  root  sbin  sys tmp  usr  var
$ ls
Killed
$ ls
bin  boot  dev  etc  home  lib  lost+found  mnt  opt  proc  root  sbin  sys tmp  usr  var
$ ls
Killed
$ ls
Killed
$ ls
bin  boot  dev  etc  home  lib  lost+found  mnt  opt  proc  root  sbin  sys tmp  usr  var

What's going on? My host dmesg says things like this:

vmlinux[6300] general protection eip:b7ea5124 esp:1785bdfc error:0

Why doesn't UML work any more? It's running the same filesystem and apps as before. Any help would be much appreciated, I've wasted hours on this now :-(

Thanks,
Adam.

(please CC)

#1 lore raw
Quoted 26 lines · Adam Nielsen

Hi all,

From my other message I am trying to get a UML kernel running again after an OS upgrade, but I am unable to get it working again (on the original machine this time, everything is 32-bit.)

When I boot the kernel normally I get tons of error messages, but if I boot it with "init=/bin/bash" I can get a command prompt up. Unfortunately most of the time my apps break:

$ ls
bin  boot  dev  etc  home  lib  lost+found  mnt  opt  proc  root  sbin  
sys tmp  usr  var
$ ls
Killed
$ ls
bin  boot  dev  etc  home  lib  lost+found  mnt  opt  proc  root  sbin  
sys tmp  usr  var
$ ls
Killed
$ ls
Killed
$ ls
bin  boot  dev  etc  home  lib  lost+found  mnt  opt  proc  root  sbin  
sys tmp  usr  var
Quoted 8 lines

What's going on? My host dmesg says things like this:

vmlinux[6300] general protection eip:b7ea5124 esp:1785bdfc error:0

Why doesn't UML work any more? It's running the same filesystem and apps as before. Any help would be much appreciated, I've wasted hours on this now :-(

http://patchwork.kernel.org/patch/79358/

Does this patch help?

Thanks.

#2 lore raw
Quoted 5 lines
Quoted 5 lines
$ ls
Killed
$ ls
Killed
Quoted 7 lines
Quoted 3 lines

vmlinux[6300] general protection eip:b7ea5124 esp:1785bdfc error:0

Why doesn't UML work any more?

http://patchwork.kernel.org/patch/79358/

Does this patch help?

Sort of - ls doesn't get killed any more and I can get about half way through the boot process before things start getting killed (as opposed to them getting killed right away.)

Whatever this patch does, if it could do it twice as much then my problem would be solved ;-)

Thanks,
Adam.

#3 lore raw
Quoted 11 lines · Adam Nielsen
Quoted 11 lines
Quoted 8 lines
$ ls
Killed
$ ls
Killed

vmlinux[6300] general protection eip:b7ea5124 esp:1785bdfc error:0

Why doesn't UML work any more?

http://patchwork.kernel.org/patch/79358/

Quoted 9 lines
Quoted 1 line

Does this patch help?

Sort of - ls doesn't get killed any more and I can get about half way through the boot process before things start getting killed (as opposed to them getting killed right away.)

Whatever this patch does, if it could do it twice as much then my problem would be solved ;-)

So what are the errors now? Could you please provide your boot log?

Thanks.

#4 lore raw
Quoted 1 line

So what are the errors now? Could you please provide your boot log?

Just more random tasks being killed:

* Calculating module dependencies .../sbin/modules-update: line 73: 967
Broken pipe sed -ne 1p "${x}"

       968 Killed                  | egrep -q "^${HEADER}"

* Mounting local filesystems ... [ ok ]
/etc/init.d/localmount: line 9: 982 Killed modprobe usbcore >&/dev/null
* Cleaning /tmp directory ... [ ok ]
/sbin/depscan.sh: line 21: 1055 Killed mkdir -p -m 0755 "${svcdir}/${x}" 2>/dev/null
* Could not create needed directory '/var/lib/init.d/snapshot'!
INIT: Entering runlevel: 3
/lib/rcscripts/sh/rc-services.sh: line 35: 1096 Killed /sbin/depscan.sh -u

* Error running '/sbin/depscan.sh'!
* Please correct any problems above.
/sbin/functions.sh: line 184: 1098 Killed /usr/bin/logger -p "${pri}" -t "${tag}" -- "$*"

Cheers,
Adam.

#5 lore raw
Quoted 17 lines · Adam Nielsen
Quoted 1 line

So what are the errors now? Could you please provide your boot log?

Just more random tasks being killed:

 * Calculating module dependencies .../sbin/modules-update: line 73:   967 Broken pipe             sed -ne 1p "${x}"
      968 Killed                  | egrep -q "^${HEADER}"
 * Mounting local filesystems ... [ ok ] /etc/init.d/localmount: line 9:   982 Killed                  modprobe usbcore >&/dev/null
 * Cleaning /tmp directory ... [ ok ]
/sbin/depscan.sh: line 21:  1055 Killed                  mkdir -p -m 0755 "${svcdir}/${x}" 2>/dev/null
 *  Could not create needed directory '/var/lib/init.d/snapshot'!
INIT: Entering runlevel: 3
/lib/rcscripts/sh/rc-services.sh: line 35:  1096 Killed /sbin/depscan.sh -u

Quoted 5 lines

 * Error running '/sbin/depscan.sh'!
 * Please correct any problems above.
/sbin/functions.sh: line 184:  1098 Killed                  /usr/bin/logger -p "${pri}" -t "${tag}" -- "$*"

Oh, probably caused by the same commit....

I will check it tonight.

Thank you.

#6 lore raw
In reply to Adam Nielsen
Quoted 18 lines · Adam Nielsen
Quoted 1 line

So what are the errors now? Could you please provide your boot log?

Just more random tasks being killed:

* Calculating module dependencies .../sbin/modules-update: line 73:
967 Broken pipe sed -ne 1p "${x}"

       968 Killed                  | egrep -q "^${HEADER}"

* Mounting local filesystems ... [ ok ]
/etc/init.d/localmount: line 9: 982 Killed modprobe
usbcore >&/dev/null
* Cleaning /tmp directory ... [ ok ]
/sbin/depscan.sh: line 21: 1055 Killed mkdir -p -m 0755
"${svcdir}/${x}" 2>/dev/null
* Could not create needed directory '/var/lib/init.d/snapshot'!
INIT: Entering runlevel: 3
/lib/rcscripts/sh/rc-services.sh: line 35: 1096 Killed /sbin/depscan.sh -u

Quoted 5 lines

* Error running '/sbin/depscan.sh'!
* Please correct any problems above.
/sbin/functions.sh: line 184: 1098 Killed
/usr/bin/logger -p "${pri}" -t "${tag}" -- "$*"

I tested it, it is fixed by the updated patch:

http://linux.derkeiler.com/Mailing-Lists/Kernel/2010-02/msg05620.html

#8 lore raw
Quoted 4 lines · Adam Nielsen
Quoted 4 lines
Quoted 3 lines

Just more random tasks being killed:
/sbin/functions.sh: line 184:  1098 Killed
/usr/bin/logger -p "${pri}" -t "${tag}" -- "$*"

Quoted 8 lines
Quoted 3 lines

I tested it, it is fixed by the updated patch:

http://linux.derkeiler.com/Mailing-Lists/Kernel/2010-02/msg05620.html

That patch won't apply - if I am reading it correctly it looks like it was already part of the original patch
(http://patchwork.kernel.org/patch/79358/)

No, they are different. Sorry that the above page mangles the patch, please try this one:

http://lkml.org/lkml/diff/2010/2/15/61/1

Thanks.

#9 lore raw
Quoted 8 lines
Quoted 3 lines

That patch won't apply - if I am reading it correctly it looks like it was already part of the original patch
(http://patchwork.kernel.org/patch/79358/)

No, they are different. Sorry that the above page mangles the patch, please try this one:

http://lkml.org/lkml/diff/2010/2/15/61/1

Oh my mistake, I thought it was to be applied on top of the original patch. I reverted the original patch and applied this one, and it seems to have fixed the problem!

I can now fully boot into the UML and run programs again - thanks for your help!

Cheers,
Adam.