-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Segmentation fault when encode text data (BERT Embedding) in Web Server Application using Go Fiber.
Scenario:
- Encode Server Error (Intermittent)
- 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/gotch@v0.9.1/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/gotch@v0.9.1/libtch/c-generated.go:4545
github.com/sugarme/gotch/ts.(*Tensor).Divide(0xc000599110, 0xc000599170, 0x1)
/app/go/pkg/mod/github.com/sugarme/gotch@v0.9.1/ts/tensor-generated.go:16412 +0xbe fp=0xc000166b70 sp=0xc000166ad8 pc=0xbef05e
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels