Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Segmentation fault (11) #22

Closed
nathanborror opened this issue Mar 15, 2011 · 8 comments
Closed

Segmentation fault (11) #22

nathanborror opened this issue Mar 15, 2011 · 8 comments

Comments

@nathanborror
Copy link

I just installed XHP for the first time. When I add require_once 'xhp/init.php'; and reload the page I get child pid XXXX exit signal Segmentation fault (11). This is a gist of my phpinfo page: https://gist.github.com/b3eefb174d105de3077b (too bad you can't render it in Gist, oh well).

Any help is appreciated. I'd love help smooth the install process and write some tutorials once I get up and running. Thanks!

I'm on a MBP running 10.6 with stock Apache and PHP.

@jshaw86
Copy link

jshaw86 commented Mar 31, 2011

same error, any ideas on this?

@alokmenghrajani
Copy link

I'm seeing the same issue on my mac :(

@jshaw86
Copy link

jshaw86 commented Apr 22, 2011

I installed all the dependencies(re2c, flex, bison etc...) through homebrew. I was thinking to try to install them through normal configure/make/make install but the homebrew recipes do that so it shouldn't matter. Some people say they got 1.3.7 to work so I may try that.

@jshaw86
Copy link

jshaw86 commented May 8, 2011

I tried installing 1.3.7, and I guess not surprisingly it didn't work. So I'm still at a loss here.

@qu1j0t3
Copy link

qu1j0t3 commented Jun 27, 2011

Using latest code on master:
commit dafff2c
Date: Wed Dec 1 22:24:06 2010 -0800

Running this:

$ php -r 'require "/Users/toby/foo/xhp/php-lib/init.php"; <a />;'
Segmentation fault

I see the same issue:

  • OS X 10.6.7
  • PHP 5.3.4

Backtrace below.

Process:         php [14055]
Path:            /usr/bin/php
Identifier:      php
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  bash [742]

Date/Time:       2011-06-27 12:41:47.062 -0400
OS Version:      Mac OS X 10.6.7 (10J869)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   php                             0x000000010031626f _zend_mm_alloc_int + 1087
1   php                             0x000000010033056a zend_stack_push + 101
2   php                             0x00000001003198bd zend_do_begin_variable_parse + 50
3   php                             0x0000000100306792 zendparse + 15722
4   php                             0x000000010030fe8f compile_file + 238
5   xhp.so                          0x0000000100ea7cbf xhp_compile_file(_zend_file_handle*, int) + 671 (ext.cpp:215)
6   apc.so                          0x0000000100da01de apc_compile_cache_entry + 126
7   apc.so                          0x0000000100da0b8a my_compile_file + 1834
8   php                             0x0000000100190449 phar_compile_file + 848
9   xdebug.so                       0x0000000100d52ddf xdebug_compile_file + 31
10  php                             0x00000001003606c8 ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER + 572
11  php                             0x00000001003522b9 execute + 585
12  xdebug.so                       0x0000000100d529df xdebug_execute + 2982
13  php                             0x0000000100360881 ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER + 1013
14  php                             0x00000001003522b9 execute + 585
15  xdebug.so                       0x0000000100d529df xdebug_execute + 2982
16  php                             0x0000000100326736 zend_eval_stringl + 330
17  php                             0x000000010032684a zend_eval_stringl_ex + 17
18  php                             0x00000001003adbf9 main + 4423
19  php                             0x0000000100001224 start + 52

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000100bd39f0  rcx: 0x0000000100bd39f0  rdx: 0x0000000100bc46f0
  rdi: 0x0000000000000440  rsi: 0x0000000100bc7740  rbp: 0x00007fff5fbfb240  rsp: 0x00007fff5fbfb200
   r8: 0x0000000000000000   r9: 0x0000000000000006  r10: 0x0000000000000000  r11: 0x0000000100bd6330
  r12: 0x0000000100bc7710  r13: 0x0000000100bc7710  r14: 0x0000000101026800  r15: 0x0000000000000048
  rip: 0x000000010031626f  rfl: 0x0000000000010206  cr2: 0x0000000000000000

Binary Images:
       0x100000000 -        0x1008b9fef +php ??? (???) <12BD5ADC-76DA-1AB0-32B7-1024BA4C52F7> /usr/bin/php
       0x100a27000 -        0x100a34fe7  libexslt.0.dylib 9.13.0 (compatibility 9.0.0) <D9944F04-1F01-B9D1-A46F-96229CD19437> /usr/lib/libexslt.0.dylib
       0x100a3a000 -        0x100a7dff7  libiodbc.2.dylib 4.18.0 (compatibility 4.0.0) <E8B6477A-E3BA-B781-6D7E-2C7118EA2ABD> /usr/lib/libiodbc.2.dylib
       0x100a88000 -        0x100ab0ff7  libpcre.0.dylib 1.1.0 (compatibility 1.0.0) <61E04B84-398D-0E87-7125-A668E797DE77> /usr/lib/libpcre.0.dylib
       0x100ab5000 -        0x100b2fff7  libnetsnmp.15.dylib 17.2.0 (compatibility 17.0.0) <2BE5579E-2ADF-2930-FA8E-02E9CBB101E3> /usr/lib/libnetsnmp.15.dylib
       0x100bed000 -        0x100bf2fff  mcrypt.so ??? (???) <B247F057-6423-4DF5-1C7A-3A53A017CA6B> /usr/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so
       0x100d4f000 -        0x100d7cff7  xdebug.so ??? (???) <50B743E5-EE14-4DEC-BE7A-EC28AF3E0D72> /usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
       0x100d93000 -        0x100dadff7  apc.so ??? (???) <F473D906-B8D8-509B-1C6C-AFBE862507B2> /usr/lib/php/extensions/no-debug-non-zts-20090626/apc.so
       0x100dc7000 -        0x100debfe7  solr.so ??? (???) <6F1FE9CB-5F67-E5C7-112B-DB24CF03C819> /usr/lib/php/extensions/no-debug-non-zts-20090626/solr.so
       0x100e0b000 -        0x100e30fef +libmcrypt.4.dylib 9.8.0 (compatibility 9.0.0) <49BE5383-EEAB-1C37-D5D4-D73D80BBE10E> /usr/local/lib/libmcrypt.4.dylib
       0x100e51000 -        0x100e57fff  libltdl.7.dylib 9.2.0 (compatibility 9.0.0) <C5E77ED6-E3F4-4FF7-4733-5352CA1290FA> /usr/lib/libltdl.7.dylib
       0x100e5c000 -        0x100e63fff  tidy.so ??? (???) <8021650B-3DBB-DE88-A048-1A7902A2022C> /usr/lib/php/extensions/no-debug-non-zts-20090626/tidy.so
       0x100e6b000 -        0x100e77fff  gearman.so ??? (???) <AAC51577-4661-8934-4EA4-464B1EAF3188> /usr/lib/php/extensions/no-debug-non-zts-20090626/gearman.so
       0x100e8d000 -        0x100e9cfff +libgearman.4.dylib 6.1.0 (compatibility 6.0.0) <17A57A15-1388-0A7A-A698-1986EC368D8B> /usr/local/lib/libgearman.4.dylib
       0x100ea6000 -        0x100f34fef  xhp.so ??? (???) <B4855CAF-D721-2B92-2F07-6FDF39EA9FA3> /usr/lib/php/extensions/no-debug-non-zts-20090626/xhp.so
    0x7fff5fc00000 -     0x7fff5fc3bdef  dyld 132.1 (???) <69130DA3-7CB3-54C8-ABC5-423DECDD2AF7> /usr/lib/dyld

@qu1j0t3
Copy link

qu1j0t3 commented Jun 27, 2011

Same with tag 1.3.9.

@Swahvay
Copy link
Contributor

Swahvay commented Jan 26, 2013

This doesn't appear to be happening anymore. I just downloaded and installed XHP onto a Mountain Lion OS (with PHP 5.4 from Homebrew). If this still reproduces for anyone please let me know, otherwise I will close this task.

@Swahvay
Copy link
Contributor

Swahvay commented Jan 30, 2013

I've now seen XHP installed on multiple machines with many different PHP configurations. Considering this fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants