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

Segmentation fault #381

Closed
burek opened this issue Aug 3, 2011 · 5 comments
Closed

Segmentation fault #381

burek opened this issue Aug 3, 2011 · 5 comments

Comments

@burek
Copy link

burek commented Aug 3, 2011

I'm getting Segmentation fault just by running hphp

root@video2:~/dev/hiphop-php/src# hphp/hphp
Segmentation fault

here is gdb output:

root@video2:~/dev/hiphop-php/src# gdb hphp/hphp
GNU gdb (GDB) 7.2-debian
Copyright (C) 2010 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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /root/dev/hiphop-php/src/hphp/hphp...done.
(gdb) r
Starting program: /root/dev/hiphop-php/src/hphp/hphp
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000b624bb in HPHP::Extension::LoadModules(HPHP::Hdf) ()
(gdb) bt
#0 0x0000000000b624bb in HPHP::Extension::LoadModules(HPHP::Hdf) ()
#1 0x0000000000a3f1f0 in HPHP::RuntimeOption::Load(HPHP::Hdf&, std::vector<std::basic_string<char, std::char_tra its, std::allocator >, std::allocator<std::basic_string<char, std::char_traits, std::allocator< char> > > >*) ()
#2 0x0000000000782d8d in _GLOBAL__sub_I__ZN4HPHP13RuntimeOption6LoadedE ()
#3 0x000000000129745d in __libc_csu_init ()
#4 0x00007ffff1fd6e40 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#5 0x00000000007933c1 in _start ()

(gdb)

@ftzdomino
Copy link

I get this too, here's some more info with debug compile enabled:

#0 0x00007ffff21f5405 in raise (sig=)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007ffff21f8680 in abort () at abort.c:92
#2 0x00007ffff21ee5b1 in __assert_fail (
assertion=0x1be86de "s_registered_extensions",
file=, line=53,
function=0x1be8a20 "static void HPHP::Extension::LoadModules(HPHP::Hdf)") at assert.c:81
#3 0x0000000001262d30 in HPHP::Extension::LoadModules (hdf=...)
at /home/jsnell/public_html/hiphop/hiphop-php/src/runtime/ext/extension.cpp:53
#4 0x0000000001062379 in HPHP::RuntimeOption::Load (config=...,
overwrites=0x0)
at /home/jsnell/public_html/hiphop/hiphop-php/src/runtime/base/runtime_option.cpp:1077
#5 0x0000000001066436 in HPHP::DefaultRuntimeOptionLoader::DefaultRuntimeOptionLoader (this=0x2638c04)
at /home/jsnell/public_html/hiphop/hiphop-php/src/runtime/base/runtime_option.cpp:382
#6 0x0000000001066197 in __static_initialization_and_destruction_0 (
__initialize_p=1, __priority=65535)
at /home/jsnell/public_html/hiphop/hiphop-php/src/runtime/base/runtime_option.cpp:386
#7 0x0000000001066201 in _GLOBAL__sub_I__ZN4HPHP13RuntimeOption6LoadedE ()
at /home/jsnell/public_html/hiphop/hiphop-php/src/runtime/base/runtime_option.cpp:1082
#8 0x000000000199e7ad in __libc_csu_init ()
#9 0x00007ffff21e1e40 in __libc_start_main (main=,
argc=, ubp_av=,
init=0x199e750 <__libc_csu_init>, fini=0x7ffff7fc8e00,
rtld_fini=0x6765725f7360206e, stack_end=0x7fffffffe5b8)
at libc-start.c:187
#10 0x0000000000d4412d in _start ()
(gdb) info fStack level 0, frame at 0x7fffffff8b60:
rip = 0x7ffff21f5405 in raise
(../nptl/sysdeps/unix/sysv/linux/raise.c:64); saved rip 0x7ffff21f8680
called by frame at 0x7fffffff8c90
source language c.
Arglist at 0x7fffffff8b50, args: sig=
Locals at 0x7fffffff8b50, Previous frame's sp is 0x7fffffff8b60
Saved registers:
rip at 0x7fffffff8b58
(gdb) info args
sig =

@alecmocatta
Copy link

The suggestion in #319 (comment) seems to resolve this.

@jdespatis
Copy link

I've had encountered this problem also (#419), but thanks to https://github.com/facebook/hiphop-php/wiki/Building-and-Installing-on-Ubuntu-11.10, that gives the suggestion #319 (comment), all works nicely now...

=> I think you can close this issue

@ftzdomino
Copy link

It definitely looks like a dupe of #319

@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
This issue was closed.
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

5 participants