Red Hat Bugzilla – Bug 1017338
Segfault in large bitset array
Last modified: 2013-10-20 21:03:26 EDT
Created attachment 810043 [details]
Working on pecl/Judy extension and trying to understand issue in the test suite, I finally think this is a bug in Judy library.
Please try the minimal reproducer attached.
$ gcc -Wall -lJudy reproducer.c -o reproducer
$ ./reproducer 3
OK - bit successfully set at 1
OK - bit successfully set at 2
2 bits set in Judy1 array
2 Indexes used 24 bytes of memory
OK - first bit set is at 1
$ ./reproducer 3
OK - bit successfully set at 269
OK - bit successfully set at 270
Erreur de segmentation (core dumped)
P.S. I have another issue with the iterator (JSLN) I will try to provide another reproducer.
Have you reported this upstream? That would seem to be the best place to me.
(In reply to Paul Howarth from comment #1)
> Have you reported this upstream? That would seem to be the best place to me.
No, but as last version is from 2009... I'm a bit afraid...
Will try to investigate a little first.
P.S. and forget the JSLN, it works perfectly.
NB: this is a 64bits only bug. i386 is not affected.
@Paul, after some investigation, this is a gcc issue at the time this package (Judy-1.0.5-6.fc19) was build.
No issue with all tested build (fc14 to fc20, el5 and el6).
A simple rebuild with current gcc version in F19 solves this issue.
Can you please take care of this (I can do it if you prefer).
Judy-1.0.5-7.fc19 has been submitted as an update for Fedora 19.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing Judy-1.0.5-7.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Judy-1.0.5-7.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.