FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 12-14-2011, 05:08 PM
Andreas Metzler
 
Default Bug#651595: ANNOUNCE: p11-kit 0.9

On 2011-12-14 Stef Walter <stefw@collabora.co.uk> wrote:
> On 2011-12-10 11:06, Andreas Metzler wrote:
[...]
>> The minimal change I found was to just build CuFailInternal() without
>> optimization, by setting

>> __attribute__((optimize("O0")))
>> static void CuFailInternal(CuTest* tc, const char* file, int line,
>> CuString* string)

> Hmmm, I can see this behavior now. If I slightly rearrange any code it
> goes away, and that's why it may be that the above seemingly unrelated
> change fixes the issue.

> What's happening is that in the test__p11_hash_set_get_clear() gcc is
> reordering function calls. The line _p11_hash_clear() is running after
> the last _p11_hash_get() call, even though it's located before it. I've
> verified this with output to stderr

> So I'm a bit stuck, not sure if I should just refactor the tests to get
> around the obviously broken compiler, or should I try and take this
> upstream? Trying to track down where...

> The gcc version that I can replicate the issue on is "Ubuntu/Linaro
> 4.6.1-9ubuntu3".
[...]

Hello,

FWIW I have tried reporting this to the Debian bts
http://bugs.debian.org/651595 (bug report cced)
cu andreas



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111214180855.GB2262@downhill.g.la">http://lists.debian.org/20111214180855.GB2262@downhill.g.la
 
Old 12-23-2011, 10:28 AM
Stef Walter
 
Default Bug#651595: ANNOUNCE: p11-kit 0.9

I gave up trying to build a custom gcc track this down, but here's my
thinking, and what I did to get around it:

* The optimization bug seems to be in gcc 4.6.1, and is triggered
in a corner case.
* The bug seems to be fixed in 4.6.2.
* I've rearranged the testing code so the bug is no longer triggered
on gcc 4.6.1

How does that sound? Acceptable?

Cheers,

Stef


On 12/14/2011 07:08 PM, Andreas Metzler wrote:
> On 2011-12-14 Stef Walter <stefw@collabora.co.uk> wrote:
>> On 2011-12-10 11:06, Andreas Metzler wrote:
> [...]
>>> The minimal change I found was to just build CuFailInternal() without
>>> optimization, by setting
>
>>> __attribute__((optimize("O0")))
>>> static void CuFailInternal(CuTest* tc, const char* file, int line,
>>> CuString* string)
>
>> Hmmm, I can see this behavior now. If I slightly rearrange any code it
>> goes away, and that's why it may be that the above seemingly unrelated
>> change fixes the issue.
>
>> What's happening is that in the test__p11_hash_set_get_clear() gcc is
>> reordering function calls. The line _p11_hash_clear() is running after
>> the last _p11_hash_get() call, even though it's located before it. I've
>> verified this with output to stderr
>
>> So I'm a bit stuck, not sure if I should just refactor the tests to get
>> around the obviously broken compiler, or should I try and take this
>> upstream? Trying to track down where...
>
>> The gcc version that I can replicate the issue on is "Ubuntu/Linaro
>> 4.6.1-9ubuntu3".
> [...]
>
> Hello,
>
> FWIW I have tried reporting this to the Debian bts
> http://bugs.debian.org/651595 (bug report cced)
> cu andreas
> _______________________________________________
> p11-glue mailing list
> p11-glue@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/p11-glue


--
--

Collabora: http://www.collabora.com
Personal: http://stef.thewalter.net



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4EF465C4.10104@collabora.co.uk">http://lists.debian.org/4EF465C4.10104@collabora.co.uk
 

Thread Tools




All times are GMT. The time now is 09:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org