Re: [Jack-Devel] Jack on a Nexus 7

PrevNext  Index
DateSun, 21 Jul 2013 15:45:33 +0200
From Christian Schoenebeck <[hidden] at crudebyte dot com>
To[hidden] at lists dot jackaudio dot org
In-Reply-ToBradley Justice [Jack-Devel] Jack on a Nexus 7
Follow-UpChris Caudle Re: [Jack-Devel] Jack on a Nexus 7
On Saturday 20 July 2013 16:48:02 Bradley Justice wrote:
> 1. jackd fails with a bus error when accessing a packed structure. I am
> currently working around this issue by disabling the packing. I believe
> that this does not destabilize the software. I am wondering why the
> structures are packed. Space saving only?

Using packed data structures is a common approach for network protocols. Main 
purpose is not saving memory space or transmission bandwidth, but rather 
preserving compatibility among various different architectures, i.e. an amd64 
server communicating with an arm32 client. Non packed C(++) data struct 
declarations might result in actually different data structures on different 
systems, since the compiler usually tries to optimize the members of the 
structure to be memory aligned for fast access (i.e. adding non used bytes in 
between members), which however is dependent to the word size of the system.

I doubt that the crash you got is caused by packed data structures. Disabling 
the packed attributes most probably just moved the symptoms.

CU
Christian
PrevNext  Index

1374414260.30451_0.ltw:2,a <201307211545.33329.schoenebeck at crudebyte dot com>