[SRILM User List] Error in `ngram': munmap_chunk(): invalid pointer
Albert Vernon
avernon at iqventures.com
Fri Nov 11 07:52:15 PST 2016
This problem has been fixed in version 1.7.2.
If you are running an older version and cannot upgrade, you can apply the
patch below and recompile:
--- dstruct/src/Trie.orig 2016-11-08 19:53:40.524000000 +0000
+++ dstruct/src/Trie.cc 2016-11-08 19:53:59.088000000 +0000
@@ -200,11 +200,14 @@
if (removedData == 0) {
Trie<KeyT,DataT> node;
if (sub.remove(keys[0], &node)) {
+#if !defined(__GNUC__) || !(__GNUC__ >= 4 && __GNUC_MINOR__ >= 9 ||
__GNUC__ > 4)
/*
* XXX: Call subtrie destructor explicitly since we're not
* passing the removed node to the caller.
+ * !!! Triggers bug with gcc >= 4.9 optimization !!!
*/
node.~Trie();
+#endif
return true;
} else {
return false;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speech.sri.com/pipermail/srilm-user/attachments/20161111/0968fd92/attachment.html>
More information about the SRILM-User
mailing list