[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#613642: bus error in ps2pdf



On 21/02/11 00:09, Jonathan Nieder wrote:
> forwarded 613642 http://bugs.ghostscript.com/show_bug.cgi?id=691989
> quit
> 
> Julien Cristau wrote:
>> On Wed, Feb 16, 2011 at 13:56:52 +0100, Julien Cristau wrote:
> 
>>> gx_semaphore_alloc() allocates a 8-byte-aligned gx_semaphore_t, which
>>> means that sema->native is *not* 8-byte-aligned (its offset is 4),
>>> whereas alignof(pt_semaphore_t) == 8.  The easiest fix is probably to
>>> make sure gp_semaphore has maximal alignment.
>>
>> Quick test with the following patch seems to work (using Stéphane's test
>> case).
> 
> Thanks, both.  I've filed the bug upstream.
> 
> Jonas et al, would you like a git branch with this patch applied?


Just so you know, I committed the patch (with a minor tweak) earlier
today. The tweak was just to include Ghostscript's int64_t in the union.

Thanks for help, I really appreciate it.

Chris



Reply to: