From nobody Fri Jun 03 22:42:59 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 200D61BECAD3 for ; Fri, 3 Jun 2022 22:43:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LFHw35xwFz56tk for ; Fri, 3 Jun 2022 22:42:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A5F15120DC for ; Fri, 3 Jun 2022 22:42:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 253MgxYZ065075 for ; Fri, 3 Jun 2022 22:42:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 253MgxNV065074 for ports-bugs@FreeBSD.org; Fri, 3 Jun 2022 22:42:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 264442] audio/sox: segmentation fault / bus error when reading mp3 Date: Fri, 03 Jun 2022 22:42:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: benrkts@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654296179; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Mu9rVR620r4+MHVad1G2QsvSKnrt2Upv9v3HfSQ2e2Q=; b=a0T3oHBPnIohK5DdSnxI+SbHTGWgSiHDQh9FAE9v0nR4Y6k9eX55Zh+0yCcp0qzTfR++S2 sZ/bdsFyKXNX9EdxhvHoEj+z6zEaR680wbcVxEjrNBR85vbaVi/1pLVVEt4LtS0Verd6y6 6xP9DYqwdMEk2m3zj168F8h9B3tUoyAC/QaAH3QYmudhWzse4H9i2HNhYmyZdIOorKzRFL +pIDwW4IovXvlyGeQwG13UCa6/exWXoYhr1f2kc9zi3BkG+wdAJCIGMwQ0hdYOLVfQOftT p+Q+D2gM4zgQoQHNnhjeKfAVTVkol+HHFEc2u1dIFZS/vEQ0YV3yMDcQVZ7scQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654296179; a=rsa-sha256; cv=none; b=E+qWkR5ijLcDL9r6zwDW1ga0oLD3XSZ1vXYhc3pBH0ZbbyFPs+2AZHmRiHFFc6rC2Guttq HbzKQPC6eqPBEpBw7dmTHE25MApIGiBlhWOkbfJ+z2Ta3GIZ75LA46S5X2QLTS59lwd1Rd L1Uxn1XIYJLEknYilCqwPsioL0U3mI5xkuHFXRtPxerDkXE0Fi+qxA6KdvMohedtu4QJOg cEo48NdERnSSRNNmwyduYYLR1U/0Xo3aJAqwyoUEz8tJEGNul2zqQ8g5dEd0hxJmCryOpt mazE8jmP5htCwMTq98XKf4mOil4xYJVWsx7pQT4yeZIO9xeu5+q574pUhb2cgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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, cleanup=3D) 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, cleanup=3D) 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, file=3D, line=3D, failedexpr=3D) 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, cleanup=3D) at crt1_c.c:75:7 --=20 You are receiving this mail because: You are the assignee for the bug.=