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

core dumping right off the bat #516

Closed
eantoranz opened this issue May 28, 2012 · 4 comments
Closed

core dumping right off the bat #516

eantoranz opened this issue May 28, 2012 · 4 comments

Comments

@eantoranz
Copy link

Hi!

I'm a newbie on hiphop and/or cmake so take it easy. I just finished compiling hphp on a precise (32-bit) box. When I try to run hphp, it symply core dumps:

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

Here's the last part of strace on it:

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)
$ echo $LD_LIBRARY_PATH
/usr/local/curl/lib/:/usr/local/libevent/lib/:/usr/local/onig/lib/

I'm not sure if it's because of laking correct environment variables.. .but these are the values I've exported:
$ 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/

Thanks in advance.

@eantoranz
Copy link
Author

The problem could have started right before that:

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

Then it started with what I wrote before:
rt_sigaction(SIGQUIT, {0x89340b0, [QUIT], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGILL, {0x89340b0, [ILL], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
blah
blah

I'm wondering if it's something with that file? The file is there and it's readable and the content is 0-1.

@eantoranz
Copy link
Author

backtrace from gdb:

$ 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::allocatorstd::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 ()

@thedjnK
Copy link
Contributor

thedjnK commented May 31, 2012

#0 0x086ed2ee in HPHP::Extension::LoadModules(HPHP::Hdf) ()

Maybe an incompatible extension. Hiphop is coded for 64-bit support only, all 32-bit support is provided by the community only. Try removing some extensions and seeing it it still happens.

@ptarjan
Copy link
Contributor

ptarjan commented May 13, 2013

We're closing out all bugs older than 2 months. http://www.hiphop-php.com/wp/?p=575

If this is still an issue, please re-open it, and in order of goodness:

  1. Give detailed repro steps
  2. Write a test case in hphp/tests/quick (run it with hphp/tests/run) and send the pull request
  3. Fix it in a pull request

@ptarjan ptarjan closed this as completed May 13, 2013
facebook-github-bot pushed a commit that referenced this issue Aug 22, 2022
Summary:
X-link: facebook/fbthrift#516

X-link: facebook/watchman#1050

X-link: facebook/proxygen#426

X-link: facebook/folly#1842

X-link: facebook/fboss#117

Sadly, even though Ubuntu 18.04 is still in LTS, GitHub is deprecating
its runner image.

Migrate the generated GitHub Actions to 20.04.

actions/runner-images#6002

https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/

Reviewed By: fanzeyi

Differential Revision: D38877286

fbshipit-source-id: 85f3324d6666eacb190a43985585b438de69d545
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

3 participants