eaigner / clam Goto Github PK
View Code? Open in Web Editor NEWclamav bindings for Go
clamav bindings for Go
Hey!
I've utilized these bindings in my app recently, but about 50% of the time it fails with the following error. I'm not sure if this is a problem in the code or the way clamav was setup/built.
My googling says it's an error thrown in C from either wrong input params, or a signal from somewhere (?) hitting the process.
Any insights you might be able to add?
OS: Alpine 3.7
Go: 1.9.3
Arch: linux/amd64
fatal: morestack on g0
SIGTRAP: trace trap
PC=0x456a12 m=5 sigcode=128
signal arrived during cgo execution
goroutine 24 [syscall, locked to thread]:
runtime.cgocall(0x62c890, 0xc4200efab0, 0x6cc895)
/usr/local/go/src/runtime/cgocall.go:132 +0xe4 fp=0xc4200efa70 sp=0xc4200efa30 pc=0x403324
github.com/eaigner/clam._Cfunc_cl_load(0x25b3b40, 0x25bcd60, 0xc420115758, 0x200a, 0x0)
github.com/eaigner/clam/_obj/_cgo_gotypes.go:125 +0x4d fp=0xc4200efab0 sp=0xc4200efa70 pc=0x61ddfd
github.com/eaigner/clam.(*clEngine).Compile.func1(0x25b3b40, 0x25bcd60, 0xc420115758, 0x200a, 0xc4200efbc8)
/go/src/github.com/eaigner/clam/engine.go:85 +0x7c fp=0xc4200efae8 sp=0xc4200efab0 pc=0x61ec8c
github.com/eaigner/clam.(*clEngine).Compile(0xc42039d980, 0x6c1dc3, 0x3, 0x0, 0x0)
/go/src/github.com/eaigner/clam/engine.go:85 +0x139 fp=0xc4200efb90 sp=0xc4200efae8 pc=0x61e3c9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.