-
Notifications
You must be signed in to change notification settings - Fork 212
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
Segfault in souffleprof #2229
Labels
bug - identified
Bugs with an identified cause
Comments
ASan gives a bit more detail:
|
With this diff: diff --git a/src/include/souffle/profile/Reader.h b/src/include/souffle/profile/Reader.h
index 1e93980c5..7df098035 100644
--- a/src/include/souffle/profile/Reader.h
+++ b/src/include/souffle/profile/Reader.h
@@ -329,6 +329,9 @@ public:
for (const auto& rule : relation.second->getRuleMap()) {
for (const auto& atom : rule.second->getAtoms()) {
std::string relationName = extractRelationNameFromAtom(atom);
+ std::cout << "NAME " << relationName << std::endl;
+ std::cout << "ATOM " << atom.identifier << std::endl;
+ std::cout << "REL " << relationMap[relationName] << std::endl;
relationMap[relationName]->addReads(atom.frequency);
}
}
@@ -340,6 +343,9 @@ public:
relationName = relationName.substr(7);
}
assert(relationMap.count(relationName) > 0 || "Relation name for atom not found");
+ std::cout << "NAME " << relationName << std::endl;
+ std::cout << "ATOM " << atom.identifier << std::endl;
+ std::cout << "REL " << relationMap[relationName] << std::endl;
relationMap[relationName]->addReads(atom.frequency);
}
} I see:
There's some subsumption going on in my source program for |
We have not tested the profile for subsumption. |
Can you produce a small test-case? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GDB backtrace:
prof.json.zip
The text was updated successfully, but these errors were encountered: