Re: [Jack-Devel] [LAU] jack2 turned verbose

PrevNext  Index
DateFri, 01 Jun 2012 22:54:11 +0300
From Nedko Arnaudov <[hidden] at arnaudov dot name>
ToDavid Adler <[hidden] at gmail dot com>
Cc[hidden] at lists dot jackaudio dot org
In-Reply-ToDavid Adler Re: [Jack-Devel] [LAU] jack2 turned verbose
Follow-UpFlorian Paul Schmidt Re: [Jack-Devel] [LAU] jack2 turned verbose
David Adler <[hidden]> writes:

> On Fri, Jun 1, 2012 at 4:21 PM, Nedko Arnaudov wrote:
>> David Adler writes:
>>> On Fri, Jun 1, 2012 at 2:52 PM, Robin Gareus wrote:
>>>>
>>>> It might have to do with Arch's compiler[-flags] and how jack2 uses
>>>> unions .. or scoping: JackGlobals vs Engine-Parameters.. although I
>>>> don't have an explanation.. all seems good.
>>>
>>> Compiler flags (for 32bit) are, (from unaltered /etc/makepkg.conf):
>>> CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector
>>> --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
>>
>> Don't use -O2 nor -O1, use -O0
>>
>> I'm aware of at least one *compiler* bug that causes jackdbus to
>> misbehave. Yes, i analyzed the generated assembly. Affected are both
>> i32 and amd64 targets. Atm the only reports are from Arch users. The bad
>> machine code is created for th control api implementation, in parts that
>> use unions (jack parameter values).
>
> Symptoms disappear when using -fpermissive and/or -O0 (instead of -O2),
> with no changes in the source files.
>
> So is this then an upstream or a downstream issue?

both. arch (downstream) is pushing recently released (upstream)
compiler. jack control api implementaiton triggers the bug. its not
issue in jack itself but its still problem for jack users.

> Nedko, does your advice to use -O0 only concern Jack or everything?
> I'm compiling lots of software here, usually -O2 usually doesn't seem
> to cause problems.

YMMV. Default compiler in my distro (Gentoo) works properly. jack also
"works", until you find that it misbehaves. You can only be sure if you
have tests that cover 100% of the code. Neither jack1 nor jack2 have
such.

-- 
Nedko Arnaudov <GnuPG KeyID: 5D1B58ED>
PrevNext  Index

1338580474.29930_0.ltw:2,a <878vg6kduk.fsf at arnaudov dot name>