hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

Segmentation fault

Open burek opened this issue 15 years ago • 5 comments

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)

burek avatar Aug 03 '11 13:08 burek

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 =

ftzdomino avatar Sep 02 '11 17:09 ftzdomino

The suggestion in https://github.com/facebook/hiphop-php/issues/319#issuecomment-1445537 seems to resolve this.

alecmocatta avatar Oct 18 '11 17:10 alecmocatta

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

=> I think you can close this issue

jdespatis avatar Nov 11 '11 08:11 jdespatis

It definitely looks like a dupe of #319

ftzdomino avatar Nov 11 '11 17:11 ftzdomino

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 avatar May 13 '13 21:05 ptarjan