summary refs log tree commit diff stats
path: root/gitlab/issues/target_missing/host_missing/accel_missing/765.toml
blob: acb3e875377d01aaa7b89a8038a28ed2751f487f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
id = 765
title = "Issue with Docker on M1 Mac"
state = "closed"
created_at = "2021-12-09T23:28:17.981Z"
closed_at = "2021-12-10T07:15:51.335Z"
labels = []
url = "https://gitlab.com/qemu-project/qemu/-/issues/765"
host-os = "MacOS Monterey 12.0.1"
host-arch = "Apple M1 Pro"
qemu-version = "I'm using qemu through Docker Desktop for Mac"
guest-os = "linux/debian"
guest-arch = "amd64"
description = """I'm trying to run a docker container using the following command:

```
docker run  --platform=linux/amd64 --rm uphold/litecoin-core \\     
  -printtoconsole \\
  -regtest=1 \\
  -rpcallowip=172.17.0.0/16 \\
  -rpcauth='foo:1e72f95158becf7170f3bac8d9224$957a46166672d61d3218c167a223ed5290389e9990cc57397d24c979b4853f8e'
```

It should run the docker container, instead it throws the following error:
```
/entrypoint.sh: assuming arguments for litecoind
/entrypoint.sh: setting data directory to /home/litecoin/.litecoin
runtime: failed to create new OS thread (have 2 already; errno=22)
fatal error: newosproc

runtime stack:
runtime.throw(0x4cb21f, 0x9)
        /usr/local/go/src/runtime/panic.go:566 +0x95
runtime.newosproc(0xc420028000, 0xc420037fc0)
        /usr/local/go/src/runtime/os_linux.go:160 +0x194
runtime.newm(0x4d6db8, 0x0)
        /usr/local/go/src/runtime/proc.go:1572 +0x132
runtime.main.func1()
        /usr/local/go/src/runtime/proc.go:126 +0x36
runtime.systemstack(0x53ae00)
        /usr/local/go/src/runtime/asm_amd64.s:298 +0x79
runtime.mstart()
        /usr/local/go/src/runtime/proc.go:1079

goroutine 1 [running]:
runtime.systemstack_switch()
        /usr/local/go/src/runtime/asm_amd64.s:252 fp=0xc420022768 sp=0xc420022760
runtime.main()
        /usr/local/go/src/runtime/proc.go:127 +0x6c fp=0xc4200227c0 sp=0xc420022768
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc4200227c8 sp=0xc4200227c0
```"""
reproduce = """1. Run the following in a terminal window on a Mac with an M1 chip:
```
docker run  --platform=linux/amd64 --rm uphold/litecoin-core \\     
  -printtoconsole \\
  -regtest=1 \\
  -rpcallowip=172.17.0.0/16 \\
  -rpcauth='foo:1e72f95158becf7170f3bac8d9224$957a46166672d61d3218c167a223ed5290389e9990cc57397d24c979b4853f8e'
```"""
additional = """I increased the limits using ``ulimit`` as follows:

```
clemens@M1-MacBook-Pro ~ % ulimit -a
-t: cpu time (seconds)              unlimited
-f: file size (blocks)              unlimited
-d: data seg size (kbytes)          unlimited
-s: stack size (kbytes)             8176
-c: core file size (blocks)         0
-v: address space (kbytes)          unlimited
-l: locked-in-memory size (kbytes)  unlimited
-u: processes                       5333
-n: file descriptors                256
```"""