Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

segfault from destructor when instantiating multiple instances of translator #10

Closed
jungikim opened this issue Jan 28, 2017 · 0 comments

Comments

@jungikim
Copy link
Contributor

Instantiating and translating with multiple instances of translator works fine.
But destroying these instances results in a Segmentation fault.

Minimal example:

#include <memory>
#include "onmt/onmt.h"

int main(int argc, char **argv){
 std::unique_ptr<onmt::ITranslator> translator1 = onmt::TranslatorFactory::build("model1.t7");
 std::unique_ptr<onmt::ITranslator> translator2 = onmt::TranslatorFactory::build("model2.t7");
 return 0;
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant