← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1349941] Re: qemu-ppc segfault on simple hello world

 

Hi,
nothing happened since then.
I was trying to reproduce but it seems (to me) down to none of us knowing how to correctly resolve libraries.

So before here people reported:
- static builds work
- dynamic builds fail for some with ld.so failing and crashing for others
- dynamic builds fail

To resolve this a bit one has to follow [1] which also needs [2].
Once you did that the issue of the missing ld.so (of the target arch) is resolved.

Doing that I can re-create the issue - even on xenial still with a much newer qemu.
I can also confirm that doing the same e.g. with armhf is working - so it must be ppc specific.
Given the fact that this is a super rare case to need it and OTOH powerpc is mostly dropped in more recent releases this is still a low prio issue.

So even if it is low prio for me, I hope the links help if a community member wants to get onto this. to not let this bug hang-on for another few years I'll mark the tasks incomplete to see if one is still caring and might have a suggestion.
If for quite long again nobody volunteers to help or has a suggestion we might end up closing it.
Sorry but better honest than faking activity here :-/

[1]: https://wiki.debian.org/QemuUserEmulation
[2]: https://wiki.debian.org/Multiarch/HOWTO#Setting_up_apt_sources

** Also affects: qemu (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: qemu (Ubuntu Xenial)
       Status: New => Incomplete

** Changed in: qemu (Ubuntu Trusty)
       Status: Confirmed => Incomplete

** Changed in: qemu (Ubuntu)
       Status: Fix Released => Won't Fix

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1349941

Title:
  qemu-ppc segfault on simple hello world

Status in qemu package in Ubuntu:
  Won't Fix
Status in qemu source package in Trusty:
  Incomplete
Status in qemu source package in Xenial:
  Incomplete

Bug description:
  qemu ppc fails to execute even a simple hello world app.

  jruble@jruble-linux:~/ppc_qemu_test$ cat test.c
  #include <stdio.h>

  int main(){
  printf("asdf\n");
  return 0;
  }

  
  jruble@jruble-linux:~/ppc_qemu_test$ powerpc-linux-gnu-gcc --version
  powerpc-linux-gnu-gcc (Ubuntu 4.8.2-16ubuntu3) 4.8.2
  Copyright (C) 2013 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  
  jruble@jruble-linux:~/ppc_qemu_test$ powerpc-linux-gnu-gcc test.c 

  
  jruble@jruble-linux:~/ppc_qemu_test$ file a.out 
  a.out: ELF 32-bit MSB  executable, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=714f9cfad9e06d0478bcd238ccbcbd10468741fc, not stripped

  
  jruble@jruble-linux:~/ppc_qemu_test$ qemu-ppc -version
  qemu-ppc version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.1), Copyright (c) 2003-2008 Fabrice Bellard

  
  jruble@jruble-linux:~/ppc_qemu_test$ qemu-ppc ./a.out 
  Invalid data memory access: 0xfa98c008
  NIP f67e2b9c   LR f67e2c40 CTR 00000000 XER 00000000
  MSR 00006040 HID0 00000000  HF 00006000 idx 0
  TB 00000000 00000000
  GPR00 00000000f67e2c1c 00000000f6ffe720 0000000000000000 00000000feb6c010
  GPR04 00000000f67ec784 000000000000000b 0000000000000002 0000000000000000
  GPR08 0000000000000030 00000000083c0010 00000000f67ac00a 0000000080808080
  GPR12 00000000f67dcfc8 0000000000000000 0000000000000000 00000000f67fe8c4
  GPR16 00000000f67fe900 00000000f6ffe998 00000000f6ffe99c 00000000f67feaf0
  GPR20 00000000f67fd6c4 000000000000000a 00000000feb6c010 00000000f67fd320
  GPR24 00000000fa98bff4 00000000f7c5ef8d 00000000100001f9 00000000041dfff4
  GPR28 00000000f67fe900 000000005604ffff 00000000f67fdff4 000000002b027fff
  CR 44284042  [ G  G  E  L  G  -  G  E  ]             RES ffffffff
  FPR00 0000000000000000 0000000000000000 0000000000000000 0000000000000000
  FPR04 0000000000000000 0000000000000000 0000000000000000 0000000000000000
  FPR08 0000000000000000 0000000000000000 0000000000000000 0000000000000000
  FPR12 0000000000000000 0000000000000000 0000000000000000 0000000000000000
  FPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000
  FPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000
  FPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000
  FPR28 0000000000000000 0000000000000000 0000000000000000 0000000000000000
  FPSCR 00000000
  qemu: uncaught target signal 11 (Segmentation fault) - core dumped
  Segmentation fault (core dumped)
  jruble@jruble-linux:~/ppc_qemu_test$

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: qemu-user 2.0.0+dfsg-2ubuntu1.1
  ProcVersionSignature: Ubuntu 3.13.0-32.57-generic 3.13.11.4
  Uname: Linux 3.13.0-32-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.2
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Tue Jul 29 12:03:38 2014
  InstallationDate: Installed on 2014-01-16 (193 days ago)
  InstallationMedia: Ubuntu-GNOME 14.04 "Trusty Tahr" - Alpha amd64 (20140116)
  SourcePackage: qemu
  UpgradeStatus: No upgrade log present (probably fresh install)

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