Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267569 - app-emulation/qemu-softmmu-0.10.1/-0.10.2 segfaults when built with -ftracer
Summary: app-emulation/qemu-softmmu-0.10.1/-0.10.2 segfaults when built with -ftracer
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-26 16:49 UTC by Xake
Modified: 2012-07-08 21:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xake 2009-04-26 16:49:09 UTC
I have an old Pentium 4 without support for hardware-virtualization.
I have tried qemu from time to time, and have successfully had at least 0.9.x running, but never used it on a regular basis.
Now running qemu-0.10.1 I got segfault trying to run my old fedora-img or trying to install ubuntu-9.04 on a img.
Fedora segfaults when it is about to open X. Ubuntu I tried the "alternative" install media, and it segfaults during installing the core components.
Both have nearly the same backtrace:


Core was generated by `qemu -hda diskimg/ubuntu -cdrom /home/shared/ftp/ubuntu-9.04-alternate-i386.iso'.
Program terminated with signal 11, Segmentation fault.
[New process 12920]
[New process 30341]
[New process 30388]
#0  0xb7f223de in gen_intermediate_code_pc (env=0xb863d600, tb=0xab82b090) at /var/tmp/portage/app-emulation/qemu-softmmu-0.10.2/work/qemu-0.10.2/target-i386/translate.c:7640
7640	/var/tmp/portage/app-emulation/qemu-softmmu-0.10.2/work/qemu-0.10.2/target-i386/translate.c: No such file or directory.
	in /var/tmp/portage/app-emulation/qemu-softmmu-0.10.2/work/qemu-0.10.2/target-i386/translate.c
(gdb) bt full
#0  0xb7f223de in gen_intermediate_code_pc (env=0xb863d600, tb=0xab82b090) at /var/tmp/portage/app-emulation/qemu-softmmu-0.10.2/work/qemu-0.10.2/target-i386/translate.c:7640
No locals.
#1  0xb7ee65db in cpu_restore_state (tb=0xab82b090, env=0xb863d600, searched_pc=2910920589, puc=0x0) at /var/tmp/portage/app-emulation/qemu-softmmu-0.10.2/work/qemu-0.10.2/translate-all.c:158
	j = <value optimized out>
#2  0xb7f3ae8b in tlb_fill (addr=153160728, is_write=1, mmu_idx=1, retaddr=0xad811f8d) at /var/tmp/portage/app-emulation/qemu-softmmu-0.10.2/work/qemu-0.10.2/target-i386/op_helper.c:4783
	tb = (TranslationBlock *) 0xbf88d6e8
	ret = <value optimized out>
	saved_env = (CPUX86State *) 0xb863d600
#3  0xb7f3b06c in __stq_mmu (addr=153160728, val=0, mmu_idx=1) at ../softmmu_template.h:275
	addend = <value optimized out>
	tlb_addr = 4294967295
	retaddr = <value optimized out>
	index = 16
#4  0xad811f8e in ?? ()
No symbol table info available.
#5  0x00000001 in ?? ()
No symbol table info available.
#6  0x00000010 in ?? ()
No symbol table info available.
#7  0x40140831 in ?? ()
No symbol table info available.
#8  0x00000000 in ?? ()
No symbol table info available.


I have no clue where those missing symbols come from or if they even matter in this case.

Reproducible: Always

Steps to Reproduce:
1. emerge qemu
2. qemu-img create disk 10G
3. qemu -hda disk -cdrom ubuntu.iso -boot d

Actual Results:  
Segmentation fault (core dumped)

Expected Results:  
It should work.

Portage 2.2_rc31 (hardened/x86, gcc-4.3.3, glibc-2.9_p20081201-r4, 2.6.29-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-gentoo-2.0.0
Timestamp of tree: Sun, 26 Apr 2009 01:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -ftracer -ftree-vectorize -ggdb -mtune=pentium4"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -ftracer -ftree-vectorize -ggdb -mtune=pentium4"
DISTDIR="/var/portage/distfiles"
FEATURES="candy ccache distcc distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.sunet.se/pub/os/Linux/distributions/gentoo"
LANG="sv_SE.UTF-8"
LC_ALL="C"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--warn-once,--hash-style=gnu"
LINGUAS="sv"
MAKEOPTS="-j7 -l5"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/gnome /usr/local/portage/layman/x11 /usr/local/portage/layman/xake-toolchain /usr/local/portage/layman/xake-toolchain2 /usr/local/portage/layman/mozilla /usr/local/portage/layman/java-overlay /usr/local/portage/mine /usr/local/portage/policykit"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amr amrnb amrwb applet archive avahi bash-completion bzip2 cairo ccache cdaudio cdda cdr cleartype consolekit cracklib crypt cups cxx dbus deskbar device-mapper dhcpcd digitalradio djvu dvd dvdr dvi eds encode exif faac fat ffmpeg fftw flac fuse gdbm gif glib gmp gnome gnome-keyring gnutls gphoto2 grammar gsf gstreamer gtk hal hardened iconv iconvacl id3tag ieee1394 iptc jabbe java6 jpeg jpeg2k lcms libnotify logrotate lvm mad math matroska midi mktemp mms mmx mmxext moonlight mp2 mp3 mpeg mtp mudflap musepack musicbrainz nautilus ncurses network-cron networkmanager nfs nls nptl nptlonly ntfs nvidia offensive ogg opengl openmp openntpd ots pam pango pcre pdf perl pic pidgin png policykit pulseaudio python qemu quicktime readline samba smp spell sse sse2 ssl startup-notification subversion svg test tex theora thesaurus threads tiff totem tracker truetype unicode urandom usb userlocales v4l videos vim-syntax vorbis wmf x264 x364 x86 xcb xmp xmpp xorg xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="emu10k1 intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sv" USERLAND="GNU" VIDEO_CARDS="nv nouveau"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Xake 2009-04-26 18:25:24 UTC
And this also seems to be yet another -ftracer bug...
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-26 19:42:45 UTC
Does it work when you compile the package without -ftracer being your C(XX)FLAGS?
Comment 3 Xake 2009-04-27 05:59:30 UTC
(In reply to comment #2)
> Does it work when you compile the package without -ftracer being your
> C(XX)FLAGS?
> 

Yes.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2012-07-08 21:48:08 UTC
Sounds like you had a workaround and unfortunately this bug was ignored for 3 years. qemu-softmmu is gone from the tree so marking wontfix.