Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Crashed when GOMAXPROCS > 1 #20

@iapyeh

Description

@iapyeh

I use the go-python3 to hook a snippet of python to the fasthttp package
(github.com/valyala/fasthttp)
It works like a charm if GOMAXPROCS==1 (with 10K requests/seconds)
But it crashed if GOMAXPROCS > 1 (such as 2, 4,...)
I have tried to acquire/release GIL, it crashes soon (not even 10 requests)
I have tried to use sync.Mutex.Lock/Unlock. It crashed too after 200 requests.
(Error: fatal error: unexpected signal during runtime execution)

Do you have any suggestion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions