chenkovsky / marisa-trie

Automatically exported from code.google.com/p/marisa-trie
Other
0 stars 0 forks source link

vector-test caused a segmentation fault #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile tests/vector-test.cc like:
$ g++ vector-test.cc -o vector-test -I../lib/ -lmarisa
(g++ 3.4.6)
2. Run the test.
3. A segmentation fault occurs.

What is the expected output? What do you see instead?
No segmentation fault occurs.

What version of the product are you using? On what operating system?

marisa-trie-0.2.0-beta4
CentOS 4.8

Please provide any additional information below.
The error seems to occur at vector-test.cc line 114.

Original issue reported on code.google.com by nokunok...@gmail.com on 10 May 2011 at 9:25

GoogleCodeExporter commented 9 years ago
Thank you for your report!

Please add -D_DEBUG to the 1st step as follows:
$ g++ -D_DEBUG vector-test.cc -o vector-test -I../lib/ -lmarisa
Then, this test program works well.

Without the macro "_DEBUG", vector-test fails as follows:
$ ./vector-test 
vector-test.cc:16: TestPopCount32(): ok
vector-test.cc:46: TestPopCount64(): ok
vector-test.cc:88: TestRankIndex(): ok
Segmentation fault

Original comment by susumu.y...@gmail.com on 14 May 2011 at 7:23

GoogleCodeExporter commented 9 years ago
Thank you!

Original comment by nokunok...@gmail.com on 14 May 2011 at 7:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by susumu.y...@gmail.com on 1 Oct 2011 at 12:44