Skip to content

runtime: crash when C library resets sigaltstack/sigaction settings #7227

@niemeyer

Description

@niemeyer
Someone reported the following crash while using the qml package:

  fatal error: runtime: stack split during syscall

  runtime stack:
  runtime.throw(0x4299eac)
      /Users/quarnster/code/3rdparty/go/src/pkg/runtime/panic.c:462 +0x69
  runtime.newstack()
      /Users/quarnster/code/3rdparty/go/src/pkg/runtime/stack.c:261 +0x6cb
  runtime.morestack()
      /Users/quarnster/code/3rdparty/go/src/pkg/runtime/asm_amd64.s:225 +0x61

  goroutine 4 [stack split]:
  syscall.Syscall6(0x7, 0xf68, 0xc2100001b0, 0x0, 0xc21005f360, ...)
      /.../syscall/asm_darwin_amd64.s:41 +0x5 fp=0x5ffc078
  syscall.wait4(0xf68, 0xc2100001b0, 0x0, 0xc21005f360, 0x40450a2, ...)
      /.../syscall/zsyscall_darwin_amd64.go:32 +0x7d fp=0x5ffc0d8
  syscall.Wait4(0xf68, 0x5ffc15c, 0x0, 0xc21005f360, 0xc21000a260, ...)
      /.../syscall/syscall_bsd.go:126 +0x6e fp=0x5ffc120
  os.(*Process).wait(0xc21000a520, 0x0, 0x0, 0x0)

  (...)

The full stack trace is available in the issue at:

  go-qml/qml#26

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeOS-DarwinSuggestedIssues that may be good for new contributors looking for work to do.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions