Bug#944017: libsoxr: autopkgtest regression: segmentation fault
Hi Bernhard! On 12/12/19 2:42 AM, Bernhard Übelacker wrote: > In the end it runs: > > dd if=/dev/urandom count=1000 | /tmp/tmp.bQI47Dtfhv/4-split-channels 7 > 6 2 2 3 > (...) > Thread 1 received signal SIGTRAP, Trace/breakpoint trap. > 0x0485210a in lsx_rint16_clip_dither_f (seed0=0x4c51500, n=6735, > src=0x4ca4270, dest0=0x4c241a0) at ./src/rint-clip.h:67 > 67 DO_16; > (gdb) bt > #0 0x0485210a in lsx_rint16_clip_dither_f (seed0=0x4c51500, n=6735, > src=0x4ca4270, dest0=0x4c241a0) at ./src/rint-clip.h:67 > #1 _soxr_interleave_f (data_type=, dest0=0x4c241a0, > src=, n=6735, ch=1, seed=0x4c51500) at ./src/data-io.c:213 > #2 0x0484d60f in soxr_output_1ch (p=p@entry=0x4c513e0, i=0, > dest=dest@entry=0x4c24100, len=, len@entry=6923, > separated=separated@entry=true) at ./src/soxr.c:664 > #3 0x0484d8cc in soxr_process._omp_fn.0 () at ./src/soxr.c:786 > #4 0x04bcaa42 in GOMP_parallel (fn=0x484d830 > , data=0x1fff000800, num_threads=4, flags=0) at > ../../../src/libgomp/parallel.c:171 > #5 0x0484ef78 in soxr_process (p=0x4c513e0, in=0x4c24150, > ilen0=, idone0=0x0, out=0x4c24100, olen=6923, > odone0=0x1fff0008a8) at ./src/soxr.c:781 > #6 0x00109fd8 in main (n=0, arg=0x1fff000b28) at > 4-split-channels.c:142 Thanks. This helps. I can reproduce the issue now. I'm looking into this now. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Bug#944017: libsoxr: autopkgtest regression: segmentation fault
Hello Adrian, hello Paul, I could reproduce the issue in a minimal revertable Unstable qemu VM with this command: /usr/bin/autopkgtest libsoxr -- null As far as I see the test is called this way: src/debian/tests/inst-check src/inst-check src/inst-check-soxr $gen# line 43, generates test data $tmp/3-options-input-fn # line 43, run test In the end it runs: dd if=/dev/urandom count=1000 | /tmp/tmp.bQI47Dtfhv/4-split-channels 7 6 2 2 3 Unfortunately the "inst-check" runs just in the autopkgtest, but not at build time. All debugging attempts led me to the location below. And the lines soxr.c:664 and soxr.c:786 point to the fix-unaligned-access.patch introduced in bug #942746. When a packages are installed without this patch the autopkgtest gets not segfault. Kind regards, Bernhard Thread 1 received signal SIGTRAP, Trace/breakpoint trap. 0x0485210a in lsx_rint16_clip_dither_f (seed0=0x4c51500, n=6735, src=0x4ca4270, dest0=0x4c241a0) at ./src/rint-clip.h:67 67 DO_16; (gdb) bt #0 0x0485210a in lsx_rint16_clip_dither_f (seed0=0x4c51500, n=6735, src=0x4ca4270, dest0=0x4c241a0) at ./src/rint-clip.h:67 #1 _soxr_interleave_f (data_type=, dest0=0x4c241a0, src=, n=6735, ch=1, seed=0x4c51500) at ./src/data-io.c:213 #2 0x0484d60f in soxr_output_1ch (p=p@entry=0x4c513e0, i=0, dest=dest@entry=0x4c24100, len=, len@entry=6923, separated=separated@entry=true) at ./src/soxr.c:664 #3 0x0484d8cc in soxr_process._omp_fn.0 () at ./src/soxr.c:786 #4 0x04bcaa42 in GOMP_parallel (fn=0x484d830 , data=0x1fff000800, num_threads=4, flags=0) at ../../../src/libgomp/parallel.c:171 #5 0x0484ef78 in soxr_process (p=0x4c513e0, in=0x4c24150, ilen0=, idone0=0x0, out=0x4c24100, olen=6923, odone0=0x1fff0008a8) at ./src/soxr.c:781 #6 0x00109fd8 in main (n=0, arg=0x1fff000b28) at 4-split-channels.c:142 # Unstable amd64 qemu VM 2019-12-12 apt update apt dist-upgrade apt install systemd-coredump mc autopkgtest quilt gdb rr valgrind libgomp1-dbgsym libsoxr0-dbgsym apt build-dep libsoxr ## root@debian:~# autopkgtest libsoxr -- null ... /tmp/tmp.LScD5ODKNY/3-options-input-fn no error; 0 clips; I/O: no error (cr32s) Segmentation fault (core dumped) autopkgtest [00:22:20]: test inst-check: ---] autopkgtest [00:22:21]: test inst-check: - - - - - - - - - - results - - - - - - - - - - inst-check FAIL non-zero exit status 139 autopkgtest [00:22:21]: test inst-check: - - - - - - - - - - stderr - - - - - - - - - - Segmentation fault (core dumped) ... root@debian:~# coredumpctl list TIMEPID UID GID SIG COREFILE EXE Thu 2019-12-12 00:22:20 CET2744 0 0 11 present /tmp/tmp.LScD5ODKNY/4-split-channels root@debian:~# journalctl --no-pager Dez 12 00:22:20 debian kernel: 4-split-channel[2745]: segfault at 0 ip 7f17b31ec10a sp 7f17b2e79c50 error 6 in libsoxr.so.0.1.2[7f17b31e7000+28000] Dez 12 00:22:20 debian kernel: Code: d0 48 89 94 24 d0 00 00 00 49 c1 e8 06 41 83 e0 1f 44 29 c7 f2 0f 2a c7 f2 0f 59 c1 f2 0f 58 c2 f2 0f 11 44 24 08 dd 44 24 08 <41> df 1e 48 89 c7 66 0f ef c0 66 0f ef d2 49 89 d0 48 c1 ef 09 49 Dez 12 00:22:20 debian systemd[1]: Created slice system-systemd\x2dcoredump.slice. Dez 12 00:22:20 debian systemd[1]: Started Process Core Dump (PID 2756/UID 0). Dez 12 00:22:20 debian su[2651]: pam_unix(su:session): session closed for user root Dez 12 00:22:20 debian systemd-coredump[2757]: Process 2744 (4-split-channel) of user 0 dumped core. Stack trace of thread 2745: #0 0x7f17b31ec10a n/a (libsoxr.so.0 + 0x910a) #1 0x7f17b31e760f n/a (libsoxr.so.0 + 0x460f) #2 0x7f17b31e78cc n/a (libsoxr.so.0 + 0x48cc) #3 0x7f17b2ec0946 n/a (libgomp.so.1 + 0x1a946) #4 0x7f17b2e88fb7 start_thread (libpthread.so.0 + 0x8fb7) #5 0x7f17b311d2df __clone (libc.so.6 + 0xfa2df) Stack trace of thread 2753: #0 0x7f17b2ec32aa n/a (libgomp.so.1 + 0x1d2aa) #1 0x7f17b2ec0952 n/a (libgomp.so.1 + 0x1a952) #2 0x7f17b2e88fb7 start_thread (libpthread.so.0 + 0x8fb7) #3 0x7f17b311d2df __clone (libc.so.6 + 0xfa2df)
Bug#944017: libsoxr: autopkgtest regression: segmentation fault
Package: src:libsoxr Followup-For: Bug #944017 Hi! I have tried reproducing the crash but I was unable to. Are there specific steps that I need to go through to achieve that? It seems that the examples 2-stream, 3-options-input-fn and 4-split-channels all require some sort of input as otherwise they just hang and wait for input forever. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Bug#944017: libsoxr: autopkgtest regression: segmentation fault
Source: libsoxr Version: 0.1.3-2 Severity: serious X-Debbugs-CC: debian...@lists.debian.org User: debian...@lists.debian.org Usertags: regression Dear maintainers, With a recent upload of libsoxr the autopkgtest of libsoxr fails in testing when that autopkgtest is run with the binary packages of libsoxr from unstable. It passes when run with only packages from testing. In tabular form: passfail libsoxrfrom testing0.1.3-2 all others from testingfrom testing I copied some of the output at the bottom of this report. Currently this regression is blocking the migration to testing [1]. Can you please investigate the situation and fix it? More information about this bug and the reason for filing it can be found on https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation Paul [1] https://qa.debian.org/excuses.php?package=libsoxr https://ci.debian.net/data/autopkgtest/testing/amd64/libs/libsoxr/3316475/log.gz autopkgtest [06:56:28]: test inst-check: [--- Examples in /usr/share/doc/libsoxr-dev/examples; using pkg-config: cc -o /tmp/tmp.8rTY2fUTZY/1-single-block 1-single-block.c -lsoxr -lm c++ -o /tmp/tmp.8rTY2fUTZY/2-stream 2-stream.C -lsoxr -lm cc -o /tmp/tmp.8rTY2fUTZY/3-options-input-fn 3-options-input-fn.c -lsoxr -lm cc -o /tmp/tmp.8rTY2fUTZY/4-split-channels 4-split-channels.c -lsoxr -lm cc -o /tmp/tmp.8rTY2fUTZY/5-variable-rate 5-variable-rate.c -lsoxr -lm 0.09 0.56 0.92 0.76 0.07 -0.71 -1.05 -0.72 0.03 0.73 0.99 0.69 -0.00 -0.69 -0.99 -0.72 -0.01 0.71 1.01 0.71 -0.00 -0.71 -1.00 -0.70 0.00 0.71 1.00 0.71 0.00 -0.71 -1.00 -0.71 0.00 0.71 1.00 0.71 -0.00 -0.71 -1.00 -0.71 -0.00 0.71 1.00 0.71 0.00 -0.71 -1.00 -0.71 -0.00 0.71 1.00 0.71 0.00 -0.71 -1.00 -0.71 0.00 0.71 1.00 0.71 0.00 -0.71 -1.00 -0.71 -0.00 0.71 1.00 0.71 -0.00 -0.71 -1.00 -0.71 -0.00 0.70 1.00 0.71 0.00 -0.71 -1.01 -0.71 0.01 0.72 0.99 0.69 0.00 -0.69 -0.99 -0.73 -0.03 0.72 1.05 0.71 -0.07 -0.76 -0.92 -0.56 /tmp/tmp.8rTY2fUTZY/1-single-block no error runtime=libsoxr-0.1.3 API=0.1.3 /tmp/tmp.8rTY2fUTZY/2-stream no error; I/O: no error /tmp/tmp.8rTY2fUTZY/3-options-input-fn no error; 0 clips; I/O: no error (cr32s) Segmentation fault autopkgtest [06:56:29]: test inst-check: ---] signature.asc Description: OpenPGP digital signature