Le 10/10/2013 13:56, Remi Collet a écrit :

> Testing Judy library (for Judy PHP extension), I encounter a
> reproducable segfault on x86_64 only (Judy 1.0.5 official release, no
> patch applied).

I forget to give you some information.

Build options:

+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64
-mtune=generic'

+ LDFLAGS='-Wl,-z,relro '

So gcc options are:

-DJU_64BIT -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64
-mtune=generic


And, from build, perhaps a revelant warning

Judy1Set.c: In function 'j__udyInsWalk':
Judy1Set.c:1506:63: warning: iteration 8u invokes undefined behavior
[-Waggressive-loop-optimizations]
                 JU_BITMAPSETL(Pjlb, Pjp->jp_1Index[offset]);
                                                               ^
Judy1Set.c:1505:13: note: containing loop
             for (offset = 0; offset < 15; ++offset)
             ^

Full build log
http://kojipkgs.fedoraproject.org//packages/Judy/1.0.5/7.fc20/data/logs/x86_64/build.log


Remi.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Judy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/judy-devel

Reply via email to