[Bug 1254672] Re: ps segfaults with qemu-arm-static

2013-11-25 Thread Ken Sharp
** Also affects: qemu-linaro
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1254672

Title:
  ps segfaults with qemu-arm-static

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/1254672/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1254672] Re: ps segfaults with qemu-arm-static

2013-11-25 Thread Ken Sharp
** Description changed:

  Host: Ubuntu Precise AMD64
- Guest: Debian Testing armhf
+ Guest: Debian Testing armhf (or armel)
  
  After running a debootstrap for Debian testing/armhf and entering the
  chroot, simply running ps causes a segmentation fault.
  
  $ sudo qemu-debootstrap --arch=armhf testing armhf 
http://ftp.uk.debian.org/debian/
  [...]
  $ sudo chroot armhf
  # ps
  Signal 11 (SEGV) caught by ps (procps-ng version 3.3.4).
  /bin/ps:display.c:59: please report this bug
  
  I couldn't find a bug report for procps, which would be unusual if such
  a bug existed, so I'm assuming the bug is in qemu.
  
  Unfortunately trying to run debootstrap for an Ubuntu variant fails to
  find the release file.
  
  ps is used a lot, as you can imagine, but specifically it fails when
  trying to install some packages via apt-get install and no attempt is
  made to recover.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: qemu-user-static 1.0.50-2012.03-0ubuntu2.1
  ProcVersionSignature: Ubuntu 3.8.0-33.48~precise1-generic 3.8.13.11
  Uname: Linux 3.8.0-33-generic x86_64
  NonfreeKernelModules: wl
  ApportVersion: 2.0.1-0ubuntu17.6
  Architecture: amd64
  Date: Mon Nov 25 10:43:12 2013
  Dependencies:
-  
+ 
  InstallationMedia: Ubuntu 12.04.3 LTS Precise Pangolin - Release amd64 
(20130820.1)
  MarkForUpload: True
  ProcEnviron:
-  LANGUAGE=en_GB:en
-  TERM=xterm
-  PATH=(custom, no user)
-  LANG=en_GB.UTF-8
-  SHELL=/bin/bash
+  LANGUAGE=en_GB:en
+  TERM=xterm
+  PATH=(custom, no user)
+  LANG=en_GB.UTF-8
+  SHELL=/bin/bash
  SourcePackage: qemu-linaro
  UpgradeStatus: No upgrade log present (probably fresh install)

** Also affects: qemu
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1254672

Title:
  ps segfaults with qemu-arm-static

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1254672/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1254672] Re: ps segfaults with qemu-arm-static

2013-11-25 Thread Ken Sharp
Same thing with qemu-mips-static too by the looks of things.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1254672

Title:
  ps segfaults with qemu-arm-static

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1254672/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1254672] Re: ps segfaults with qemu-arm-static

2013-11-25 Thread Ken Sharp
qemu-powerpc-static on i386:

# ps
Invalid data memory access: 0x
NIP 0feb05e4   LR 0feb1440 CTR 0feb13f0 XER 
MSR 6040 HID0   HF 6000 idx 0
TB  
GPR00 0ffc178c 407fffa0 4083f720 0001
GPR04 29292929 0a00 fefefeff 7f7f7f7f
GPR08  80808080 0008 
GPR12 24000442 1002c180  
GPR16    
GPR20    
GPR24    0001
GPR28 4080088c  0ffa6ff4 0029
CR 44000444  [ G  G  -  -  -  G  G  G  ] RES 
FPR00    
FPR04    
FPR08    
FPR12    
FPR16    
FPR20    
FPR24    
FPR28    
FPSCR 
Signal 11 (SEGV) caught by ps (procps-ng version 3.3.4).
/bin/ps:display.c:59: please report this bug

** Tags added: i386

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1254672

Title:
  ps segfaults with qemu-arm-static

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1254672/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1254672] Re: ps segfaults with qemu-arm-static

2013-11-25 Thread Peter Maydell
I suspect this is a NULL pointer access that happens in procps where it
isn't handling an error path that it's not expecting somehow (either a
syscall we're not implementing, or perhaps something like /proc not
being mounted in your chroot environment, or something about qemu's
emulation of some file in /proc isn't right). The next stage would be to
debug where exactly ps is crashing (attaching a debugger to the qemu
gdbstub is probably easiest, or good old printfs...)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1254672

Title:
  ps segfaults with qemu-arm-static

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1254672/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs