From: bugtrack@alsa-project.org Subject: [ALSA - lib 0001231]: Sharing soundcard via dmix does not work when mixing 32bit and 64bit applications. Date: Thu, 18 Aug 2005 22:29:20 +0200 Message-ID: <11e68f1e26793490e6dd758234b13d48@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 90CB022C for ; Thu, 18 Aug 2005 22:29:20 +0200 (MEST) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: Tobias Diedrich Assigned To: ====================================================================== Project: ALSA - lib Issue ID: 1231 Category: 0_general Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 07-04-2005 16:30 CEST Last Modified: 08-18-2005 22:29 CEST ====================================================================== Summary: Sharing soundcard via dmix does not work when mixing 32bit and 64bit applications. Description: I have configured a friends AMD64-System to use dmix by default. I also made the same configuration for the 32bit-chroot and made sure that /tmp is a bind-mount, so the dmix-Socket is shared between 32bit and 64bit applications. However while sharing between one type of applications (either all 32bit or all 64bit) works fine, mixed sharing doesn't work. A strace shows that the socket is opened by apparently communication fails. I suspect that the structures passed by dmix have problems with differntly sized fields between 32bit and 64bit. ====================================================================== ---------------------------------------------------------------------- tiwai - 07-08-05 12:00 ---------------------------------------------------------------------- Yes, it's incompatible between 32 and 64bits. The struct shared in shmem doesn't match. snd_pcm_direct_share_t in pcm_direct.h defines the shared struct and the size of snd_pcm_[su]frames_t is long, so it depends on architecture. Also, we should be careful about alignment, too... ---------------------------------------------------------------------- ikonst - 08-18-05 22:29 ---------------------------------------------------------------------- Same as bug 0001336 which I've filled and is indeed resolved in CVS (I've just checked). Please mark as resolved. Issue History Date Modified Username Field Change ====================================================================== 07-04-05 16:30 Tobias DiedrichNew Issue 07-08-05 12:00 tiwai Note Added: 0005412 08-18-05 22:29 ikonst Note Added: 0005858 ====================================================================== ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf