taku910 / crfpp

CRF++: Yet Another CRF toolkit
Other
505 stars 192 forks source link

SIGABRT on bad model path to crf_learn #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. give crf_learn a bad path to the new model
2.
3.

What is the expected output? What do you see instead?
I expect an error message that says something about the bad path.
Instead I get a SIGABRT when the error message code runs through and deletes
taggers that have already been deleted.

What version of the product are you using? On what operating system?
head of the trunk as of a week ago.

Please provide any additional information below.
I fixed it locally by setting the tagger pointers to NULL after deleting them.
Then, in the error loop I check for NULL before deleting possibly a second time.

Original issue reported on code.google.com by croeder6000 on 10 May 2013 at 2:51