Re: [Qemu-devel] ARM brk bug

2012-03-03 Thread Andreas Schwab
Paul Brook writes: >> 15545 brk(NULL) = 0x00012000 >> 15545 brk(0x00812000) = 0x00012000 > > This is your bug. According to the trace above, the brk call fails, but > returns success anyway. A quick look at do_brk confirms this suspicion. This is not a bug. The brk syscall always returns the

Re: [Qemu-devel] ARM brk bug

2012-03-03 Thread malc
On Sat, 3 Mar 2012, Alexander Graf wrote: > > On 02.03.2012, at 18:49, Peter Maydell wrote: > > > On 27 February 2012 15:16, Bernhard M. Wiedemann wrote: > >> I found that running a debian arm5 bash with qemu runs into varying > >> problems with -R but works without. > > > > So I had a look at

Re: [Qemu-devel] ARM brk bug

2012-03-03 Thread Paul Brook
> In QEMU with -R > > $ qemu-arm -R $(( 0x1000 )) ./brk > mmap: 0x935000 > current brk: 0x > -8000 ---p 00:00 0 > 8000-9000 r-xp 08:09 1248935408 /brk > 9000-0001 ---p 00:00 0 > 0001-00011000 r--p 08:09 12489

Re: [Qemu-devel] ARM brk bug

2012-03-03 Thread Alexander Graf
On 03.03.2012, at 22:02, Alexander Graf wrote: [...] > > $ qemu-arm -R $(( 0x1000 )) ./brk > mmap: 0x935000 > current brk: 0x > -8000 ---p 00:00 0 > 8000-9000 r-xp 08:09 1248935408 /brk > 9000-0001 ---p 00:00 0 > 000100

Re: [Qemu-devel] ARM brk bug

2012-03-03 Thread Alexander Graf
On 02.03.2012, at 18:49, Peter Maydell wrote: > On 27 February 2012 15:16, Bernhard M. Wiedemann wrote: >> I found that running a debian arm5 bash with qemu runs into varying >> problems with -R but works without. > > So I had a look at this this afternoon, and what seems to be happening > is t

Re: [Qemu-devel] ARM brk bug

2012-03-02 Thread Alexander Graf
On 02.03.2012, at 18:49, Peter Maydell wrote: > On 27 February 2012 15:16, Bernhard M. Wiedemann wrote: >> I found that running a debian arm5 bash with qemu runs into varying >> problems with -R but works without. > > So I had a look at this this afternoon, and what seems to be happening > is t

Re: [Qemu-devel] ARM brk bug

2012-03-02 Thread Peter Maydell
On 27 February 2012 15:16, Bernhard M. Wiedemann wrote: > I found that running a debian arm5 bash with qemu runs into varying > problems with -R but works without. So I had a look at this this afternoon, and what seems to be happening is that with -R, the call to target_mmap() in elfload.c:setup_

Re: [Qemu-devel] ARM brk bug

2012-02-27 Thread Peter Maydell
On 27 February 2012 17:03, Bernhard M. Wiedemann wrote: > apparently, we patched qemu for openSUSE to always use -R because > otherwise java did not work (with the binfmt chroot magic). Yeah, the ubuntu qemu has a similar patch now. We really should clean that up so we can put it into upstream qe

Re: [Qemu-devel] ARM brk bug

2012-02-27 Thread Bernhard M. Wiedemann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/27/2012 04:32 PM, Peter Maydell wrote: > On 27 February 2012 15:16, Bernhard M. Wiedemann > wrote: >> I found that running a debian arm5 bash with qemu runs into >> varying problems with -R but works without. Also works fine on >> both armv5 and

Re: [Qemu-devel] ARM brk bug

2012-02-27 Thread Peter Maydell
On 27 February 2012 15:16, Bernhard M. Wiedemann wrote: > I found that running a debian arm5 bash with qemu runs into varying > problems with -R but works without. Also works fine on both armv5 and > armv7hf hardware. > > > This happened with both master and 1.0 builds: > > curl www.zq1.de/~bernha

[Qemu-devel] ARM brk bug

2012-02-27 Thread Bernhard M. Wiedemann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I found that running a debian arm5 bash with qemu runs into varying problems with -R but works without. Also works fine on both armv5 and armv7hf hardware. This happened with both master and 1.0 builds: curl www.zq1.de/~bernhard/temp/debian-bas