cat backtrace3.log GNU gdb (GDB) 14.1.0.56.d739d4fd457-alt1 (ALT Sisyphus) Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-alt-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/sonic... Reading symbols from /usr/lib/debug/usr/bin/sonic.debug... [New LWP 1941] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `sonic -s 2.0 file.wav file2.wav'. Program terminated with signal SIGSEGV, Segmentation fault. #0 musable (mem=0x55b51032bc30) at malloc.c:5236 5236 else if (inuse (p)) Thread 1 (Thread 0x7f1ae0dbf740 (LWP 1941)): #0 musable (mem=0x55b51032bc30) at malloc.c:5236 p = 0x55b51032bc20 p = #1 __GI___libc_realloc (oldmem=0x55b51032bc30, bytes=35476) at malloc.c:3433 ar_ptr = nb = newp = oldp = 0x55b51032bc20 usable = oldsize = __PRETTY_FUNCTION__ = "__libc_realloc" #2 0x000055b4fd83aae9 in sonicRealloc (p=0x55b51032bc30, oldNum=3566, newNum=8869, size=4) at sonic.c:129 No locals. #3 0x000055b4fd83b384 in enlargeInputBufferIfNeeded (stream=0x55b510326af0, numSamples=3520) at sonic.c:486 inputBufferSize = 3566 #4 0x000055b4fd83bb95 in sonicFlushStream (stream=0x55b510326af0) at sonic.c:700 maxRequired = 1356 remainingSamples = 808 speed = 2 rate = 1 expectedOutputSamples = 404 #5 0x000055b4fd83a4d0 in runSonic (inFileName=0x7fff6086b3b1 "file.wav", outFileName=0x7fff6086b3ba "file2.wav", speed=2, pitch=1, rate=1, volume=1, outputSampleRate=0, emulateChordPitch=0, quality=0, computeSpectrogram=0, numRows=0, numCols=0) at main.c:57 inFile = 0x55b510324890 outFile = 0x55b510325ab0 stream = 0x55b510326af0 inBuffer = {8, 20, 14, 2, 15, 9, 19, 7, 12, 6, 18, 8, -3, 7, 9, 7, 11, -3, 16, -5, 13, 11, 9, -2, 19, 10, 33, 2, 17, -3, -6, -11, 14, -10, 3, -12, 7, -6, 27, 0, 3, -7, 27, -4, 14, -4, 15, 10, 33, -3, 8, -7, 7, 2, 7, -4, 30, -6, 14, 8, 11, -7, 25, 0, 20, -12, 16, -8, -4, -4, 11, -3, 14, 2, -7, -14, -7, 0, -5, -13, 0, -6, 3, -9, -1, -22, -5, -23, -7, -29, -1, -32, -4, -20, 1, -10, 2, -18, 2, -23, -3, -16, 18, -22, 10, -17, 5, -27, 8, -28, -5, -18, -6, -24, -22, -22, 0, -21, -3, -9, 3, -23, -7, -21, -3, -21, 1, -16, 4, -23, 3, -26, 9, -11, -2, -16, 14, -5, 1, -10, 19, -20, 12, -2, 15, -19, 9, -23, 3, -14, 5, -11, 7, -4, -9, -18, 3, 0, 4, -8, 16, -3, -13, -15, 1, -14, 6, -7, 12, 5, 17, -5, 4, 3, 10, -24, 15, -6, 7, -13, -2, -3, 7, -10, -11, -7, 8, -18, 6, -6, -7, -18, 3, -17, 0, -21, -19, -29, -26, -11...} outBuffer = {4, 0, -4, 4, 2, 2, 3, 0, 6, 4, 23, 7, 14, 6, 8, 12, 8, 15, 9, 6, 11, 1, 10, 10, 10, 0, 4, 14, 15, 7, 18, 12, 11, 0, 15, 7, 7, 3, 3, 5, 5, -3, -6, 0, 2, 0, 1, -2, 9, -4, 6, -1, -2, 4, 4, -6, 9, -1, -3, -6, -1, -5, -10, -10, -5, -5, -6, -7, 3, -12, 3, -10, -4, -7, -4, 1, -5, -5, -1, -9, -6, -7, -3, -3, -3, -3, -3, -6, -8, -4, -7, -9, -8, -5, -3, -10, -17, -10, -7, -9, -15, -12, -12, -10, -13, -6, -19, -17, -19, -16, -10, -13, -7, -11, -17, -7, -13, -13, -7, -15, -7, -9, -5, -13, -15, -17, -13, -8, -15, -10, -17, -7, -14, -10, -15, -11, -10, -4, -14, -14, -13, -5, -8, -2, -13, -6, -11, -11, -11, -10, -17, -15, -19, -12, -20, -20, -21, -12, -16, -19, -19, -19, -20, -19, -12, -12, -16, -8, -21, -15, -10, -11, -17, -17, -18, -15, -16, -15, -14, -15, -11, -12, -20, -16, -13, -12, -8, -4, -9, -13, -12, -9, -10, -14, -15, -15, -14, -16, -11, -14...} sampleRate = 44100 numChannels = 2 samplesRead = 0 samplesWritten = 0 #6 0x000055b4fd83aa8a in main (argc=5, argv=0x7fff6086a238) at main.c:184 inFileName = 0x7fff6086b3b1 "file.wav" outFileName = 0x7fff6086b3ba "file2.wav" speed = 2 pitch = 1 rate = 1 volume = 1 outputSampleRate = 0 emulateChordPitch = 0 quality = 0 xArg = 3 computeSpectrogram = 0 numRows = 0 numCols = 0