Comments (5)
I have the same problem when I try to compile Wordpress on CentOS 5.4 64bit
Although compiling works on Ubuntu 9.10
I suppose it is the version of boost that is making problems, but I'm not sure.
My boost version is 1.38 on both CentOS and Ubuntu.
from hhvm.
I have the same problem, traceback with debug symbols:
(gdb) bt
#0 HPHP::FileScope::outputCPPForwardDeclarations (this=0x18536af0, cg=@0x7ffffb7195f0, ar=
{px = 0x7ffffb718e60, pn = {pi_ = 0x602777}}) at /usr/include/boost/detail/shared_count.hpp:222
#1 0x0000000000603324 in HPHP::FileScope::outputCPPForwardDeclHeader (this=0x18536af0, cg=@0x7ffffb7195f0, ar=
{px = 0x7ffffb7198d0, pn = {pi_ = 0x18536af0}}) at /home/pelle/hiphop/hiphop-php/src/lib/analysis/file_scope.cpp:469
#2 0x00000000005b9139 in HPHP::AnalysisResult::outputAllCPP (this=0x11ed5970, output=HPHP::CodeGenerator::ClusterCPP,
clusterCount=0, compileDir=0x0) at /home/pelle/hiphop/hiphop-php/src/lib/analysis/analysis_result.cpp:916
#3 0x000000000052a668 in cppTarget (po=@0x7ffffb719fc0, ar={px = 0x7ffffb719ba0, pn = {pi_ = 0x7ffffb719fd8}},
allowSys=) at /home/pelle/hiphop/hiphop-php/src/hphp/main.cpp:712
#4 0x000000000052bc03 in runTargetCheck (po=@0x7ffffb719fc0, ar={px = 0x7ffffb719e90, pn = {pi_ = 0x7ffffb71a018}})
at /home/pelle/hiphop/hiphop-php/src/hphp/main.cpp:763
#5 0x000000000052ce44 in process (po=@0x7ffffb719fc0) at /home/pelle/hiphop/hiphop-php/src/hphp/main.cpp:502
#6 0x000000000052fac0 in main (argc=, argv=)
at /home/pelle/hiphop/hiphop-php/src/hphp/main.cpp:127
from hhvm.
Valgrind report:
==2350== Use of uninitialised value of size 8
==2350== at 0x602619: HPHP::FileScope::outputCPPForwardDeclarations(HPHP::CodeGenerator&, boost::shared_ptrHPHP::AnalysisResult) (file_scope.cpp:369)
==2350== by 0x603323: HPHP::FileScope::outputCPPForwardDeclHeader(HPHP::CodeGenerator&, boost::shared_ptrHPHP::AnalysisResult) (file_scope.cpp:469)
==2350== by 0x5B9138: HPHP::AnalysisResult::outputAllCPP(HPHP::CodeGenerator::Output, int, std::string const_) (analysis_result.cpp:916)
==2350== by 0x52A667: cppTarget(ProgramOptions const&, boost::shared_ptrHPHP::AnalysisResult, bool) (main.cpp:712)
==2350== by 0x52BC02: runTargetCheck(ProgramOptions const&, boost::shared_ptrHPHP::AnalysisResult) (main.cpp:763)
==2350== by 0x52CE43: process(ProgramOptions const&) (main.cpp:502)
==2350== by 0x52FABF: main (main.cpp:127)
==2350==
==2350== Invalid read of size 8
==2350== at 0x602619: HPHP::FileScope::outputCPPForwardDeclarations(HPHP::CodeGenerator&, boost::shared_ptrHPHP::AnalysisResult) (file_scope.cpp:369)
==2350== by 0x603323: HPHP::FileScope::outputCPPForwardDeclHeader(HPHP::CodeGenerator&, boost::shared_ptrHPHP::AnalysisResult) (file_scope.cpp:469)
==2350== by 0x5B9138: HPHP::AnalysisResult::outputAllCPP(HPHP::CodeGenerator::Output, int, std::string const_) (analysis_result.cpp:916)
==2350== by 0x52A667: cppTarget(ProgramOptions const&, boost::shared_ptrHPHP::AnalysisResult, bool) (main.cpp:712)
==2350== by 0x52BC02: runTargetCheck(ProgramOptions const&, boost::shared_ptrHPHP::AnalysisResult) (main.cpp:763)
==2350== by 0x52CE43: process(ProgramOptions const&) (main.cpp:502)
==2350== by 0x52FABF: main (main.cpp:127)
==2350== Address 0x143192C0 is 24 bytes inside a block of size 71 free'd
==2350== at 0x4A05130: operator delete(void_) (vg_replace_malloc.c:244)
==2350== by 0x6659F9: HPHP::CodeGenerator::printInclude(std::string const&) (basic_string.h:233)
==2350== by 0x6033FA: HPHP::FileScope::outputCPPForwardDeclHeader(HPHP::CodeGenerator&, boost::shared_ptrHPHP::AnalysisResult) (file_scope.cpp:465)
==2350== by 0x5B9138: HPHP::AnalysisResult::outputAllCPP(HPHP::CodeGenerator::Output, int, std::string const_) (analysis_result.cpp:916)
==2350== by 0x52A667: cppTarget(ProgramOptions const&, boost::shared_ptrHPHP::AnalysisResult, bool) (main.cpp:712)
==2350== by 0x52BC02: runTargetCheck(ProgramOptions const&, boost::shared_ptrHPHP::AnalysisResult) (main.cpp:763)
==2350== by 0x52CE43: process(ProgramOptions const&) (main.cpp:502)
==2350== by 0x52FABF: main (main.cpp:127)
==2350==
==2350== Invalid read of size 8
==2350== at 0x602620: HPHP::FileScope::outputCPPForwardDeclarations(HPHP::CodeGenerator&, boost::shared_ptrHPHP::AnalysisResult) (file_scope.cpp:369)
==2350== by 0x603323: HPHP::FileScope::outputCPPForwardDeclHeader(HPHP::CodeGenerator&, boost::shared_ptrHPHP::AnalysisResult) (file_scope.cpp:469)
==2350== by 0x5B9138: HPHP::AnalysisResult::outputAllCPP(HPHP::CodeGenerator::Output, int, std::string const_) (analysis_result.cpp:916)
==2350== by 0x52A667: cppTarget(ProgramOptions const&, boost::shared_ptrHPHP::AnalysisResult, bool) (main.cpp:712)
==2350== by 0x52BC02: runTargetCheck(ProgramOptions const&, boost::shared_ptrHPHP::AnalysisResult) (main.cpp:763)
==2350== by 0x52CE43: process(ProgramOptions const&) (main.cpp:502)
==2350== by 0x52FABF: main (main.cpp:127)
==2350== Address 0x143192C8 is 32 bytes inside a block of size 71 free'd
==2350== at 0x4A05130: operator delete(void_) (vg_replace_malloc.c:244)
==2350== by 0x6659F9: HPHP::CodeGenerator::printInclude(std::string const&) (basic_string.h:233)
==2350== by 0x6033FA: HPHP::FileScope::outputCPPForwardDeclHeader(HPHP::CodeGenerator&, boost::shared_ptrHPHP::AnalysisResult) (file_scope.cpp:465)
==2350== by 0x5B9138: HPHP::AnalysisResult::outputAllCPP(HPHP::CodeGenerator::Output, int, std::string const_) (analysis_result.cpp:916)
==2350== by 0x52A667: cppTarget(ProgramOptions const&, boost::shared_ptrHPHP::AnalysisResult, bool) (main.cpp:712)
==2350== by 0x52BC02: runTargetCheck(ProgramOptions const&, boost::shared_ptrHPHP::AnalysisResult) (main.cpp:763)
==2350== by 0x52CE43: process(ProgramOptions const&) (main.cpp:502)
==2350== by 0x52FABF: main (main.cpp:127)
==2350==
==2350== Invalid read of size 8
==2350== at 0x602777: HPHP::FileScope::outputCPPForwardDeclarations(HPHP::CodeGenerator&, boost::shared_ptrHPHP::AnalysisResult) (shared_count.hpp:222)
==2350== by 0x603323: HPHP::FileScope::outputCPPForwardDeclHeader(HPHP::CodeGenerator&, boost::shared_ptrHPHP::AnalysisResult) (file_scope.cpp:469)
==2350== by 0x5B9138: HPHP::AnalysisResult::outputAllCPP(HPHP::CodeGenerator::Output, int, std::string const_) (analysis_result.cpp:916)
==2350== by 0x52A667: cppTarget(ProgramOptions const&, boost::shared_ptrHPHP::AnalysisResult, bool) (main.cpp:712)
==2350== by 0x52BC02: runTargetCheck(ProgramOptions const&, boost::shared_ptrHPHP::AnalysisResult) (main.cpp:763)
==2350== by 0x52CE43: process(ProgramOptions const&) (main.cpp:502)
==2350== by 0x52FABF: main (main.cpp:127)
==2350== Address 0x6F6C672F73797344 is not stack'd, malloc'd or (recently) free'd
Core dumped: Segmentation fault
==2350==
==2350== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 4 from 1)
==2350== malloc/free: in use at exit: 300,872,587 bytes in 2,162,216 blocks.
==2350== malloc/free: 6,799,686 allocs, 4,637,470 frees, 1,478,541,685 bytes allocated.
==2350== For counts of detected errors, rerun with: -v
==2350== searching for pointers to 2,162,216 not-freed blocks.
==2350== checked 282,525,416 bytes.
==2350==
==2350== LEAK SUMMARY:
==2350== definitely lost: 0 bytes in 0 blocks.
==2350== possibly lost: 8,438,167 bytes in 199,375 blocks.
==2350== still reachable: 292,434,420 bytes in 1,962,841 blocks.
==2350== suppressed: 0 bytes in 0 blocks.
==2350== Reachable blocks (those to which a pointer was found) are not shown.
==2350== To see them, rerun with: --show-reachable=yes
Segmentation fault
0x6F6C672F73797344 is obviously garbage, the string "Dsys/glo" to be exact.
from hhvm.
It does not crash when compiled with -O0 -g (set by editing CMake/HPHPSetup.cmake). I should probably mention that my gcc version is gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46).
from hhvm.
We're only supporting GCC 4.3+ now, can you give that a test.
from hhvm.
Related Issues (20)
- Shapes::keyExists does not refine nested key information
- `grapheme\slice` returns unexpected result for emojis
- Use type Bar\{Bar} treated differently to use type Bar\Bar
- Bn
- com.dts.freefireth HOT 2
- Request to join vcpkg HOT 1
- dl.hhvm.com repo is unavailable due to SSL issuer HOT 12
- 仓库测试1
- Profile-Guided Optimization (PGO) and BOLT impact on HHVM HOT 3
- Bug in use type Bar\{Bar}; HOT 1
- Hack Instagram HOT 1
- CMake Cannot Find Multiple Source Files HOT 2
- mehranshiebani HOT 1
- Getting started guide is using abandoned packages HOT 3
- Tracker HOT 4
- Pornography HOT 1
- https://m.facebook.com/tung.ma.56232?eav=AfYduiFI69L6IMr5JHd0KG-PTeupt-u6spe7gNjK-nYsUoAHch9-k2DcpvOvulHJIJ8&paipv=0 HOT 1
- https://m.facebook.com/tung.ma.56232?eav=AfYduiFI69L6IMr5JHd0KG-PTeupt-u6spe7gNjK-nYsUoAHch9-k2DcpvOvulHJIJ8&paipv=0 HOT 2
- https://github.com/facebook/hhvm/issues/9406 HOT 1
- https://github.com/facebook/hhvm/issues/9406 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hhvm.