From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26119 invoked by alias); 2 May 2014 11:16:42 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 26110 invoked by uid 89); 2 May 2014 11:16:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f41.google.com Received: from mail-pa0-f41.google.com (HELO mail-pa0-f41.google.com) (209.85.220.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 02 May 2014 11:16:41 +0000 Received: by mail-pa0-f41.google.com with SMTP id lj1so2530958pab.0 for ; Fri, 02 May 2014 04:16:39 -0700 (PDT) X-Received: by 10.66.122.101 with SMTP id lr5mr33476345pab.130.1399029399020; Fri, 02 May 2014 04:16:39 -0700 (PDT) Received: from ?IPv6:2001:e68:4052:d681:e01f:8e6d:cdca:d0e5? ([2001:e68:4052:d681:e01f:8e6d:cdca:d0e5]) by mx.google.com with ESMTPSA id tu3sm179418810pab.1.2014.05.02.04.16.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 May 2014 04:16:37 -0700 (PDT) Message-ID: <53637E89.2060404@gmail.com> Date: Fri, 02 May 2014 11:16:00 -0000 From: JonY <10walls@gmail.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: The Cygwin Mailing List Subject: ioctl crash in mpg123 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vWqhFqDl7HmiPgX1fbAr6BgwK5kIVQM8s" X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00035.txt.bz2 --vWqhFqDl7HmiPgX1fbAr6BgwK5kIVQM8s Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-length: 660 Hi, I am debugging a crash in Cygwin 1.7.29-2 ioctl but I am not familiar with the OSS sounds API. I traced the ioctl calls and made this example, is it supposed to work? #include #include #include #include #include #include #include int main(){ int fmt =3D AFMT_MU_LAW; int chan =3D 0; int fd =3D open("/dev/dsp", O_WRONLY); ioctl(fd, SNDCTL_DSP_RESET, NULL); ioctl(fd, SNDCTL_DSP_RESET, NULL); ioctl(fd, SNDCTL_DSP_RESET, NULL); ioctl(fd, SNDCTL_DSP_SETFMT, &fmt); ioctl(fd, SNDCTL_DSP_STEREO, &chan); /* crashes here */ close(fd); exit(0); } --vWqhFqDl7HmiPgX1fbAr6BgwK5kIVQM8s Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 834 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (MingW32) iQIcBAEBAgAGBQJTY36OAAoJEHE7X+KcFF1F5aoP/2WgtHPZQpGazX6Uhf7GYHXF guXRHpCL/ZAJKlDDbhPOH9X33ZbBNqMaYe56xxW/NXjclPI4PkI8Rml2yM0UM6mT 8WWfidVsb//uOU7FdwOkbabzz7lMp7enEf1KgrxXR4JOHqbjWHIwgzAt5sFCa9L3 3qqixSJjgGPHIo/6CUKU/nJVYlnKTC7XKh1hLZGBA10Uog+MKjecSj5R9aEf2Fff L5gu0XU16P/6RvAONdXyea1zT47pdEGuw8qu5FoUwYDsFDbSttoYrv4+yXYpimcX AnmWjrszbGZg8CKovcC0V+74c2NGt4OITD0Ll3f+PSC3hBpnuxASrm4wQt3c+S2l 848dCE7WHPyFVwrVJhZbVVj+wBH4si2CGarl4lWYKqCi4wpGx9de7FbSgJowdZqG Sk5wngw5JgcMosTGey/jwSbi4HPu1rJJ7AhoT9MdrmKUlKnMTww6TOaUH/7NLIWN +ncgcvx2ZWgzRcMSDvUuf0kEqA47CpSFSwpIS12fw4XrTbIcRvd7lRDyOit6ioHU 2M0PWVwt55W17OsHwck2RUDTfO3fasNxZeJYO6E0eSIHY+sWzKT/qkioM3oeudq/ LBZuZKu74vfQdf5fIKTGAsjS+jfBTWIHG95EluXsy95kCtY6JNyF4cY420vba7mz mLE0Y+FXiu7c/5W0H1ea =nepe -----END PGP SIGNATURE----- --vWqhFqDl7HmiPgX1fbAr6BgwK5kIVQM8s--