Skip to content

Instantly share code, notes, and snippets.

@Kazanir
Created October 12, 2015 17:04
Show Gist options
  • Select an option

  • Save Kazanir/3167ed186d8aa57ea600 to your computer and use it in GitHub Desktop.

Select an option

Save Kazanir/3167ed186d8aa57ea600 to your computer and use it in GitHub Desktop.
GDB output from oss-perf / hphp
(gdb) run '--hphp' '--target' 'hhbc' '--output-dir' '/tmp/hhvm-nginxIOD3Ny' '--input-dir' '/tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1' '--module' '/' '--cmodule' '/' '-l3' '-k1'
Starting program: /usr/bin/hhvm '--hphp' '--target' 'hhbc' '--output-dir' '/tmp/hhvm-nginxIOD3Ny' '--input-dir' '/tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1' '--module' '/' '--cmodule' '/' '-l3' '-k1'
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Traceback (most recent call last):
File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in <module>
from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named 'libstdcxx'
running hphp...
parsing inputs...
[New Thread 0x7fffdefff700 (LWP 13679)]
[New Thread 0x7fffde7ff700 (LWP 13680)]
[New Thread 0x7fffddfff700 (LWP 13681)]
[New Thread 0x7fffd53ff700 (LWP 13682)]
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/core/autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/core/modules/statistics/autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/core/modules/system/src/Tests/Installer/core/includes/install.inc
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/core/modules/system/tests/autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/core/tests/Drupal/Tests/Core/Update/vfs:/drupal/sites/default/modules/module_a/module_a.post_update.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/core/tests/Drupal/Tests/Core/Update/vfs:/drupal/sites/default/modules/module_b/module_b.post_update.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/sites/default/core/themes/engines/twig/twig.engine
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/doctrine/cache/vendor/autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/doctrine/collections/vendor/autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/doctrine/common/vendor/autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/easyrdf/easyrdf/vendor/autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/arc/ARC2.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/arc/ARC2.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/egulias/isemail/is_email.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/guzzlehttp/promises/vendor/autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/guzzlehttp/psr7/vendor/autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/masterminds/html5/vendor/autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/phpunit/php-code-coverage/scripts/PHP/CodeCoverage/Autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/phpunit/php-token-stream/tests/_fixture/test2.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/phpunit/php-token-stream/tests/_fixture/test3.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/phpunit/php-token-stream/tests/_fixture/test4.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/phpunit/php-token-stream/tests/_fixture/test1.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/phpunit/phpunit-mock-objects/vendor/autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/phpunit/phpunit/vendor/autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/sebastian/comparator/vendor/autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/phpunit/php-token-stream/vendor/autoload.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/symfony/dependency-injection/Tests/Fixtures/php/%path%foo.php
Unable to stat file /tmp/hhvm-nginxIOD3Ny/drupal-8.0.0-rc1/vendor/symfony/debug/Tests/FIXTURES2/REQUIREDTWICE.PHP
[Thread 0x7fffd53ff700 (LWP 13682) exited]
[Thread 0x7fffddfff700 (LWP 13681) exited]
[Thread 0x7fffde7ff700 (LWP 13680) exited]
[Thread 0x7fffdefff700 (LWP 13679) exited]
analyzeProgram...
Program received signal SIGSEGV, Segmentation fault.
__atomic_add_dispatch (__val=1, __mem=0x72756769666e6f6b) at /usr/include/c++/4.8/ext/atomicity.h:96
96 __atomic_add(__mem, __val);
(gdb) bt
#0 __atomic_add_dispatch (__val=1, __mem=0x72756769666e6f6b) at /usr/include/c++/4.8/ext/atomicity.h:96
#1 _M_add_ref_copy (this=0x72756769666e6f63) at /usr/include/c++/4.8/bits/shared_ptr_base.h:131
#2 __shared_count (__r=..., this=0x7fffffffdba8) at /usr/include/c++/4.8/bits/shared_ptr_base.h:553
#3 __shared_ptr<HPHP::ClassScope, void> (__r=..., this=0x7fffffffdba0) at /usr/include/c++/4.8/bits/shared_ptr_base.h:786
#4 shared_ptr<HPHP::ClassScope, void> (__r=..., this=0x7fffffffdba0) at /usr/include/c++/4.8/bits/shared_ptr.h:219
#5 std::__unguarded_linear_insert<__gnu_cxx::__normal_iterator<std::shared_ptr<HPHP::ClassScope>*, std::vector<std::shared_ptr<HPHP::ClassScope>, std::allocator<std::shared_ptr<HPHP::ClassScope> > > >, bool (*)(std::shared_ptr<HPHP::BlockScope> const&, std::shared_ptr<HPHP::BlockScope> const&)> (__last=..., __last@entry=...,
__comp=__comp@entry=0x263ccf0 <by_source(HPHP::BlockScopePtr const&, HPHP::BlockScopePtr const&)>) at /usr/include/c++/4.8/bits/stl_algo.h:2117
#6 0x0000000002640c18 in __unguarded_insertion_sort<__gnu_cxx::__normal_iterator<std::shared_ptr<HPHP::ClassScope>*, std::vector<std::shared_ptr<HPHP::ClassScope> > >, bool (*)(std::shared_ptr<HPHP::BlockScope> const&, std::shared_ptr<HPHP::BlockScope> const&)> (__comp=0x263ccf0 <by_source(HPHP::BlockScopePtr const&, HPHP::BlockScopePtr const&)>,
__last=..., __first=...) at /usr/include/c++/4.8/bits/stl_algo.h:2194
#7 std::__final_insertion_sort<__gnu_cxx::__normal_iterator<std::shared_ptr<HPHP::ClassScope>*, std::vector<std::shared_ptr<HPHP::ClassScope>, std::allocator<std::shared_ptr<HPHP::ClassScope> > > >, bool (*)(std::shared_ptr<HPHP::BlockScope> const&, std::shared_ptr<HPHP::BlockScope> const&)> (__first=..., __first@entry=..., __last=..., __last@entry=...,
__comp=__comp@entry=0x263ccf0 <by_source(HPHP::BlockScopePtr const&, HPHP::BlockScopePtr const&)>) at /usr/include/c++/4.8/bits/stl_algo.h:2227
#8 0x00000000026440b1 in sort<__gnu_cxx::__normal_iterator<std::shared_ptr<HPHP::ClassScope>*, std::vector<std::shared_ptr<HPHP::ClassScope> > >, bool (*)(std::shared_ptr<HPHP::BlockScope> const&, std::shared_ptr<HPHP::BlockScope> const&)> (__comp=0x263ccf0 <by_source(HPHP::BlockScopePtr const&, HPHP::BlockScopePtr const&)>, __last=..., __first=...)
at /usr/include/c++/4.8/bits/stl_algo.h:5500
#9 HPHP::AnalysisResult::markRedeclaringClasses (this=this@entry=0x7fffe6542e00) at /tmp/tmp.lx9nz2IAHU/hphp/compiler/analysis/analysis_result.cpp:351
#10 0x0000000002644bf9 in HPHP::AnalysisResult::analyzeProgram (this=0x7fffe6542e00, system=system@entry=false)
at /tmp/tmp.lx9nz2IAHU/hphp/compiler/analysis/analysis_result.cpp:552
#11 0x0000000002604117 in HPHP::process (po=...) at /tmp/tmp.lx9nz2IAHU/hphp/compiler/compiler.cpp:615
#12 0x00000000026048b7 in HPHP::compiler_main (argc=argc@entry=13, argv=argv@entry=0x7fffffffe5a0) at /tmp/tmp.lx9nz2IAHU/hphp/compiler/compiler.cpp:173
#13 0x00000000014c3c20 in main (argc=14, argv=0x7fffffffe598) at /tmp/tmp.lx9nz2IAHU/hphp/hhvm/main.cpp:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment