Menu

#333 Assertion fail in rate.c:303

closed-fixed
nobody
bug (6)
5
2020-08-08
2020-08-08
zhouan
No

System info

Ubuntu x86_64, gcc (Ubuntu 5.5.0-12ubuntu1), sox (master https://sourceforge.net/p/sox/code/ci/1d48e533e1c6de212ad1520ed6481b222727e7a6/)

I want to test on the latest commit, but it seems to have linker error, but I think this assertion fail is still present in the latest commit:

[ 93%] Linking C executable sox
CMakeFiles/sox.dir/sox.o: In function `process':
/home/seviezhou/sox/src/sox.c:1840: undefined reference to `get_termwidth'
CMakeFiles/sox.dir/sox.o: In function `setsig':
/home/seviezhou/sox/src/sox.c:1607: undefined reference to `get_termwidth'
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
src/CMakeFiles/sox.dir/build.make:86: recipe for target 'src/sox' failed
make[2]: *** [src/sox] Error 1
CMakeFiles/Makefile2:243: recipe for target 'src/CMakeFiles/sox.dir/all' failed
make[1]: *** [src/CMakeFiles/sox.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Command line

./build/src/sox ./assert-fail-rate_init-rate-303 /tmp/sox.flac remix - norm -3 highpass 22 gain -3 rate 48k norm -3 dither

Output

sox: /home/seviezhou/sox/src/rate.c:303: void rate_init(rate_t *, rate_shared_t *, double, double, double, double, double, rolloff_t, sox_bool, sox_bool, int, int, sox_bool): Assertion `factor > 0' failed.
Aborted
1 Attachments

Discussion

  • Mans Rullgard

    Mans Rullgard - 2020-08-08
    • status: open --> closed-fixed
     
  • Mans Rullgard

    Mans Rullgard - 2020-08-08

    Fixed the crash. The cmake build is broken. Use the autoconf one.

     
  • zhouan

    zhouan - 2020-08-08

    May I ask which commit fixes this crash?

     
  • Mans Rullgard

    Mans Rullgard - 2020-08-08

    I fixed it just now.

     

Log in to post a comment.

Monday.com Logo