Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEGV signal occurred when running program thulac #35

Open
fCorleone opened this issue Jul 18, 2018 · 1 comment
Open

SEGV signal occurred when running program thulac #35

fCorleone opened this issue Jul 18, 2018 · 1 comment

Comments

@fCorleone
Copy link

When I try to run thulac and thulac_test program. I found this :

ASAN:SIGSEGV
=================================================================
==12976==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fbf3a4841ba bp 0x000000000000 sp 0x7ffc53739440 T0)
    #0 0x7fbf3a4841b9 in _IO_fread (/lib/x86_64-linux-gnu/libc.so.6+0x6e1b9)
    #1 0x442c38 in fread /usr/include/x86_64-linux-gnu/bits/stdio2.h:295
    #2 0x442c38 in permm::BasicModel<int>::BasicModel(char const*) include/cb_model.h:89
    #3 0x436b5b in THULAC::init(char const*, char const*, int, int, int, char) include/thulac.h:157
    #4 0x404962 in main src/thulac.cc:80
    #5 0x7fbf3a43682f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
    #6 0x4054e8 in _start (/home/mfc_fuzz/newprogram/THULAC/thulac+0x4054e8)
@fCorleone
Copy link
Author

I believe another issue occurred when I running train_c. The input file has been put at :https://github.com/fCorleone/fuzz_programs/blob/master/thulac/issue2_testcase.
It's another SEGV signal issue:

ASAN:SIGSEGV
=================================================================
==13658==ERROR: AddressSanitizer: SEGV on unknown address 0x61c00008e89c (pc 0x000000413848 bp 0x61c00000f080 sp 0x7ffdf4de1450 T0)
    #0 0x413847 in thulac::NGramFeature::find_bases(int, int, int, int&, int&) include/cb_ngram_feature.h:248
    #1 0x413847 in thulac::NGramFeature::put_values(int*, int) include/cb_ngram_feature.h:118
    #2 0x413847 in thulac::TaggingDecoder::put_values() include/cb_tagging_decoder.h:387
    #3 0x42c888 in thulac::TaggingLearner::train(char const*, char const*, char const*, char const*) include/cb_tagging_learner.h:305
    #4 0x404239 in main src/train_c.cc:62
    #5 0x7f54f512582f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
    #6 0x404c98 in _start (/home/mfc_fuzz/newprogram/THULAC/train_c+0x404c98)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant