krig / go-sox

libsox bindings for go
MIT License
134 stars 26 forks source link

segmentation violation after received incorrect file #12

Open akaroot opened 6 years ago

akaroot commented 6 years ago

Hi! I got an error fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x7ff4e39978c0 pc=0x7ff4e39978c0] when I gave go-sox libarry non-audio file. When I send incorrect file for the fist time it returns "formats: no handler for file extension `jpg'" but for the second time it's crashed with error https://gist.github.com/akaroot/bd040d722bd2fd2bb5e42c80bb35243c#file-error-log

After fisrt incorrect file I can send audio files and averythind works, but on second image file I always got crashed.

Code example: https://gist.github.com/akaroot/bd040d722bd2fd2bb5e42c80bb35243c#file-main-go GO version: 1.9.4, 1.10 OS: Ubuntu 16.04 x64