Bug#728710: jackd2: Bus error w/ POST_PACKED_STRUCTURE on powerpc G4 32bit

Benoît Delcour benoit.delcour at gmail.com
Mon Nov 4 14:49:54 UTC 2013


Package: jackd2
Version: 1.9.9.5+20130622git7de15e7a-1
Severity: important
Tags: patch upstream

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Benoit Delcour <benoit.delcour at campuslille.com>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: jackd2: Bus error w/ POST_PACKED_STRUCTURE on powerpc G4 32bit
X-Debbugs-Cc: benoit.delcour at campuslille.com

Package: jackd2
Version: 1.9.9.5+20130622git7de15e7a-2
Severity: important
Tags: upstream patch

TL;DR: the Rasperry Pi "Bus error" strikes again.
Maybe not for the same causes, but the fix does work.

I just got myself a dual Powermac G4 out of a garbage bin,
and immediately installed debian and jackd2.
It fails with an obscure "Bus error"; since I also own a raspberry pi,
I first tried to patch source with the same fix, and it works.
See "Usage of __attribute__((__packed__)) causes bus error on ARM":

http://trac.jackaudio.org/ticket/295

The issue seems to be related to arm;
however the bug *seems* to hit at the same time:
	Jack: JackEngine::NotifyAddClient: name = system
	Bus error

The Raspberry bug has been workaround in:
https://github.com/jackaudio/jack2/commit/2f7d512b419cb75cef2e27db872d641de6e7aa0d

+#if defined(__arm__)

+    #undef POST_PACKED_STRUCTURE

+    #define POST_PACKED_STRUCTURE

+#endif /* __arm__ */

The comment for the commit also states:
	Since it's only used for mixed
	32/64bit jackd installations and we're not facing such a scenario on
	ARM, there's little use to worry more atm.

Modifiying source to #undef & #define it unconditionnally did the trick.
Bug report tagged as patch, but I don't know the correct flag.
I can prepare an actual patch if/when I get the __powerpc__ 32bit-only thingy


-- System Information:
Debian Release: 7.2
  APT prefers stable
  APT policy: (980, 'stable'), (500, 'stable-updates'), (500, 'testing')
Architecture: powerpc (ppc)

Kernel: Linux 3.2.0-4-powerpc-smp (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages jackd2 depends on:
ii  coreutils              8.13-3.5
ii  debconf [debconf-2.0]  1.5.49
ii  libasound2             1.0.27.2-3
ii  libc6                  2.17-93
ii  libdbus-1-3            1.6.8-1+deb7u1
ii  libexpat1              2.1.0-1
ii  libgcc1                1:4.7.2-5
ii  libjack-jackd2-0       1.9.9.5+20130622git7de15e7a-2
ii  libopus0               1.1~beta-3
ii  libreadline6           6.2+dfsg-0.1
ii  libsamplerate0         0.1.8-5
ii  libsndfile1            1.0.25-7
ii  libstdc++6             4.7.2-5
ii  multiarch-support      2.13-38
ii  python                 2.7.3-4+deb7u1
ii  python-dbus            1.1.1-1

Versions of packages jackd2 recommends:
ii  jackd2-firewire  1.9.9.5+20130622git7de15e7a-2
ii  libpam-modules   1.1.3-7.1
ii  qjackctl         0.3.9-2

Versions of packages jackd2 suggests:
ii  jack-tools   20101210-2
ii  meterbridge  0.9.2-11

-- debconf information:
* jackd/tweak_rt_limits: true

-- System Information:
Debian Release: 7.2
  APT prefers stable
  APT policy: (990, 'stable'), (980, 'testing'), (500, 'stable'), (450, 'unstable'), (50, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-2-rt-amd64 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages jackd2 depends on:
ii  coreutils              8.13-3.5
ii  debconf [debconf-2.0]  1.5.49
ii  libasound2             1.0.27.2-3
ii  libc6                  2.17-93
ii  libdbus-1-3            1.6.16-1
ii  libexpat1              2.1.0-1
ii  libgcc1                1:4.7.2-5
ii  libjack-jackd2-0       1.9.9.5+20130622git7de15e7a-1
ii  libopus0               1.1~beta-3
ii  libreadline6           6.2+dfsg-0.1
ii  libsamplerate0         0.1.8-5
ii  libsndfile1            1.0.25-7
ii  libstdc++6             4.7.2-5
ii  multiarch-support      2.13-38
ii  python                 2.7.3-4+deb7u1
ii  python-dbus            1.1.1-1

Versions of packages jackd2 recommends:
ii  jackd2-firewire  1.9.9.5+20130622git7de15e7a-1
ii  libpam-modules   1.1.3-7.1
ii  qjackctl         0.3.10-2

Versions of packages jackd2 suggests:
ii  jack-tools   20101210-2
ii  meterbridge  0.9.2-11

-- debconf information:
* jackd/tweak_rt_limits: true



More information about the pkg-multimedia-maintainers mailing list