LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   hiphop - core dump right off the bat (32-bit box) (http://www.linuxquestions.org/questions/programming-9/hiphop-core-dump-right-off-the-bat-32-bit-box-947392/)

eantoranz 05-29-2012 10:36 AM

hiphop - core dump right off the bat (32-bit box)
 
Hi!

I want to give hiphop a try. I downloaded it yesterday and ended up compiling it after a few tries (it's a 32-bit box with kubuntu precise). Now, when I run it, I just get a core dump.

Code:

$ ../src/hphp/hphp --help
Segmentation fault (core dumped)

These are some environment variables:

Code:

$ echo $LD_LIBRARY_PATH
/usr/local/curl/lib/:/usr/local/libevent/lib/:/usr/local/onig/lib/
$ echo $LD_LIBRARY_PATH
/usr/local/curl/lib/:/usr/local/libevent/lib/:/usr/local/onig/lib/
$ echo $HPHP_HOME
/home/antoranz/Descargas/php/facebook-hiphop-php-cf9b612/
$ echo $HPHP_LIB
/home/antoranz/Descargas/php/facebook-hiphop-php-cf9b612/bin/

Strace output (the last part of it):
Code:

munmap(0xb76fc000, 4096) = 0
futex(0xb6675c60, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=296, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb76fc000
read(4, "127.0.0.1\tlocalhost\n127.0.1.1\tpi"..., 4096) = 296
read(4, "", 4096) = 0
close(4) = 0
munmap(0xb76fc000, 4096) = 0
time(NULL) = 1338242128
open("/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 4
read(4, "0-1\n", 8192) = 4
close(4) = 0
rt_sigaction(SIGQUIT, {0x89340b0, [QUIT], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGILL, {0x89340b0, [ILL], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGFPE, {0x89340b0, [FPE], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSEGV, {0x89340b0, [SEGV], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGBUS, {0x89340b0, [BUS], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGABRT, {0x89340b0, [ABRT], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigaction(SIGSEGV, {SIG_DFL, [SEGV], SA_RESTART}, {0x89340b0, [SEGV], SA_RESTART}, 8) = 0
futex(0xb66a2ea0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0xb66c10fc, FUTEX_WAKE_PRIVATE, 2147483647) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)

Any idea what's going on? Thanks in advance

eantoranz 05-29-2012 10:53 AM

backtrace from gdb:

Code:

$ gdb ./hphp
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/antoranz/Descargas/php/facebook-hiphop-php-cf9b612/src/hphp/hphp...done.
(gdb) run
Starting program: /home/antoranz/Descargas/php/facebook-hiphop-php-cf9b612/src/hphp/hphp
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x086ed2ee in HPHP::Extension::LoadModules(HPHP::Hdf) ()
(gdb) backtrace
#0  0x086ed2ee in HPHP::Extension::LoadModules(HPHP::Hdf) ()
#1  0x0861fe7a in HPHP::RuntimeOption::Load(HPHP::Hdf&, std::vector<std::string, std::allocator<std::string> >*) ()
#2  0x0834712b in _GLOBAL__sub_I__ZN4HPHP13RuntimeOption6LoadedE ()
#3  0x08d6e252 in __libc_csu_init ()
#4  0xb6db346a in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
#5  0x08369bbd in _start ()


eantoranz 05-29-2012 11:00 AM

The program goes on a little bit. Here's the full output:

Code:

$ gdb ./hphp
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/antoranz/Descargas/php/facebook-hiphop-php-cf9b612/src/hphp/hphp...done.
(gdb) run
Starting program: /home/antoranz/Descargas/php/facebook-hiphop-php-cf9b612/src/hphp/hphp
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x086ed2ee in HPHP::Extension::LoadModules(HPHP::Hdf) ()
(gdb) backtrace
#0  0x086ed2ee in HPHP::Extension::LoadModules(HPHP::Hdf) ()
#1  0x0861fe7a in HPHP::RuntimeOption::Load(HPHP::Hdf&, std::vector<std::string, std::allocator<std::string> >*) ()
#2  0x0834712b in _GLOBAL__sub_I__ZN4HPHP13RuntimeOption6LoadedE ()
#3  0x08d6e252 in __libc_csu_init ()
#4  0xb6db346a in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
#5  0x08369bbd in _start ()
(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x08934170 in HPHP::bt_handler(int) ()
(gdb) backtrace
#0  0x08934170 in HPHP::bt_handler(int) ()
#1  <signal handler called>
#2  0x086ed2ee in HPHP::Extension::LoadModules(HPHP::Hdf) ()
#3  0x0861fe7a in HPHP::RuntimeOption::Load(HPHP::Hdf&, std::vector<std::string, std::allocator<std::string> >*) ()
#4  0x0834712b in _GLOBAL__sub_I__ZN4HPHP13RuntimeOption6LoadedE ()
#5  0x08d6e252 in __libc_csu_init ()
#6  0xb6db346a in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
#7  0x08369bbd in _start ()
(gdb) continue
Continuing.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.



All times are GMT -5. The time now is 09:28 PM.