All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 1868055] [NEW] cannot run golang app with docker, version 17.09.1-ce, disabling core 0 and qemu-arm, version 2.7.
@ 2020-03-19  7:52 Dongwhan Kim
  2020-03-19  8:11 ` [Bug 1868055] " Peter Maydell
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Dongwhan Kim @ 2020-03-19  7:52 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

Hello!
I figure out that sometimes simple go application is not working.
I am using docker + qemu-arm + go( for armv7l).

These are version info below.

root@VDBS1535:~# docker -v
Docker version 17.09.1-ce, build 19e2cf6

bash-3.2# qemu-arm --version
qemu-arm version 2.7.0, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers

$ go version
go version go1.12.6 linux/arm
$ go env
GOARCH="arm"
GOBIN=""
GOCACHE="/home/quickbuild/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/quickbuild/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/lib/golang"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_arm"
GCCGO="gccgo"
GOARM="7"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build242285369=/tmp/go-build -gno-record-gcc-switches"

This issue is come only when I disable core 0 using a command below.
please check "--cpuset-cpus=1-55" option.

sudo docker run --privileged -d -i -t --cpuset-cpus=1-55 --mount
type=bind,source="/home/dw83kim/mnt",destination="/mnt" --network host
--name="ubuntu_core1" ubuntu:xenial-20200212


This is what I have tested in the environment above.

package main
func main(){
    for i:=0; i<1000; i++ {
        println("Hello world")
    }
}

This is one of the error logs have faced sometimes not always.

bash-3.2# go run test.go
fatal error: schedule: holding locks
panic during panic
SIGILL: illegal instruction
PC=0xc9ec4c m=3 sigcode=2

goroutine 122 [runnable]:
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
bash-3.2#

Please check it.
Thanks in advance.

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1868055

Title:
  cannot run golang app with docker, version 17.09.1-ce, disabling core
  0 and qemu-arm, version 2.7.

Status in QEMU:
  New

Bug description:
  Hello!
  I figure out that sometimes simple go application is not working.
  I am using docker + qemu-arm + go( for armv7l).

  These are version info below.

  root@VDBS1535:~# docker -v
  Docker version 17.09.1-ce, build 19e2cf6

  bash-3.2# qemu-arm --version
  qemu-arm version 2.7.0, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers

  $ go version
  go version go1.12.6 linux/arm
  $ go env
  GOARCH="arm"
  GOBIN=""
  GOCACHE="/home/quickbuild/.cache/go-build"
  GOEXE=""
  GOFLAGS=""
  GOHOSTARCH="arm"
  GOHOSTOS="linux"
  GOOS="linux"
  GOPATH="/home/quickbuild/go"
  GOPROXY=""
  GORACE=""
  GOROOT="/usr/lib/golang"
  GOTMPDIR=""
  GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_arm"
  GCCGO="gccgo"
  GOARM="7"
  CC="gcc"
  CXX="g++"
  CGO_ENABLED="1"
  GOMOD=""
  CGO_CFLAGS="-g -O2"
  CGO_CPPFLAGS=""
  CGO_CXXFLAGS="-g -O2"
  CGO_FFLAGS="-g -O2"
  CGO_LDFLAGS="-g -O2"
  PKG_CONFIG="pkg-config"
  GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build242285369=/tmp/go-build -gno-record-gcc-switches"

  This issue is come only when I disable core 0 using a command below.
  please check "--cpuset-cpus=1-55" option.

  sudo docker run --privileged -d -i -t --cpuset-cpus=1-55 --mount
  type=bind,source="/home/dw83kim/mnt",destination="/mnt" --network host
  --name="ubuntu_core1" ubuntu:xenial-20200212

  
  This is what I have tested in the environment above.

  package main
  func main(){
      for i:=0; i<1000; i++ {
          println("Hello world")
      }
  }

  This is one of the error logs have faced sometimes not always.

  bash-3.2# go run test.go
  fatal error: schedule: holding locks
  panic during panic
  SIGILL: illegal instruction
  PC=0xc9ec4c m=3 sigcode=2

  goroutine 122 [runnable]:
  qemu: uncaught target signal 11 (Segmentation fault) - core dumped
  Segmentation fault (core dumped)
  bash-3.2#

  Please check it.
  Thanks in advance.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1868055/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1868055] Re: cannot run golang app with docker, version 17.09.1-ce, disabling core 0 and qemu-arm, version 2.7.
  2020-03-19  7:52 [Bug 1868055] [NEW] cannot run golang app with docker, version 17.09.1-ce, disabling core 0 and qemu-arm, version 2.7 Dongwhan Kim
@ 2020-03-19  8:11 ` Peter Maydell
  2020-03-19  8:13 ` Laurent Vivier
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Peter Maydell @ 2020-03-19  8:11 UTC (permalink / raw)
  To: qemu-devel

This is a known and fixed bug in QEMU. Please try a more recent version
than 2.7 (eg 4.2, which is the most recent release).

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1868055

Title:
  cannot run golang app with docker, version 17.09.1-ce, disabling core
  0 and qemu-arm, version 2.7.

Status in QEMU:
  New

Bug description:
  Hello!
  I figure out that sometimes simple go application is not working.
  I am using docker + qemu-arm + go( for armv7l).

  These are version info below.

  root@VDBS1535:~# docker -v
  Docker version 17.09.1-ce, build 19e2cf6

  bash-3.2# qemu-arm --version
  qemu-arm version 2.7.0, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers

  $ go version
  go version go1.12.6 linux/arm
  $ go env
  GOARCH="arm"
  GOBIN=""
  GOCACHE="/home/quickbuild/.cache/go-build"
  GOEXE=""
  GOFLAGS=""
  GOHOSTARCH="arm"
  GOHOSTOS="linux"
  GOOS="linux"
  GOPATH="/home/quickbuild/go"
  GOPROXY=""
  GORACE=""
  GOROOT="/usr/lib/golang"
  GOTMPDIR=""
  GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_arm"
  GCCGO="gccgo"
  GOARM="7"
  CC="gcc"
  CXX="g++"
  CGO_ENABLED="1"
  GOMOD=""
  CGO_CFLAGS="-g -O2"
  CGO_CPPFLAGS=""
  CGO_CXXFLAGS="-g -O2"
  CGO_FFLAGS="-g -O2"
  CGO_LDFLAGS="-g -O2"
  PKG_CONFIG="pkg-config"
  GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build242285369=/tmp/go-build -gno-record-gcc-switches"

  This issue is come only when I disable core 0 using a command below.
  please check "--cpuset-cpus=1-55" option.

  sudo docker run --privileged -d -i -t --cpuset-cpus=1-55 --mount
  type=bind,source="/home/dw83kim/mnt",destination="/mnt" --network host
  --name="ubuntu_core1" ubuntu:xenial-20200212

  
  This is what I have tested in the environment above.

  package main
  func main(){
      for i:=0; i<1000; i++ {
          println("Hello world")
      }
  }

  This is one of the error logs have faced sometimes not always.

  bash-3.2# go run test.go
  fatal error: schedule: holding locks
  panic during panic
  SIGILL: illegal instruction
  PC=0xc9ec4c m=3 sigcode=2

  goroutine 122 [runnable]:
  qemu: uncaught target signal 11 (Segmentation fault) - core dumped
  Segmentation fault (core dumped)
  bash-3.2#

  Please check it.
  Thanks in advance.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1868055/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1868055] Re: cannot run golang app with docker, version 17.09.1-ce, disabling core 0 and qemu-arm, version 2.7.
  2020-03-19  7:52 [Bug 1868055] [NEW] cannot run golang app with docker, version 17.09.1-ce, disabling core 0 and qemu-arm, version 2.7 Dongwhan Kim
  2020-03-19  8:11 ` [Bug 1868055] " Peter Maydell
@ 2020-03-19  8:13 ` Laurent Vivier
  2020-03-19  8:16 ` Peter Maydell
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Laurent Vivier @ 2020-03-19  8:13 UTC (permalink / raw)
  To: qemu-devel

Could you retest with latest version (4.2.0) of QEMU?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1868055

Title:
  cannot run golang app with docker, version 17.09.1-ce, disabling core
  0 and qemu-arm, version 2.7.

Status in QEMU:
  New

Bug description:
  Hello!
  I figure out that sometimes simple go application is not working.
  I am using docker + qemu-arm + go( for armv7l).

  These are version info below.

  root@VDBS1535:~# docker -v
  Docker version 17.09.1-ce, build 19e2cf6

  bash-3.2# qemu-arm --version
  qemu-arm version 2.7.0, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers

  $ go version
  go version go1.12.6 linux/arm
  $ go env
  GOARCH="arm"
  GOBIN=""
  GOCACHE="/home/quickbuild/.cache/go-build"
  GOEXE=""
  GOFLAGS=""
  GOHOSTARCH="arm"
  GOHOSTOS="linux"
  GOOS="linux"
  GOPATH="/home/quickbuild/go"
  GOPROXY=""
  GORACE=""
  GOROOT="/usr/lib/golang"
  GOTMPDIR=""
  GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_arm"
  GCCGO="gccgo"
  GOARM="7"
  CC="gcc"
  CXX="g++"
  CGO_ENABLED="1"
  GOMOD=""
  CGO_CFLAGS="-g -O2"
  CGO_CPPFLAGS=""
  CGO_CXXFLAGS="-g -O2"
  CGO_FFLAGS="-g -O2"
  CGO_LDFLAGS="-g -O2"
  PKG_CONFIG="pkg-config"
  GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build242285369=/tmp/go-build -gno-record-gcc-switches"

  This issue is come only when I disable core 0 using a command below.
  please check "--cpuset-cpus=1-55" option.

  sudo docker run --privileged -d -i -t --cpuset-cpus=1-55 --mount
  type=bind,source="/home/dw83kim/mnt",destination="/mnt" --network host
  --name="ubuntu_core1" ubuntu:xenial-20200212

  
  This is what I have tested in the environment above.

  package main
  func main(){
      for i:=0; i<1000; i++ {
          println("Hello world")
      }
  }

  This is one of the error logs have faced sometimes not always.

  bash-3.2# go run test.go
  fatal error: schedule: holding locks
  panic during panic
  SIGILL: illegal instruction
  PC=0xc9ec4c m=3 sigcode=2

  goroutine 122 [runnable]:
  qemu: uncaught target signal 11 (Segmentation fault) - core dumped
  Segmentation fault (core dumped)
  bash-3.2#

  Please check it.
  Thanks in advance.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1868055/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1868055] Re: cannot run golang app with docker, version 17.09.1-ce, disabling core 0 and qemu-arm, version 2.7.
  2020-03-19  7:52 [Bug 1868055] [NEW] cannot run golang app with docker, version 17.09.1-ce, disabling core 0 and qemu-arm, version 2.7 Dongwhan Kim
  2020-03-19  8:11 ` [Bug 1868055] " Peter Maydell
  2020-03-19  8:13 ` Laurent Vivier
@ 2020-03-19  8:16 ` Peter Maydell
  2020-04-01 11:28 ` Dongwhan Kim
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Peter Maydell @ 2020-03-19  8:16 UTC (permalink / raw)
  To: qemu-devel

LP:1696773 is the old bug that I think is probably the cause here,
though 2.7 is old enough it has a bunch of other linux-user race
condition bugs that we've since fixed.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1868055

Title:
  cannot run golang app with docker, version 17.09.1-ce, disabling core
  0 and qemu-arm, version 2.7.

Status in QEMU:
  New

Bug description:
  Hello!
  I figure out that sometimes simple go application is not working.
  I am using docker + qemu-arm + go( for armv7l).

  These are version info below.

  root@VDBS1535:~# docker -v
  Docker version 17.09.1-ce, build 19e2cf6

  bash-3.2# qemu-arm --version
  qemu-arm version 2.7.0, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers

  $ go version
  go version go1.12.6 linux/arm
  $ go env
  GOARCH="arm"
  GOBIN=""
  GOCACHE="/home/quickbuild/.cache/go-build"
  GOEXE=""
  GOFLAGS=""
  GOHOSTARCH="arm"
  GOHOSTOS="linux"
  GOOS="linux"
  GOPATH="/home/quickbuild/go"
  GOPROXY=""
  GORACE=""
  GOROOT="/usr/lib/golang"
  GOTMPDIR=""
  GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_arm"
  GCCGO="gccgo"
  GOARM="7"
  CC="gcc"
  CXX="g++"
  CGO_ENABLED="1"
  GOMOD=""
  CGO_CFLAGS="-g -O2"
  CGO_CPPFLAGS=""
  CGO_CXXFLAGS="-g -O2"
  CGO_FFLAGS="-g -O2"
  CGO_LDFLAGS="-g -O2"
  PKG_CONFIG="pkg-config"
  GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build242285369=/tmp/go-build -gno-record-gcc-switches"

  This issue is come only when I disable core 0 using a command below.
  please check "--cpuset-cpus=1-55" option.

  sudo docker run --privileged -d -i -t --cpuset-cpus=1-55 --mount
  type=bind,source="/home/dw83kim/mnt",destination="/mnt" --network host
  --name="ubuntu_core1" ubuntu:xenial-20200212

  
  This is what I have tested in the environment above.

  package main
  func main(){
      for i:=0; i<1000; i++ {
          println("Hello world")
      }
  }

  This is one of the error logs have faced sometimes not always.

  bash-3.2# go run test.go
  fatal error: schedule: holding locks
  panic during panic
  SIGILL: illegal instruction
  PC=0xc9ec4c m=3 sigcode=2

  goroutine 122 [runnable]:
  qemu: uncaught target signal 11 (Segmentation fault) - core dumped
  Segmentation fault (core dumped)
  bash-3.2#

  Please check it.
  Thanks in advance.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1868055/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1868055] Re: cannot run golang app with docker, version 17.09.1-ce, disabling core 0 and qemu-arm, version 2.7.
  2020-03-19  7:52 [Bug 1868055] [NEW] cannot run golang app with docker, version 17.09.1-ce, disabling core 0 and qemu-arm, version 2.7 Dongwhan Kim
                   ` (2 preceding siblings ...)
  2020-03-19  8:16 ` Peter Maydell
@ 2020-04-01 11:28 ` Dongwhan Kim
  2021-05-06  7:13 ` Thomas Huth
  2021-07-06  4:17 ` Launchpad Bug Tracker
  5 siblings, 0 replies; 7+ messages in thread
From: Dongwhan Kim @ 2020-04-01 11:28 UTC (permalink / raw)
  To: qemu-devel

Hello! Peter and Laurent,
Thanks for your kind & rapid reply.

It took long to merge the patch Peter mentioned.
After applying the patch the problem is gone but I found new issue.

When I had tried to test for the first time after making new docker
container it took much longer time.


bash-3.2# time go run test.go
Hello world

real	5m3.516s
user	5m48.696s
sys	13m32.600s
bash-3.2# time go run test.go
Hello world

real	0m1.784s
user	0m2.339s
sys	0m1.742s
bash-3.2# time go run test.go
Hello world

real	0m1.881s
user	0m2.302s
sys	0m1.926s
bash-3.2# pwd

I believe that 5 min for just printing "Hello world" is not your
expectation.

Is it also known issue?
Please check it.

Thanks.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1868055

Title:
  cannot run golang app with docker, version 17.09.1-ce, disabling core
  0 and qemu-arm, version 2.7.

Status in QEMU:
  New

Bug description:
  Hello!
  I figure out that sometimes simple go application is not working.
  I am using docker + qemu-arm + go( for armv7l).

  These are version info below.

  root@VDBS1535:~# docker -v
  Docker version 17.09.1-ce, build 19e2cf6

  bash-3.2# qemu-arm --version
  qemu-arm version 2.7.0, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers

  $ go version
  go version go1.12.6 linux/arm
  $ go env
  GOARCH="arm"
  GOBIN=""
  GOCACHE="/home/quickbuild/.cache/go-build"
  GOEXE=""
  GOFLAGS=""
  GOHOSTARCH="arm"
  GOHOSTOS="linux"
  GOOS="linux"
  GOPATH="/home/quickbuild/go"
  GOPROXY=""
  GORACE=""
  GOROOT="/usr/lib/golang"
  GOTMPDIR=""
  GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_arm"
  GCCGO="gccgo"
  GOARM="7"
  CC="gcc"
  CXX="g++"
  CGO_ENABLED="1"
  GOMOD=""
  CGO_CFLAGS="-g -O2"
  CGO_CPPFLAGS=""
  CGO_CXXFLAGS="-g -O2"
  CGO_FFLAGS="-g -O2"
  CGO_LDFLAGS="-g -O2"
  PKG_CONFIG="pkg-config"
  GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build242285369=/tmp/go-build -gno-record-gcc-switches"

  This issue is come only when I disable core 0 using a command below.
  please check "--cpuset-cpus=1-55" option.

  sudo docker run --privileged -d -i -t --cpuset-cpus=1-55 --mount
  type=bind,source="/home/dw83kim/mnt",destination="/mnt" --network host
  --name="ubuntu_core1" ubuntu:xenial-20200212

  
  This is what I have tested in the environment above.

  package main
  func main(){
      for i:=0; i<1000; i++ {
          println("Hello world")
      }
  }

  This is one of the error logs have faced sometimes not always.

  bash-3.2# go run test.go
  fatal error: schedule: holding locks
  panic during panic
  SIGILL: illegal instruction
  PC=0xc9ec4c m=3 sigcode=2

  goroutine 122 [runnable]:
  qemu: uncaught target signal 11 (Segmentation fault) - core dumped
  Segmentation fault (core dumped)
  bash-3.2#

  Please check it.
  Thanks in advance.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1868055/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1868055] Re: cannot run golang app with docker, version 17.09.1-ce, disabling core 0 and qemu-arm, version 2.7.
  2020-03-19  7:52 [Bug 1868055] [NEW] cannot run golang app with docker, version 17.09.1-ce, disabling core 0 and qemu-arm, version 2.7 Dongwhan Kim
                   ` (3 preceding siblings ...)
  2020-04-01 11:28 ` Dongwhan Kim
@ 2021-05-06  7:13 ` Thomas Huth
  2021-07-06  4:17 ` Launchpad Bug Tracker
  5 siblings, 0 replies; 7+ messages in thread
From: Thomas Huth @ 2021-05-06  7:13 UTC (permalink / raw)
  To: qemu-devel

The QEMU project is currently moving its bug tracking to another system.
For this we need to know which bugs are still valid and which could be
closed already. Thus we are setting older bugs to "Incomplete" now.

If you still think this bug report here is valid, then please switch
the state back to "New" within the next 60 days, otherwise this report
will be marked as "Expired". Or please mark it as "Fix Released" if
the problem has been solved with a newer version of QEMU already.

Thank you and sorry for the inconvenience.


** Changed in: qemu
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1868055

Title:
  cannot run golang app with docker, version 17.09.1-ce, disabling core
  0 and qemu-arm, version 2.7.

Status in QEMU:
  Incomplete

Bug description:
  Hello!
  I figure out that sometimes simple go application is not working.
  I am using docker + qemu-arm + go( for armv7l).

  These are version info below.

  root@VDBS1535:~# docker -v
  Docker version 17.09.1-ce, build 19e2cf6

  bash-3.2# qemu-arm --version
  qemu-arm version 2.7.0, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers

  $ go version
  go version go1.12.6 linux/arm
  $ go env
  GOARCH="arm"
  GOBIN=""
  GOCACHE="/home/quickbuild/.cache/go-build"
  GOEXE=""
  GOFLAGS=""
  GOHOSTARCH="arm"
  GOHOSTOS="linux"
  GOOS="linux"
  GOPATH="/home/quickbuild/go"
  GOPROXY=""
  GORACE=""
  GOROOT="/usr/lib/golang"
  GOTMPDIR=""
  GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_arm"
  GCCGO="gccgo"
  GOARM="7"
  CC="gcc"
  CXX="g++"
  CGO_ENABLED="1"
  GOMOD=""
  CGO_CFLAGS="-g -O2"
  CGO_CPPFLAGS=""
  CGO_CXXFLAGS="-g -O2"
  CGO_FFLAGS="-g -O2"
  CGO_LDFLAGS="-g -O2"
  PKG_CONFIG="pkg-config"
  GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build242285369=/tmp/go-build -gno-record-gcc-switches"

  This issue is come only when I disable core 0 using a command below.
  please check "--cpuset-cpus=1-55" option.

  sudo docker run --privileged -d -i -t --cpuset-cpus=1-55 --mount
  type=bind,source="/home/dw83kim/mnt",destination="/mnt" --network host
  --name="ubuntu_core1" ubuntu:xenial-20200212

  
  This is what I have tested in the environment above.

  package main
  func main(){
      for i:=0; i<1000; i++ {
          println("Hello world")
      }
  }

  This is one of the error logs have faced sometimes not always.

  bash-3.2# go run test.go
  fatal error: schedule: holding locks
  panic during panic
  SIGILL: illegal instruction
  PC=0xc9ec4c m=3 sigcode=2

  goroutine 122 [runnable]:
  qemu: uncaught target signal 11 (Segmentation fault) - core dumped
  Segmentation fault (core dumped)
  bash-3.2#

  Please check it.
  Thanks in advance.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1868055/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1868055] Re: cannot run golang app with docker, version 17.09.1-ce, disabling core 0 and qemu-arm, version 2.7.
  2020-03-19  7:52 [Bug 1868055] [NEW] cannot run golang app with docker, version 17.09.1-ce, disabling core 0 and qemu-arm, version 2.7 Dongwhan Kim
                   ` (4 preceding siblings ...)
  2021-05-06  7:13 ` Thomas Huth
@ 2021-07-06  4:17 ` Launchpad Bug Tracker
  5 siblings, 0 replies; 7+ messages in thread
From: Launchpad Bug Tracker @ 2021-07-06  4:17 UTC (permalink / raw)
  To: qemu-devel

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1868055

Title:
  cannot run golang app with docker, version 17.09.1-ce, disabling core
  0 and qemu-arm, version 2.7.

Status in QEMU:
  Expired

Bug description:
  Hello!
  I figure out that sometimes simple go application is not working.
  I am using docker + qemu-arm + go( for armv7l).

  These are version info below.

  root@VDBS1535:~# docker -v
  Docker version 17.09.1-ce, build 19e2cf6

  bash-3.2# qemu-arm --version
  qemu-arm version 2.7.0, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers

  $ go version
  go version go1.12.6 linux/arm
  $ go env
  GOARCH="arm"
  GOBIN=""
  GOCACHE="/home/quickbuild/.cache/go-build"
  GOEXE=""
  GOFLAGS=""
  GOHOSTARCH="arm"
  GOHOSTOS="linux"
  GOOS="linux"
  GOPATH="/home/quickbuild/go"
  GOPROXY=""
  GORACE=""
  GOROOT="/usr/lib/golang"
  GOTMPDIR=""
  GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_arm"
  GCCGO="gccgo"
  GOARM="7"
  CC="gcc"
  CXX="g++"
  CGO_ENABLED="1"
  GOMOD=""
  CGO_CFLAGS="-g -O2"
  CGO_CPPFLAGS=""
  CGO_CXXFLAGS="-g -O2"
  CGO_FFLAGS="-g -O2"
  CGO_LDFLAGS="-g -O2"
  PKG_CONFIG="pkg-config"
  GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build242285369=/tmp/go-build -gno-record-gcc-switches"

  This issue is come only when I disable core 0 using a command below.
  please check "--cpuset-cpus=1-55" option.

  sudo docker run --privileged -d -i -t --cpuset-cpus=1-55 --mount
  type=bind,source="/home/dw83kim/mnt",destination="/mnt" --network host
  --name="ubuntu_core1" ubuntu:xenial-20200212

  
  This is what I have tested in the environment above.

  package main
  func main(){
      for i:=0; i<1000; i++ {
          println("Hello world")
      }
  }

  This is one of the error logs have faced sometimes not always.

  bash-3.2# go run test.go
  fatal error: schedule: holding locks
  panic during panic
  SIGILL: illegal instruction
  PC=0xc9ec4c m=3 sigcode=2

  goroutine 122 [runnable]:
  qemu: uncaught target signal 11 (Segmentation fault) - core dumped
  Segmentation fault (core dumped)
  bash-3.2#

  Please check it.
  Thanks in advance.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1868055/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-07-06  4:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-19  7:52 [Bug 1868055] [NEW] cannot run golang app with docker, version 17.09.1-ce, disabling core 0 and qemu-arm, version 2.7 Dongwhan Kim
2020-03-19  8:11 ` [Bug 1868055] " Peter Maydell
2020-03-19  8:13 ` Laurent Vivier
2020-03-19  8:16 ` Peter Maydell
2020-04-01 11:28 ` Dongwhan Kim
2021-05-06  7:13 ` Thomas Huth
2021-07-06  4:17 ` Launchpad Bug Tracker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.