jimregan / foma

Automatically exported from code.google.com/p/foma
0 stars 0 forks source link

fsm_union (API) problem with empty set and empty string built using fsm_construct_* #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Write the attached code (filename: bug_report.cpp)
2. Compile using "g++ -ggdb3 -o bug_report bug_report.cpp -lfoma"
3. Run "valgrind --leak-check=full ./bug_report"

Expected result: no leaks and no errors.
Present result: Leak (25 allocs, 20 frees) and error (invalid write) 

What version of the product are you using? On what operating system?
Foma Api (0.9.16alpha (20111213) according to first line in the changelog). I 
changed the Makefile to compile with flag -ggdb3 for debug purposes. I also 
changed prefix to "/usr".
Archlinux quite recently updated.

Please provide any additional information below.
The attached files are the C++ code and valgrind output.

Original issue reported on code.google.com by castano....@gmail.com on 8 May 2012 at 6:25

Attachments: