Re: [Qemu-discuss] QMEU start error, HELP

2014-11-26 Thread Peter Maydell
On 26 November 2014 at 07:42, edonli  wrote:
> Hello everyone,
>
> I have happened to an error when running 'qemu-system-aarch64' of version
> qemu-2.2.0-rc3.
> The error is "*** stack smashing detected".
> The start command is "qemu-system-aarch64 -m 1024 -cpu cortex-a57 -nographic
> -machine virt \ -kernel Image -append 'root=/dev/vda2 rw rootwait mem=1024M
> console=ttyAMA0,38400n8' \ -netdev user,id=user0 -device
> virtio-net-device,netdev=user0 -device virtio-blk-device,drive=disk \ -drive
> if=none,id=disk,file=vexpress64-openembedded_IMAGENAME-armv8_IMAGEDATE-XYZ.img"
> from linaro.
> http://releases.linaro.org/latest/openembedded/aarch64/

This looks bad, but unfortunately I can't reproduce it. Could
you tell me:
 * the host system you're running on (x86_64, i386, arm64, arm, other?)
 * the compiler you're using (including version)
 * the configure flags you used to build QEMU

thanks
-- PMM



Re: [Qemu-discuss] QMEU start error, HELP

2014-11-26 Thread Peter Maydell
On 26 November 2014 at 11:55, Peter Maydell  wrote:
> On 26 November 2014 at 07:42, edonli  wrote:
>> Hello everyone,
>>
>> I have happened to an error when running 'qemu-system-aarch64' of version
>> qemu-2.2.0-rc3.
>> The error is "*** stack smashing detected".
>> The start command is "qemu-system-aarch64 -m 1024 -cpu cortex-a57 -nographic
>> -machine virt \ -kernel Image -append 'root=/dev/vda2 rw rootwait mem=1024M
>> console=ttyAMA0,38400n8' \ -netdev user,id=user0 -device
>> virtio-net-device,netdev=user0 -device virtio-blk-device,drive=disk \ -drive
>> if=none,id=disk,file=vexpress64-openembedded_IMAGENAME-armv8_IMAGEDATE-XYZ.img"
>> from linaro.
>> http://releases.linaro.org/latest/openembedded/aarch64/
>
> This looks bad, but unfortunately I can't reproduce it. Could
> you tell me:
>  * the host system you're running on (x86_64, i386, arm64, arm, other?)
>  * the compiler you're using (including version)
>  * the configure flags you used to build QEMU

Also, can you run QEMU under gdb? I think in that case you should
be able to get a backtrace when the error occurs.

-- PMM



Re: [Qemu-discuss] QMEU start error, HELP

2014-11-26 Thread Peter Maydell
On 26 November 2014 at 12:19, edonli  wrote:
>
> Thanks for your reply.
> The environment I use:
> * Linux 2.6.18  CentOS
> *GNU gcc  version 4.1.2
> *There is no configure  flag to build QEMU, I just execute './configure 
> --prefix=/home/myname/qemu' .(There was no flags to build qemu-0.15 
> before, so I use no flags to build this time)

Thanks. Can you try adding "--enable-debug" to your build
and retrying? This will give more information in the backtrace.

-- PMM



Re: [Qemu-discuss] QMEU start error, HELP

2014-11-26 Thread edonli
I have rebuilt qemu-2.2.0-rc3 with "--enable-debug".
Luckily,there is no running 'error'. 
Unfortunately, there is no any response since started.  Using command 'top',  
the process is running normally without any output.
How can this things happened




edonli

From: Peter Maydell
Date: 2014-11-26 20:26
To: edonli
CC: qemu-discuss
Subject: Re: Re: [Qemu-discuss] QMEU start error, HELP
On 26 November 2014 at 12:19, edonli  wrote:
>
> Thanks for your reply.
> The environment I use:
> * Linux 2.6.18  CentOS
> *GNU gcc  version 4.1.2
> *There is no configure  flag to build QEMU, I just execute './configure 
> --prefix=/home/myname/qemu' .(There was no flags to build qemu-0.15 
> before, so I use no flags to build this time)

Thanks. Can you try adding "--enable-debug" to your build
and retrying? This will give more information in the backtrace.

-- PMM

Re: [Qemu-discuss] QMEU start error, HELP

2014-11-27 Thread Peter Maydell
On 27 November 2014 at 12:24, edonli  wrote:
>
> I have rebuilt qemu-2.2.0-rc3 with "--enable-debug".
> Luckily,there is no running 'error'.
> Unfortunately, there is no any response since started. Using command 'top', 
> the process is running normally without any output.
> How can this things happened
>
> qemu stuck in 'ppoll' function as shown blow:

This typically means "QEMU is correctly emulating a guest
which has crashed or is stuck in a tight loop or is even
running correctly but not sending any output to the UART".

-- PMM



Re: [Qemu-discuss] QMEU start error, HELP

2014-11-27 Thread edonli
 Hello,

Can you tell me what`s your compile environment, and what img or kernel you 
used to build your QEMU.
Thank you very much!




edonli

From: Peter Maydell
Date: 2014-11-27 21:04
To: edonli
CC: qemu-discuss
Subject: Re: Re: [Qemu-discuss] QMEU start error, HELP
On 27 November 2014 at 12:24, edonli  wrote:
>
> I have rebuilt qemu-2.2.0-rc3 with "--enable-debug".
> Luckily,there is no running 'error'.
> Unfortunately, there is no any response since started. Using command 'top', 
> the process is running normally without any output.
> How can this things happened
>
> qemu stuck in 'ppoll' function as shown blow:

This typically means "QEMU is correctly emulating a guest
which has crashed or is stuck in a tight loop or is even
running correctly but not sending any output to the UART".

-- PMM

Re: [Qemu-discuss] QMEU start error, HELP

2014-11-28 Thread Peter Maydell
On 28 November 2014 at 03:32, edonli  wrote:
> Can you tell me what`s your compile environment, and what img or kernel you
> used to build your QEMU.

I currently build QEMU primarily on x86-64 Ubuntu 14.04 ("trusty"),
with the stock gcc for that distro, which is 4.8.2-19ubuntu1. The
host kernel is 3.13.0-36-generic, though I don't think that
matters much.

-- PMM