[LLVMdev] php crash
clattner at apple.com
Fri Apr 3 09:07:31 PDT 2009
On Apr 3, 2009, at 8:12 AM, Xi Wang wrote:
> I was trying to build php using LLVM/Clang (trunk) on Mac OS X,
> Apple gcc works.
> Clang generates a buggy executable. under php source root,
> CC=clang ./configure --disable-all
> make test
> The resulting `php' will crash, even with an empty php file.
> Argument strings on the stack at: c0000000
> #0 0x00181daf in ZEND_RETURN_SPEC_CONST_HANDLER ()
> #1 0x00164db7 in execute ()
> #2 0x001436fd in zend_execute_scripts ()
> #3 0x000ee779 in php_execute_script ()
> #4 0x001c18c2 in main ()
> Clang works well when building php in debug mode.
> CC=clang ./configure --disable-all --enable-debug
> Is this a problem with the LLVM optimizer or the Clang front-end?
It is impossible to tell with this amount of detail. Does it work
correctly if you build with -O0 ?
More information about the llvm-dev