help needed to find a bug in zorba (or gcc 4.9)

Martin Gieseking martin.gieseking at uos.de
Tue Jun 10 12:16:26 UTC 2014


Hi,

I've tried to fix the broken zorba package in rawhide for a couple of 
weeks now but, unfortunately, without much success. The upstream 
developers don't seem to be able to find the cause for the issue either.

The problem is that the package fails to build with gcc 4.9.0 (all 
archs) because the generated zorba binary segfaults for some queries due 
to accessing already freed memory. The issue only occurs with optimized 
builds (-O1, -O2, -O3) using gcc 4.9.0. With gcc 4.8.x the binary and 
thus the whole package build and work correctly. Therefore, it might 
also be possible that there's a bug in gcc's optimizer, but I'm not sure.

valgrind and gcc's address sanitizer report the code sections where the 
error occurs but when stepping through them with a debugger, I'm unable 
to understand what's actually going on there. It looks as if the 
affected code should work properly. So I got stuck now.

It would be great if someone could help to track down the issue in order 
to keep the package available in Fedora.

Here is the latest SRPM:
http://mgieseki.fedorapeople.org/review/zorba-3.0.0-4.fc21.src.rpm

The corresponding bug tickets can be found here:
https://bugzilla.redhat.com/show_bug.cgi?id=1095292
https://bugs.launchpad.net/bugs/1317976

Thanks,
Martin


More information about the devel mailing list