aqemu crashes w/ Segmentation fault (core dumped)

Bug #1156055 reported by Christopher Forster
122
This bug affects 27 people
Affects Status Importance Assigned to Milestone
aqemu (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi, unfortunately aqemu crashed with "Segmentation fault (core dumped)". I would like to re-run the "First Start Wizard" as a result of the terminal output.

Within the console, ran from Terminal:

aqemu

AQEMU Debug [0] >>>
Sender: int main( int argc, char *argv[] )
Message: AQEMU Config Version: 0.8.1

AQEMU Debug [1] >>>
Sender: bool Emulator::Load( const QString &path )
Message: Loading emulator file version 0.8

AQEMU Debug [2] >>>
Sender: bool Emulator::Load( const QString &path )
Message: Loading emulator file version 0.8

AQEMU Warning [3] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu" element!

AQEMU Warning [4] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-arm" element!

AQEMU Warning [5] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-cris" element!

AQEMU Warning [6] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-m68k" element!

AQEMU Warning [7] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-microblaze" element!

AQEMU Warning [8] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-mips" element!

AQEMU Warning [9] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-mips64" element!

AQEMU Warning [10] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-mips64el" element!

AQEMU Warning [11] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-mipsel" element!

AQEMU Warning [12] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-ppc" element!

AQEMU Warning [13] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-ppc64" element!

AQEMU Warning [14] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-ppcemb" element!

AQEMU Warning [15] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-sh4" element!

AQEMU Warning [16] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-sh4eb" element!

AQEMU Warning [17] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-sparc" element!

AQEMU Warning [18] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-sparc64" element!

AQEMU Debug [19] >>>
Sender: bool Emulator::Load( const QString &path )
Message: Loading emulator file version 0.8

AQEMU Debug [20] >>>
Sender: bool Emulator::Load( const QString &path )
Message: Loading emulator file version 0.8

AQEMU Warning [21] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu" element!

AQEMU Warning [22] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-arm" element!

AQEMU Warning [23] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-cris" element!

AQEMU Warning [24] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-m68k" element!

AQEMU Warning [25] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-microblaze" element!

AQEMU Warning [26] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-mips" element!

AQEMU Warning [27] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-mips64" element!

AQEMU Warning [28] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-mips64el" element!

AQEMU Warning [29] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-mipsel" element!

AQEMU Warning [30] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-ppc" element!

AQEMU Warning [31] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-ppc64" element!

AQEMU Warning [32] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-ppcemb" element!

AQEMU Warning [33] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-sh4" element!

AQEMU Warning [34] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-sh4eb" element!

AQEMU Warning [35] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-sparc" element!

AQEMU Warning [36] >>>
Sender: bool Emulator::Load( const QString &path )
Message: No "qemu-system-sparc64" element!
Segmentation fault (core dumped)

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: aqemu 0.8.2-2
ProcVersionSignature: Ubuntu 3.5.0-25.39-generic 3.5.7.4
Uname: Linux 3.5.0-25-generic x86_64
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Sat Mar 16 22:26:32 2013
InstallationDate: Installed on 2013-03-10 (6 days ago)
InstallationMedia: Lubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.1)
MarkForUpload: True
SourcePackage: aqemu
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Christopher Forster (christopherforster) wrote :
Changed in aqemu (Ubuntu):
assignee: nobody → Hans Peter Kuchling (hpk-n)
assignee: Hans Peter Kuchling (hpk-n) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in aqemu (Ubuntu):
status: New → Confirmed
Revision history for this message
Erik B. Andersen (azendale) wrote :

A backtrace I got for this:

#0 0x000000000044ffe1 in QBasicAtomicInt::deref() ()
#1 0x000000000048376f in QList<Device_Map>::~QList() ()
#2 0x000000000048312d in Available_Devices::~Available_Devices() ()
#3 0x0000000000483232 in QMap<QString, Available_Devices>::freeData(QMapData*) ()
#4 0x0000000000483637 in QMap<QString, Available_Devices>::detach_helper() ()
#5 0x0000000000482ea1 in QMap<QString, Available_Devices>::operator=(QMap<QString, Available_Devices> const&) ()
#6 0x0000000000502d51 in Main_Window::Apply_Emulator(int) ()
#7 0x00000000004d0fc4 in Main_Window::Main_Window(QWidget*) ()
#8 0x00000000004cf50b in main ()

from 'bt full'

#0 0x000000000044ffe1 in QBasicAtomicInt::deref() ()
No symbol table info available.
#1 0x000000000048376f in QList<Device_Map>::~QList() ()
No symbol table info available.
#2 0x000000000048312d in Available_Devices::~Available_Devices() ()
No symbol table info available.
#3 0x0000000000483232 in QMap<QString, Available_Devices>::freeData(QMapData*) ()
No symbol table info available.
#4 0x0000000000483637 in QMap<QString, Available_Devices>::detach_helper() ()
No symbol table info available.
#5 0x0000000000482ea1 in QMap<QString, Available_Devices>::operator=(QMap<QString, Available_Devices> const&) ()
No symbol table info available.
#6 0x0000000000502d51 in Main_Window::Apply_Emulator(int) ()
No symbol table info available.
#7 0x00000000004d0fc4 in Main_Window::Main_Window(QWidget*) ()
No symbol table info available.
#8 0x00000000004cf50b in main ()
No symbol table info available.

Revision history for this message
Yihui (xiongyihui) wrote :

I get the same problem using Ubuntu 13.10 64bit and qemu 1.5.0
I think the bug is caused by a arbitrary list of available qemu/kvm versions in Edit_Emulator_Version_Window.cpp

```
        // Add Items
        if( Emulators[currentRow].Get_Type() == VM::QEMU )
        {
            ui.CB_Versions->clear();

            ui.CB_Versions->addItem( tr("QEMU 0.9.0") );
            ui.CB_Versions->addItem( tr("QEMU 0.9.1") );
            ui.CB_Versions->addItem( tr("QEMU 0.10.X") );
            ui.CB_Versions->addItem( tr("QEMU 0.11.X") );
            ui.CB_Versions->addItem( tr("QEMU 0.12.X") );
            ui.CB_Versions->addItem( tr("QEMU 0.13.X") );
        }
        else if( Emulators[currentRow].Get_Type() == VM::KVM )
        {
            ui.CB_Versions->clear();

            ui.CB_Versions->addItem( tr("KVM 7X") );
            ui.CB_Versions->addItem( tr("KVM 8X") );
            ui.CB_Versions->addItem( tr("KVM 0.11.X") );
            ui.CB_Versions->addItem( tr("KVM 0.12.X") );
            ui.CB_Versions->addItem( tr("KVM 0.13.X") );
        }
```

Revision history for this message
Mario Vuckovic (mid-l) wrote :

Similar issue with Ubuntu 13.10, qemu 1.5.0 and aqemu 0.8.2.

Wizard started normally, but I left the last tab unanswered. I'm unable to restart wizard, purging both qemu and aqemu didni't help.

aqemu returns this:

AQEMU Debug [0] >>>
Sender: int main( int argc, char *argv[] )
Message: AQEMU Config Version: 0.8.1

AQEMU Debug [1] >>>
Sender: bool Emulator::Load( const QString &path )
Message: Loading emulator file version 0.8

AQEMU Debug [2] >>>
Sender: bool Emulator::Load( const QString &path )
Message: Loading emulator file version 0.8

AQEMU Debug [3] >>>
Sender: bool Emulator::Load( const QString &path )
Message: Loading emulator file version 0.8

AQEMU Debug [4] >>>
Sender: bool Emulator::Load( const QString &path )
Message: Loading emulator file version 0.8
Segmentation fault

Revision history for this message
JoseLuisTriana (theunfor) wrote :

Still in Ubuntu 14.04.

Revision history for this message
asgard2 (kamp000x) wrote :

still in 14.10 ...

Revision history for this message
richud (richud.com) wrote :

still in 15.04 ...

Revision history for this message
Artur Zarzycki (78luphr0rnk2nuqimstywepozxn9kl19tqh0tx66b5dki1xxsh5mkz9gl21a5rlwfnr8jn6ln0m3jxne2k9x1ohg85w3jabxlrqbgszpjpwcmvkbcvq9spp6z3w5j1m33-launchpad) wrote :

This morning I tried to test aqemu as alternative to qtemu and got this bug. Strace show me that there is problem with read config files. When you remove .emulator files it's start to work, but you lose configration. So after few minutes I found little workaround which work for me:
go to $HOME/.config/ANDronSoft
there are emulator files (e.g. KVM 0.14.X.emulator QEMU 0.14.X.emulator) edit this files if there is twice <Check_Available_Options> tag then remove one and change options from "no" to "yes":

        <Check_Version>yes</Check_Version>
        <Check_Available_Options>yes</Check_Available_Options>
        <Force_Version>yes</Force_Version>

important: you have to change it in all .emulator files you have in this directory

Revision history for this message
Ivan Garavito (ivangaravito) wrote :

This doesn't works for Ubuntu 14.04.3 LTS amd64

Kernel: 3.19.0-25-generic-lts-vivid
aqemu: 0.8.2-2
qemu: 2.0.0

Tried change .emulator files and still fails, but erasing these failes opens the GUI.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.