Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Jun 2022 22:42:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 264442] audio/sox: segmentation fault / bus error when reading mp3
Message-ID:  <bug-264442-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264442

            Bug ID: 264442
           Summary: audio/sox: segmentation fault / bus error when reading
                    mp3
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: benrkts@yahoo.com
                CC: dnelson@allantgroup.com
                CC: dnelson@allantgroup.com
             Flags: maintainer-feedback?(dnelson@allantgroup.com)

FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64

sox-14.4.2_5 using libmad-0.16.0 (both via pkg, then rebuilt for debugging)

To reproduce:

sox filename.mp3 out.wav
(or) play filename.mp3

Workaround:

ffmpeg -i filename.mp3 filename.wav
sox filename.wav out.wav
(or) play out.wav

Invoking as 'sox' on certain files:

* thread #1, name =3D 'sox', stop reason =3D signal SIGBUS
  * frame #0: 0x000000080043f194
libmad.so.0.16.0`mad_frame_init(frame=3D0x00007fffffffbed0) at frame.c:93:18
    frame #1: 0x0000000800305ead
libsox.so.3`mp3_duration_ms(ft=3D0x0000000801433900) at mp3-util.h:271:3
    frame #2: 0x000000080030319b libsox.so.3`startread(ft=3D0x0000000801433=
900)
at mp3.c:392:29
    frame #3: 0x00000008002957b0
libsox.so.3`open_read(path=3D"goldberg-variations-gould.mp3",
buffer=3D0x0000000000000000, buffer_size=3D0, signal=3D0x000000080147f010,
encoding=3D0x000000080147f030, filetype=3D"mp3") at formats.c:545:32
    frame #4: 0x0000000800294fe4
libsox.so.3`sox_open_read(path=3D"goldberg-variations-gould.mp3",
signal=3D0x000000080147f010, encoding=3D0x000000080147f030,
filetype=3D0x0000000000000000) at formats.c:585:10
    frame #5: 0x00000000002086d1 sox`main(argc=3D3, argv=3D0x00007fffffffe7=
e0) at
sox.c:2945:20
    frame #6: 0x0000000000207df0 sox`_start(ap=3D<unavailable>,
cleanup=3D<unavailable>) at crt1_c.c:75:7

Invoking as 'play' on the same files gives a similar backtrace.

Invoking as 'sox' on other files:

* thread #1, name =3D 'sox', stop reason =3D signal SIGSEGV
  * frame #0: 0x0000000000000000
    frame #1: 0x00000008003037b4 libsox.so.3`sox_mp3read(ft=3D0x00000008014=
33900,
buf=3D0x00000008014c94c0, len=3D8192) at mp3.c:520:13
    frame #2: 0x0000000800298aba libsox.so.3`sox_read(ft=3D0x00000008014339=
00,
buf=3D0x00000008014c94c0, len=3D8192) at formats.c:978:30
    frame #3: 0x0000000000212864 sox`sox_read_wide(ft=3D0x0000000801433900,
buf=3D0x00000008014c94c0, max=3D8192) at sox.c:490:9
    frame #4: 0x0000000000211daa sox`combiner_drain(effp=3D0x00000008014c81=
00,
obuf=3D0x00000008014c94c0, osamp=3D0x00007fffffffe530) at sox.c:552:16
    frame #5: 0x00000008002afbe7
libsox.so.3`drain_effect(chain=3D0x0000000801419040, n=3D0) at effects.c:35=
2:17
    frame #6: 0x00000008002af689
libsox.so.3`sox_flow_effects(chain=3D0x0000000801419040,
callback=3D(sox`update_status at sox.c:1342), client_data=3D0x0000000000000=
000) at
effects.c:445:11
    frame #7: 0x000000000020ae67 sox`process at sox.c:1802:17
    frame #8: 0x0000000000208afa sox`main(argc=3D3, argv=3D0x00007fffffffe7=
b8) at
sox.c:3008:10
    frame #9: 0x0000000000207df0 sox`_start(ap=3D<unavailable>,
cleanup=3D<unavailable>) at crt1_c.c:75:7

Invoking as 'play' on the same files:

Assertion failed: (factor > 0), function rate_init, file rate.c, line 303.

* thread #1, name =3D 'sox', stop reason =3D signal SIGABRT
  * frame #0: 0x000000080091033a libc.so.7`__sys_thr_kill at thr_kill.S:4
    frame #1: 0x0000000800888c74 libc.so.7`__raise(s=3D6) at raise.c:52:10
    frame #2: 0x000000080093a109 libc.so.7`abort at abort.c:67:8
    frame #3: 0x000000080086ba11 libc.so.7`__assert(func=3D<unavailable>,
file=3D<unavailable>, line=3D<unavailable>, failedexpr=3D<unavailable>) at
assert.c:51:2
    frame #4: 0x00000008002c93a3 libsox.so.3`rate_init(p=3D0x00000008014a50=
48,
shared=3D0x00000008014a5070, factor=3D-1.9999999962747097, bits=3D16, phase=
=3D50,
bw_pc=3D67.625, anti_aliasing_pc=3D100, rolloff=3Drolloff_medium,
maintain_3dB_pt=3Dsox_false, use_hi_prec_clock=3Dsox_false, interpolator=3D=
-1,
max_coefs_size=3D400, noSmallIntOpt=3Dsox_false) at rate.c:303:3
    frame #5: 0x00000008002c8f98 libsox.so.3`start(effp=3D0x00000008014c800=
0) at
rate.c:632:3
    frame #6: 0x00000008002aed3a
libsox.so.3`sox_add_effect(chain=3D0x0000000801419040, effp=3D0x00000008014=
c8000,
in=3D0x00007fffffffe5f0, out=3D0x0000000801433c08) at effects.c:157:9
    frame #7: 0x0000000000211adf play`add_effect(chain=3D0x0000000801419040,
effp=3D0x00000008014c8000, in=3D0x00007fffffffe5f0, out=3D0x0000000801433c0=
8,
guard=3D0x00007fffffffe5ec) at sox.c:708:10
    frame #8: 0x0000000000211b9f play`auto_effect(chain=3D0x000000080141904=
0,
name=3D"", argc=3D1, argv=3D0x00007fffffffe5e0, signal=3D0x00007fffffffe5f0,
guard=3D0x00007fffffffe5ec) at sox.c:721:7
    frame #9: 0x0000000000210d82 play`add_effects(chain=3D0x000000080141904=
0) at
sox.c:1086:5
    frame #10: 0x000000000020ac12 play`process at sox.c:1759:3
    frame #11: 0x0000000000208afa play`main(argc=3D2, argv=3D0x00007fffffff=
e7c8) at
sox.c:3008:10
    frame #12: 0x0000000000207df0 play`_start(ap=3D<unavailable>,
cleanup=3D<unavailable>) at crt1_c.c:75:7

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264442-7788>