Bug 213262 - audio/sox: Play mode segfaults when releasing the device.
Summary: audio/sox: Play mode segfaults when releasing the device.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Tobias Kortkamp
URL: http://gnats.netbsd.org/cgi-bin/query...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-07 05:34 UTC by Alexandros Perdikomatis
Modified: 2017-11-20 21:06 UTC (History)
2 users (show)

See Also:
tobik: maintainer-feedback+


Attachments
sox.diff (1.22 KB, patch)
2017-11-20 07:44 UTC, Tobias Kortkamp
dnelson: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandros Perdikomatis 2016-10-07 05:34:53 UTC
sox play mode is doing fine if you Ctrl-C before file is finished playing, if you let it finish, results to a segmentation fault when releasing the device.
There is also a clip sound when taking the control of dsp when starting.
It seems kernel has a problem with the current libraries (Kernel 11.0-RC3) using standard port tree (the one comes with the release).
Comment 1 Tobias Kortkamp freebsd_committer 2017-11-20 07:44:21 UTC
Created attachment 188135 [details]
sox.diff

(In reply to Alexandros Perdikomatis from comment #0)

I can confirm the segfault.  Luckily there's a patch for it in pkgsrc
which seems to fix the problem.

I don't hear any clipping though when playback starts.
Comment 2 Dan Nelson 2017-11-20 16:12:55 UTC
Comment on attachment 188135 [details]
sox.diff

This patch looks good.  Maintainer approved.
Comment 3 commit-hook freebsd_committer 2017-11-20 20:35:29 UTC
A commit references this bug:

Author: tobik
Date: Mon Nov 20 20:34:25 UTC 2017
New revision: 454577
URL: https://svnweb.freebsd.org/changeset/ports/454577

Log:
  audio/sox: Fix segfault in the OSS backend

  sox currently crashes when it finishes playing a file.

  PR:		213262
  Approved by:	Dan Nelson <dnelson@allantgroup.com> (maintainer)
  Reported by:	Alexandros Perdikomatis <alexandrosperdikomatis@gmail.com>
  Obtained from:	Pkgsrc
  MFH:		2017Q4

Changes:
  head/audio/sox/Makefile
  head/audio/sox/files/
  head/audio/sox/files/patch-src_oss.c
Comment 4 commit-hook freebsd_committer 2017-11-20 21:06:02 UTC
A commit references this bug:

Author: tobik
Date: Mon Nov 20 21:05:36 UTC 2017
New revision: 454580
URL: https://svnweb.freebsd.org/changeset/ports/454580

Log:
  MFH: r454577

  audio/sox: Fix segfault in the OSS backend

  sox currently crashes when it finishes playing a file.

  PR:		213262
  Approved by:	Dan Nelson <dnelson@allantgroup.com> (maintainer)
  Reported by:	Alexandros Perdikomatis <alexandrosperdikomatis@gmail.com>
  Obtained from:	Pkgsrc

  Approved by:	ports-secteam blanket

Changes:
_U  branches/2017Q4/
  branches/2017Q4/audio/sox/Makefile
  branches/2017Q4/audio/sox/files/
Comment 5 Tobias Kortkamp freebsd_committer 2017-11-20 21:06:44 UTC
(In reply to Dan Nelson from comment #2)
Committed. Thanks!