Closed superkaiy closed 1 year ago
Hi @superkaiy, thank you for reporting this. I was able to reproduce your problem. There is a bug and it will be fixed with a new release this week. I will let you know! Sorry for the inconvenience.
Hi @superkaiy, sorry for the delay. Please pull from master and try again (version 5.0.5). About your question, the parameter "-M" is the right way to look for more than one snippet. For example "scanoss -M5 file.c" will look for 5 snippets maximum in "file.c" Please try it and let me know if it does what you are expecting.
Hi @mscasso-scanoss , I updated scanoss, but still meet the exception "segmentation fault"
Sorry to hear that. Could you share your file with me? If you can't because it is a private code, you can send me the wfp of the file.
Hi @mscasso-scanoss I mined it(component Flask) into my local DB with minr:
and test file: test2.py is mixed with flask/cli.py and flask/ctx.py scanner_output.wfp.txt
Okay, in that case please install "valgrind", run again and share the output:
valgrind scanoss -M2 file.c
Hi @mscasso-scanoss The debug information is attached debug.txt debug_detail.txt
Hi @superkaiy , please pull one more time from master and test again. I have added some defensive code, the root of the problem is your KB setup.
Attached you will see the results (there is a json inside the zip file) I got in my system. M2_test.zip
Hi @mscasso-scanoss I pulled the latest code(commit ID: 6187f7d68f1da4a8f9ac0f02536e39330dfb0790), and It's OK now, Thank you. I did not do any changes on KB, so I could not understand that the root of the problem is your KB setup.
That looks nice, I'm going to close this issue, please fill free to open a new-one if you need it.
There are some missing LDB's tables in your system, but anyway this tables are not mandatory, so it actually was a bug in the engine. Thank you very much for your contribution.
Hi, @mscasso-scanoss
"M" option means that it will look for NUMBER of different components in the scanning file (MAX 9), right? did I use it incorrectly?
Is there any options which can help to looking for different snippets in the scanning file, and show all the matching parts of snippets. for examples: the scanning file lines 0 ~ 100 matches flask/cli.py(...), lines 300 ~350 matches flask/ctx.py(...), and lines 500 ~ 570 matches docker/compose/project.py(...)