Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault during compilation while building hphpi (ubuntu 11.10) #419

Closed
jdespatis opened this issue Oct 19, 2011 · 1 comment
Closed

segfault during compilation while building hphpi (ubuntu 11.10) #419

jdespatis opened this issue Oct 19, 2011 · 1 comment

Comments

@jdespatis
Copy link

During the make process, I get a segfault on building hphpi step
Here is the log:

Linking CXX static library ../../bin/libhphp_analysis.a
[ 88%] Built target hphp_analysis
Scanning dependencies of target hphp
[ 88%] Building CXX object src/hphp/CMakeFiles/hphp.dir/main.cpp.o
In file included from /.../hiphop-php/src/hphp/main.cpp:23:0:
/.../hiphop-php/src/compiler/analysis/analysis_result.h: In member function ‘bool HPHP::BaseTryLock::acquireImpl(HPHP::BlockScopeRawPtr)’:
/.../hiphop-php/src/compiler/analysis/analysis_result.h:707:22: attention : variable ‘current’ set but not used [-Wunused-but-set-variable]
[ 88%] Building CXX object src/hphp/CMakeFiles/hphp.dir/externals.cpp.o
Linking CXX executable hphp
Building hphpi
Segmentation fault
make[2]: *** [src/hphp/hphp] Erreur 139
make[1]: *** [src/hphp/CMakeFiles/hphp.dir/all] Erreur 2
make: *** [all] Erreur 2

So I launch 'make' a second time, and then the compilation goes to the end (but hphpi is not built I guess)

And when I try to launch ./src/hphp/hphp, I get a sefault, maybe because of the segfault during the make process, dunno...

Here is a backtrace when launching hphp:

Starting program: /.../hiphop-php/src/hphp/hphp 
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x0882105e in HPHP::Extension::LoadModules(HPHP::Hdf) ()
(gdb) backtrace
#0  0x0882105e in HPHP::Extension::LoadModules(HPHP::Hdf) ()
#1  0x08635b8a in HPHP::RuntimeOption::Load(HPHP::Hdf&, std::vector<std::string, std::allocator<std::string> >*) ()
#2  0x08345b0b in _GLOBAL__sub_I__ZN4HPHP13RuntimeOption6LoadedE ()
#3  0x08d6c852 in __libc_csu_init ()
#4  0x0107d0aa in __libc_start_main (main=0x8340480 <main>, argc=1, ubp_av=0xbffff184, init=0x8d6c800 <__libc_csu_init>, 
    fini=0x8d6c870 <__libc_csu_fini>, rtld_fini=0x11ebc0, stack_end=0xbffff17c) at libc-start.c:185
#5  0x08367c5d in _start ()
@jdespatis
Copy link
Author

Thanks to the new page explaining compilation on ubuntu 11.10 (that contains 2 patches to apply to hip-hop and curl): https://github.com/facebook/hiphop-php/wiki/Building-and-Installing-on-Ubuntu-11.10, hphpi can now build peacefully, no segfault anymore

=> I close this issue

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

No branches or pull requests

1 participant