Comments (4)
Right, I have this same problem, too. It happens both on fedora 15 & debian
wheezy when using 'infer' in alchemy-2. But when I run 'liftedinfer' there is
no problem anymore.
Original comment by [email protected]
on 12 Mar 2013 at 7:24
from alchemy-2.
Same here. Here is valgrind output:
:~/alchemy/alchemy-2/bin$ valgrind ./infer -i base.mln -r
uniform.result -e empty.db -q Heads
==8431== at 0x8073311: Clause::getPredicate(int const&) const (clause.h:301)
==8431== by 0x819AB45: buildInference(Inference*&, Domain*&, bool const&,
Array<Predicate*>&, Array<TruthValue>&) (infer.h:1257)
==8431== by 0x819CAD8: main (infer.cpp:620)
==8431== Address 0x8 is not stack'd, malloc'd or (recently) free'd
==8431== Process terminating with default action of signal 11 (SIGSEGV)
==8431== Access not within mapped region at address 0x8
==8431== at 0x8073311: Clause::getPredicate(int const&) const (clause.h:301)
==8431== by 0x819AB45: buildInference(Inference*&, Domain*&, bool const&,
Array<Predicate*>&, Array<TruthValue>&) (infer.h:1257)
==8431== by 0x819CAD8: main (infer.cpp:620)
==8431== If you believe this happened as a result of a stack
==8431== overflow in your program's main thread (unlikely but
==8431== possible), you can try to increase the size of the
==8431== main thread stack using the --main-stacksize= flag.
==8431== The main thread stack size used in this run was 8388608.
==8431==
==8431== HEAP SUMMARY:
==8431== in use at exit: 79,569 bytes in 509 blocks
==8431== total heap usage: 1,017 allocs, 508 frees, 116,164 bytes allocated
==8431==
==8431== LEAK SUMMARY:
==8431== definitely lost: 0 bytes in 0 blocks
==8431== indirectly lost: 0 bytes in 0 blocks
==8431== possibly lost: 13,251 bytes in 48 blocks
==8431== still reachable: 66,318 bytes in 461 blocks
==8431== suppressed: 0 bytes in 0 blocks
==8431== Rerun with --leak-check=full to see details of leaked memory
==8431==
==8431== For counts of detected and suppressed errors, rerun with: -v
==8431== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)
So the problem occurs at line 301 of clause.h file. (the predicate[idx] is
invalid read)
Original comment by [email protected]
on 20 Aug 2013 at 8:36
from alchemy-2.
Same problem here
Original comment by [email protected]
on 15 Sep 2014 at 7:36
from alchemy-2.
Does anyone know how to solve this problem?
Original comment by [email protected]
on 10 Oct 2014 at 1:10
from alchemy-2.
Related Issues (13)
- Compilation error HOT 4
- Could not process a single mln file on Windows
- Incorrect grounding of formula with two bi-implications. HOT 1
- Compilation error Mac OSX HOT 2
- Assertion `typeId == vgt->typeId' failed. HOT 1
- Compilation fails (passing address of temporary)
- Compile error with gcc 4.7.2
- Assertion `typeId == vgt->typeId' failed."
- Weight 10 not working
- Online Manual
- Parse error with ! operator
- Installation errors
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 alchemy-2.