LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-29-2012, 09:36 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
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
 
Old 05-29-2012, 09:53 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
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 ()
 
Old 05-29-2012, 10:00 AM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
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.
 
  


Reply

Tags
32 bits, core dump, hiphop, hphp, php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a core dump from raw ram dump? cyent Programming 2 08-15-2010 05:57 PM
Core dump issues. Program crashes but does not generate core dump file sabeel_ansari Programming 1 10-07-2009 04:23 PM
Core dump in Ubuntu 8.04 (Empty core file) vineet7kumar Linux - Newbie 1 01-17-2009 05:52 PM
Core Dump on Solaris (Question about core file) dayalan_cse Solaris / OpenSolaris 3 10-06-2007 02:26 AM
installing FreeBSD on Virtual Box error: "Cannot dump. No dump device defined" Valkyrie_of_valhalla *BSD 4 09-06-2007 04:02 AM


All times are GMT -5. The time now is 08:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration