Open pbiggar opened 9 years ago
Sorry forget to mention;
PHP 5.2.9: './configure' '--with-libevent' '--enable-fastcgi'
'--enable-force-cgi-redirect' '--enable-discard-path' '--enable-sigchild' '--with-o
penssl' '--with-zlib' '--enable-bcmath' '--with-bz2' '--with-curl'
'--with-curlwrappers' '--enable-ftp' '--with-gd' '--with-ttf'
'--enable-gd-native-ttf' '--
enable-mbstring' '--with-mcrypt' '--with-mhash' '--with-mysql' '--with-mysqli'
'--enable-pcntl' '--enable-sockets' '--enable-zip' '--enable-maintainer-zts' '
--with-libdir=lib64' '--enable-embed' '--enable-static=yes'
Original issue reported on code.google.com by anilcetin
on 2009-04-24 15:09:53
I have found the problematic thing: Boehm garbage collector! Compiled phc with
"--disable-gc" and there is no more segfaults.
Original issue reported on code.google.com by anilcetin
on 2009-04-25 09:40:39
Hi,
Can you include a test case and the command line you used to call phc?
Original issue reported on code.google.com by paul.biggar
on 2009-04-27 13:39:19
If you need I can provide a ssh at virtual server with same conditions. Simply
compile it with garbage collector and just run /usr/local/lib/phc It will segfault.
Original issue reported on code.google.com by anilcetin
on 2009-04-28 21:26:59
Can you provide a stack trace first? After installing phc (configured with -g in the
CFLAGS), run it through gdb, and run the backtrace command.
What configure command was passed to phc?
Also, can you test without the --enable-static=yes passed to PHP? I wonder if that's
a problem.
Original issue reported on code.google.com by paul.biggar
on 2009-04-29 08:08:26
I have also experienced the same problem when dumping to AST in XML.
I was using cygwin and compiled successfully.
Finally I solved with increase the stack size to 16MB by using the following commnds:
export CFLAGS='-Wl,--stack,16777216'
export CXXFLAGS='-Wl,--stack,16777216'
Although the complication with the commands above will cause error in plugins complication,
but still able to make install as well as using it.
Original issue reported on code.google.com by schroys
on 2010-11-22 05:34:04
Can you identify what takes so much stack space? Is it the recursion when traversing
the tree?
Can you excerpt the PHP code which it is processing when it segfaults?
Original issue reported on code.google.com by paul.biggar
on 2010-11-22 11:38:18
I can confirm the segfault (11) on darwin (OSX 10.7.4), and the solution, adding --disable-gc
to the configure options solves the segfault.
for the segfault I was not parsing any file I just ran the binary to make sure it worked
without any switched, though using --help would still cause the segfault.
Original issue reported on code.google.com by thesin
on 2012-06-19 14:56:40
Original issue reported on code.google.com by
anilcetin
on 2009-04-24 14:47:15