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

Segmentation Fault #12

Open
MufidJamaluddin opened this issue Dec 25, 2023 · 0 comments
Open

Segmentation Fault #12

MufidJamaluddin opened this issue Dec 25, 2023 · 0 comments

Comments

@MufidJamaluddin
Copy link

MufidJamaluddin commented Dec 25, 2023

Segmentation fault when encode text data (BERT Embedding) in Web Server Application using Go Fiber.

Scenario:

  1. Encode Server Error (Intermittent)
  2. Try Encode Again!

Temporary Solution:

  • Reboot & Restart Server

 ┌───────────────────────────────────────────────────┐
 │                   Fiber v2.48.0                   │
 │               http://127.0.0.1:8080               │
 │       (bound on host 0.0.0.0 and port 8080)       │
 │                                                   │
 │ Handlers ............ 60  Processes ........... 1 │
 │ Prefork ....... Disabled  PID ................. 1 │
 └───────────────────────────────────────────────────┘

1  200  -  GET      /
1  200  -  GET      /assets/index-bc26e55c.js
1  200  -  GET      /assets/index-d9ef7090.css
1  200  -  GET      /src/assets/js/script.min.js
1  200  -  GET      /favicon.ico
1  200  -  GET      /favicon.ico
SIGSEGV: segmentation violation
PC=0x7f8c33bf7524 m=0 sigcode=1
signal arrived during cgo execution

goroutine 10 [syscall, 1 minutes]:
runtime.cgocall(0xf804a0, 0xc000166a90)
        /usr/local/go/src/runtime/cgocall.go:157 +0x4b fp=0xc000166a68 sp=0xc000166a30 pc=0x4b440b
github.com/sugarme/gotch/libtch._Cfunc_atg_divide(0x7f8bd800d310, 0x7f8bd800b860, 0x7f8bd800b420)
        _cgo_gotypes.go:16083 +0x45 fp=0xc000166a90 sp=0xc000166a68 pc=0xa74cc5
github.com/sugarme/gotch/ts.(*Tensor).Divide.AtgDivide.func1(0x0?, 0x7f8bd800d310?, 0x0?)
        /app/go/pkg/mod/github.com/sugarme/[email protected]/libtch/c-generated.go:4545 +0x87 fp=0xc000166ad8 sp=0xc000166a90 pc=0xbef247
github.com/sugarme/gotch/libtch.AtgDivide(...)
        /app/go/pkg/mod/github.com/sugarme/[email protected]/libtch/c-generated.go:4545
github.com/sugarme/gotch/ts.(*Tensor).Divide(0xc000599110, 0xc000599170, 0x1)
        /app/go/pkg/mod/github.com/sugarme/[email protected]/ts/tensor-generated.go:16412 +0xbe fp=0xc000166b70 sp=0xc000166ad8 pc=0xbef05e
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