chromaprint icon indicating copy to clipboard operation
chromaprint copied to clipboard

Running tests Chromaprint 1.6.0 crashes

Open brad0 opened this issue 2 months ago • 0 comments

Upgrading from 1.5.1 to 1.6.0 on OpenBSD (aarch64) I noticed when running the test suite that Chromaprint now crashes.

FFmpeg 6.1.3

arm64$ ./all_tests
[==========] Running 98 tests from 25 test suites.
[----------] Global test environment set-up.
[----------] 14 tests from API
[ RUN      ] API.TestFp
Segmentation fault (core dumped)
arm64$ egdb ./all_tests
GNU gdb (GDB) 16.3
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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 "aarch64-unknown-openbsd7.8".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./all_tests...
(No debugging symbols found in ./all_tests)
(gdb) run
Starting program: /home/brad/ports/pobj/chromaprint-1.6.0/build-aarch64/tests/all_tests
[==========] Running 98 tests from 25 test suites.
[----------] Global test environment set-up.
[----------] 14 tests from API
[ RUN      ] API.TestFp

Program received signal SIGSEGV, Segmentation fault.
0x0000001371813af0 in ff_tx_rdft_init_float_c () from /usr/local/lib/libavutil.so.16.0
(gdb) bt full
#0  0x0000001371813af0 in ff_tx_rdft_init_float_c () from /usr/local/lib/libavutil.so.16.0
No symbol table info available.
#1  0x00000013717ff91c [PAC] in ff_tx_init_subtx () from /usr/local/lib/libavutil.so.16.0
No symbol table info available.
#2  0x00000013717ffbb8 [PAC] in av_tx_init () from /usr/local/lib/libavutil.so.16.0
No symbol table info available.
#3  0x000000139e96c75c [PAC] in chromaprint::FFTLib::FFTLib(unsigned long) () from /home/brad/ports/pobj/chromaprint-1.6.0/build-aarch64/src/libchromaprint.so.3.1
No symbol table info available.
#4  0x000000139e96fc9c [PAC] in chromaprint::FFT::FFT(unsigned long, unsigned long, chromaprint::FFTFrameConsumer*) () from /home/brad/ports/pobj/chromaprint-1.6.0/build-aarch64/src/libchromaprint.so.3.1
No symbol table info available.
#5  0x000000139e9701a8 [PAC] in chromaprint::Fingerprinter::Fingerprinter(chromaprint::FingerprinterConfiguration*) () from /home/brad/ports/pobj/chromaprint-1.6.0/build-aarch64/src/libchromaprint.so.3.1
No symbol table info available.
#6  0x000000139e977a50 [PAC] in chromaprint_new () from /home/brad/ports/pobj/chromaprint-1.6.0/build-aarch64/src/libchromaprint.so.3.1
No symbol table info available.
#7  0x0000000eba7c24c4 [PAC] in chromaprint::API_TestFp_Test::TestBody() ()
No symbol table info available.
#8  0x00000012efe3d038 [PAC] in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) () from /home/brad/ports/pobj/chromaprint-1.6.0/build-aarch64/lib/libgtest.so.0.0
No symbol table info available.
#9  0x00000012efe1ec20 [PAC] in testing::Test::Run() () from /home/brad/ports/pobj/chromaprint-1.6.0/build-aarch64/lib/libgtest.so.0.0
No symbol table info available.
#10 0x00000012efe1fcc8 [PAC] in testing::TestInfo::Run() () from /home/brad/ports/pobj/chromaprint-1.6.0/build-aarch64/lib/libgtest.so.0.0
No symbol table info available.
#11 0x00000012efe20c74 [PAC] in testing::TestSuite::Run() () from /home/brad/ports/pobj/chromaprint-1.6.0/build-aarch64/lib/libgtest.so.0.0
No symbol table info available.
#12 0x00000012efe32c64 [PAC] in testing::internal::UnitTestImpl::RunAllTests() () from /home/brad/ports/pobj/chromaprint-1.6.0/build-aarch64/lib/libgtest.so.0.0
No symbol table info available.
#13 0x00000012efe3df44 [PAC] in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) () from /home/brad/ports/pobj/chromaprint-1.6.0/build-aarch64/lib/libgtest.so.0.0
No symbol table info available.
#14 0x00000012efe327fc [PAC] in testing::UnitTest::Run() () from /home/brad/ports/pobj/chromaprint-1.6.0/build-aarch64/lib/libgtest.so.0.0
No symbol table info available.
#15 0x0000000eba7c2414 [PAC] in main ()
No symbol table info available.

As I suspected, if I pull down a copy of Chromaprint with the commit before this one, https://github.com/acoustid/chromaprint/commit/b801357e22803bfc55d5f9c53d97d6f07bfe1c35 , then it runs and passes all of the tests.

brad0 avatar Oct 25 '25 20:10 brad0