Skip to content

runtime/cgo: pthread_create failed: Resource temporarily unavailable on freebsd/386, netbsd/arm #5233

@mikioh

Description

@mikioh
uname: FreeBSD 9.1-RELEASE-p2

gcc -v:
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]

hg id: 8633d8460c82 tip


just TestCgoSignalDeadlock fails,

--- FAIL: TestCgoSignalDeadlock (1.90 seconds)
    crash_cgo_test.go:21: expected "OK\n", but got "runtime/cgo: (snip)

then run cgoSignalDeadlockSource in crash_cgo_test.go and got a result below:

./cgotest
runtime/cgo: pthread_create failed: Resource temporarily unavailable
SIGABRT: abort
PC=0x881ae5fb


goroutine 1 [sleep]:
time.Sleep(0xf4240, 0x0)
    /home/mikioh/go/src/pkg/runtime/ztime_freebsd_386.c:19 +0x37
main.main()
    command-line-arguments/_obj/xxx.cgo1.go:50 +0xdf

goroutine 2 [syscall]:

goroutine 4 [running]:
main.func·003()
    command-line-arguments/_obj/xxx.cgo1.go:28 +0x91
created by main.main
    command-line-arguments/_obj/xxx.cgo1.go:39 +0x86

goroutine 6 [select (no cases)]:
main.func·004()
    command-line-arguments/_obj/xxx.cgo1.go:44 +0x1e
created by main.main
    command-line-arguments/_obj/xxx.cgo1.go:45 +0xbb

(snip)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions