Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic with .so files #522

Open
ruauka opened this issue Oct 1, 2024 · 0 comments
Open

Panic with .so files #522

ruauka opened this issue Oct 1, 2024 · 0 comments

Comments

@ruauka
Copy link

ruauka commented Oct 1, 2024

Hello.
I get a panic when i call my app from a compiled .so file on linux. Panic even with empty json.
OS - Linux (corp build), let's say - CentOS.
Go - 1.22.7
CMD - go build -buildmode=c-shared -o execute.so main.go

failed call user function, error in function: runtime error: index out of range [576456392026449311] with length 23278. File: /app/vendor/github.com/goccy/go-json/internal/decoder/compile_norace.go:19

The goal is to execute the Go script in the Python environment.
I have a go-logic and CGO script to call this logic. I go get this logic in this script as a library and compile with CMD above in execute.so. This execute.so i call from Python script using ctypes library.

The problem is relevant only on Linux, on MAC(amd64) all works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant