* [Qemu-devel] [Bug 1738545] Re: Go binaries panic with "mmap errno 9" on qemu-user
2017-12-16 15:25 [Qemu-devel] [Bug 1738545] [NEW] Go binaries panic with "mmap errno 9" on qemu-user John Paul Adrian Glaubitz
@ 2019-08-06 15:36 ` Peter Maydell
2019-08-06 16:33 ` John Paul Adrian Glaubitz
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Peter Maydell @ 2019-08-06 15:36 UTC (permalink / raw)
To: qemu-devel
With current QEMU (and in particular with 4.1.0 rc3 or later with commit
5bfce0b74fbd5d5308 that fixes sigaltstack) go binaries work OK. I think
we must have fixed this mmap issue at some point between when this bug
was reported and now (or possibly the go runtime was made a bit more
forgiving of QEMU's eccentricities).
** Changed in: qemu
Status: New => Fix Committed
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1738545
Title:
Go binaries panic with "mmap errno 9" on qemu-user
Status in QEMU:
Fix Committed
Bug description:
Go binaries panic with "mmap errno 9" on qemu-user.
root@nofan:/# cat hello.go
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
root@nofan:/# gccgo-7 hello.go -o hello
root@nofan:/# ./hello
mmap errno 9
fatal error: mmap
runtime stack:
mmap errno 9
fatal error: mmap
panic during panic
runtime stack:
mmap errno 9
fatal error: mmap
stack trace unavailable
root@nofan:/#
Tested with qemu from git master with Debian unstable for armel.
Same binaries work fine on real hardware.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1738545/+subscriptions
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] [Bug 1738545] Re: Go binaries panic with "mmap errno 9" on qemu-user
2017-12-16 15:25 [Qemu-devel] [Bug 1738545] [NEW] Go binaries panic with "mmap errno 9" on qemu-user John Paul Adrian Glaubitz
2019-08-06 15:36 ` [Qemu-devel] [Bug 1738545] " Peter Maydell
@ 2019-08-06 16:33 ` John Paul Adrian Glaubitz
2019-08-06 16:49 ` Peter Maydell
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: John Paul Adrian Glaubitz @ 2019-08-06 16:33 UTC (permalink / raw)
To: qemu-devel
Oh, that's interesting. I will verify this and if it indeed works, I
will enable Go binaries for sh4 in Debian.
Thanks a lot for the update!
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1738545
Title:
Go binaries panic with "mmap errno 9" on qemu-user
Status in QEMU:
Fix Committed
Bug description:
Go binaries panic with "mmap errno 9" on qemu-user.
root@nofan:/# cat hello.go
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
root@nofan:/# gccgo-7 hello.go -o hello
root@nofan:/# ./hello
mmap errno 9
fatal error: mmap
runtime stack:
mmap errno 9
fatal error: mmap
panic during panic
runtime stack:
mmap errno 9
fatal error: mmap
stack trace unavailable
root@nofan:/#
Tested with qemu from git master with Debian unstable for armel.
Same binaries work fine on real hardware.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1738545/+subscriptions
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] [Bug 1738545] Re: Go binaries panic with "mmap errno 9" on qemu-user
2017-12-16 15:25 [Qemu-devel] [Bug 1738545] [NEW] Go binaries panic with "mmap errno 9" on qemu-user John Paul Adrian Glaubitz
2019-08-06 15:36 ` [Qemu-devel] [Bug 1738545] " Peter Maydell
2019-08-06 16:33 ` John Paul Adrian Glaubitz
@ 2019-08-06 16:49 ` Peter Maydell
2019-08-07 11:12 ` John Paul Adrian Glaubitz
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Peter Maydell @ 2019-08-06 16:49 UTC (permalink / raw)
To: qemu-devel
I haven't tested sh4 specifically, but arm (subject of this bug report)
definitely works, as does arm64.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1738545
Title:
Go binaries panic with "mmap errno 9" on qemu-user
Status in QEMU:
Fix Committed
Bug description:
Go binaries panic with "mmap errno 9" on qemu-user.
root@nofan:/# cat hello.go
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
root@nofan:/# gccgo-7 hello.go -o hello
root@nofan:/# ./hello
mmap errno 9
fatal error: mmap
runtime stack:
mmap errno 9
fatal error: mmap
panic during panic
runtime stack:
mmap errno 9
fatal error: mmap
stack trace unavailable
root@nofan:/#
Tested with qemu from git master with Debian unstable for armel.
Same binaries work fine on real hardware.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1738545/+subscriptions
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] [Bug 1738545] Re: Go binaries panic with "mmap errno 9" on qemu-user
2017-12-16 15:25 [Qemu-devel] [Bug 1738545] [NEW] Go binaries panic with "mmap errno 9" on qemu-user John Paul Adrian Glaubitz
` (2 preceding siblings ...)
2019-08-06 16:49 ` Peter Maydell
@ 2019-08-07 11:12 ` John Paul Adrian Glaubitz
2019-08-07 11:32 ` Peter Maydell
2019-08-16 5:08 ` Thomas Huth
5 siblings, 0 replies; 7+ messages in thread
From: John Paul Adrian Glaubitz @ 2019-08-07 11:12 UTC (permalink / raw)
To: qemu-devel
I can confirm that the issue has been resolved on arm. Unfortunately, on
sh4, the Go binaries are still crashing, albeit differently now. I
verified that they work fine on real sh4 hardware.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1738545
Title:
Go binaries panic with "mmap errno 9" on qemu-user
Status in QEMU:
Fix Committed
Bug description:
Go binaries panic with "mmap errno 9" on qemu-user.
root@nofan:/# cat hello.go
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
root@nofan:/# gccgo-7 hello.go -o hello
root@nofan:/# ./hello
mmap errno 9
fatal error: mmap
runtime stack:
mmap errno 9
fatal error: mmap
panic during panic
runtime stack:
mmap errno 9
fatal error: mmap
stack trace unavailable
root@nofan:/#
Tested with qemu from git master with Debian unstable for armel.
Same binaries work fine on real hardware.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1738545/+subscriptions
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] [Bug 1738545] Re: Go binaries panic with "mmap errno 9" on qemu-user
2017-12-16 15:25 [Qemu-devel] [Bug 1738545] [NEW] Go binaries panic with "mmap errno 9" on qemu-user John Paul Adrian Glaubitz
` (3 preceding siblings ...)
2019-08-07 11:12 ` John Paul Adrian Glaubitz
@ 2019-08-07 11:32 ` Peter Maydell
2019-08-16 5:08 ` Thomas Huth
5 siblings, 0 replies; 7+ messages in thread
From: Peter Maydell @ 2019-08-07 11:32 UTC (permalink / raw)
To: qemu-devel
Could you file a separate bug for the sh4 case, then, please (with repro
instructions)?
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1738545
Title:
Go binaries panic with "mmap errno 9" on qemu-user
Status in QEMU:
Fix Committed
Bug description:
Go binaries panic with "mmap errno 9" on qemu-user.
root@nofan:/# cat hello.go
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
root@nofan:/# gccgo-7 hello.go -o hello
root@nofan:/# ./hello
mmap errno 9
fatal error: mmap
runtime stack:
mmap errno 9
fatal error: mmap
panic during panic
runtime stack:
mmap errno 9
fatal error: mmap
stack trace unavailable
root@nofan:/#
Tested with qemu from git master with Debian unstable for armel.
Same binaries work fine on real hardware.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1738545/+subscriptions
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] [Bug 1738545] Re: Go binaries panic with "mmap errno 9" on qemu-user
2017-12-16 15:25 [Qemu-devel] [Bug 1738545] [NEW] Go binaries panic with "mmap errno 9" on qemu-user John Paul Adrian Glaubitz
` (4 preceding siblings ...)
2019-08-07 11:32 ` Peter Maydell
@ 2019-08-16 5:08 ` Thomas Huth
5 siblings, 0 replies; 7+ messages in thread
From: Thomas Huth @ 2019-08-16 5:08 UTC (permalink / raw)
To: qemu-devel
I'm marking this bug as "fix released" now since the Arm problem has
been fixed. If there is something else to do for sh4, please open a new
bug as suggested by Peter.
** Changed in: qemu
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1738545
Title:
Go binaries panic with "mmap errno 9" on qemu-user
Status in QEMU:
Fix Released
Bug description:
Go binaries panic with "mmap errno 9" on qemu-user.
root@nofan:/# cat hello.go
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
root@nofan:/# gccgo-7 hello.go -o hello
root@nofan:/# ./hello
mmap errno 9
fatal error: mmap
runtime stack:
mmap errno 9
fatal error: mmap
panic during panic
runtime stack:
mmap errno 9
fatal error: mmap
stack trace unavailable
root@nofan:/#
Tested with qemu from git master with Debian unstable for armel.
Same binaries work fine on real hardware.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1738545/+subscriptions
^ permalink raw reply [flat|nested] 7+ messages in thread