wh1t3p1g / tabby

A CAT called tabby ( Code Analysis Tool )
https://www.yuque.com/wh1t3p1g/tp0c1t/lf12lg69ngh47akx
Apache License 2.0
1.3k stars 153 forks source link

使用JDK17起最新版release报错 #88

Closed MountainCui25 closed 5 months ago

MountainCui25 commented 7 months ago

看报错感觉像是配置地址的问题?但是也没有找到哪里可以调整,请大佬执教,log:

`D:\Tools\Tabby>D:\Env\JDK\JDK17\bin\java -Xmx20g -jar tabby.jar


(" ") /""\ | "\ | "|" \/" | )/ \/ / \ (. |) :)(. |) :)\ \ / \ / /' /\ \ |: \/ |: \/ \ \/ |. | // ' \ (| \ (| \ / / \: | / / \ \ |: |) :)|: |) :)/ / _|(/ _)(__/ (/|___/ v1.3.2 Happy Hunting Bugs! XD https://github.com/wh1t3p1g/tabby

2024-03-18T11:11:28.287+08:00 INFO 23568 --- [ main] tabby.App : Starting App using Java 17.0.10 with PID 23568 (D:\Tools\Tabby\tabby.jar started by Trevor in D:\Tools\Tabby) 2024-03-18T11:11:28.289+08:00 INFO 23568 --- [ main] tabby.App : The following 1 profile is active: "default" 2024-03-18T11:11:31.459+08:00 INFO 23568 --- [ main] tabby.core.container.RulesContainer : load 57 rules success! 2024-03-18T11:11:31.954+08:00 INFO 23568 --- [ main] tabby.config.AsyncConfiguration : Open 15 size for thread pool tabby-collector 2024-03-18T11:11:31.961+08:00 INFO 23568 --- [ main] tabby.config.AsyncConfiguration : Open 5 size for thread pool tabby-saver 2024-03-18T11:11:32.096+08:00 INFO 23568 --- [ main] tabby.App : Started App in 4.495 seconds (process running for 5.084) 2024-03-18T11:11:32.105+08:00 INFO 23568 --- [ main] tabby.App : Target java.home: D:\Env\JDK\JDK17 2024-03-18T11:11:32.275+08:00 INFO 23568 --- [ main] tabby.core.Analyser : Get 3 JDK dependencies 2024-03-18T11:11:32.275+08:00 INFO 23568 --- [ main] tabby.core.Analyser : Try to collect all targets 2024-03-18T11:11:32.278+08:00 INFO 23568 --- [ main] tabby.core.Analyser : Target: D:/JavaProject/KCLK/keycloak-10.0.2 2024-03-18T11:11:41.135+08:00 INFO 23568 --- [ main] tabby.core.Analyser : Load basic classes 2024-03-18T11:11:41.426+08:00 INFO 23568 --- [ main] tabby.core.Analyser : Load dynamic classes 2024-03-18T11:11:41.427+08:00 INFO 23568 --- [ main] tabby.core.Analyser : Total analyse 23 targets. 2024-03-18T11:11:41.433+08:00 INFO 23568 --- [ main] tabby.core.Analyser : Target 23, Dependencies 25 2024-03-18T11:11:41.433+08:00 INFO 23568 --- [ main] tabby.core.scanner.ClassInfoScanner : Start to collect 23 targets' class information. 2024-03-18T11:11:41.711+08:00 ERROR 23568 --- [ main] tabby.core.scanner.ClassInfoScanner : Load Error: java.util.logging.ConsoleHandler, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'C:\Users\varas\AppData\Local\Temp\tabby_1JN8664641561577757425\jsp_8XO\jsp_classes_vJ8Qi\org\apache\jsp' does not exist. 2024-03-18T11:11:41.713+08:00 ERROR 23568 --- [ main] tabby.core.scanner.ClassInfoScanner : Load Error: java.util.logging.ErrorManager, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'C:\Users\varas\AppData\Local\Temp\tabby_1JN8664641561577757425\jsp_8XO\jsp_classes_vJ8Qi\org\apache\jsp' does not exist. 2024-03-18T11:11:41.717+08:00 ERROR 23568 --- [ main] tabby.core.scanner.ClassInfoScanner : Load Error: java.util.logging.FileHandler$1, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'C:\Users\varas\AppData\Local\Temp\tabby_1JN8664641561577757425\jsp_8XO\jsp_classes_vJ8Qi\org\apache\jsp' does not exist. 2024-03-18T11:11:41.717+08:00 ERROR 23568 --- [ main] tabby.core.scanner.ClassInfoScanner : Load Error: java.util.logging.FileHandler$InitializationErrorManager, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'C:\Users\varas\AppData\Local\Temp\tabby_1JN8664641561577757425\jsp_8XO\jsp_classes_vJ8Qi\org\apache\jsp' does not exist. 2024-03-18T11:11:41.718+08:00 ERROR 23568 --- [ main] tabby.core.scanner.ClassInfoScanner : Load Error: java.util.logging.FileHandler$MeteredStream, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'C:\Users\varas\AppData\Local\Temp\tabby_1JN8664641561577757425\jsp_8XO\jsp_classes_vJ8Qi\org\apache\jsp' does not exist. 2024-03-18T11:11:41.718+08:00 ERROR 23568 --- [ main] tabby.core.scanner.ClassInfoScanner : Load Error: java.util.logging.FileHandler, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'C:\Users\varas\AppData\Local\Temp\tabby_1JN8664641561577757425\jsp_8XO\jsp_classes_vJ8Qi\org\apache\jsp' does not exist. 2024-03-18T11:11:41.718+08:00 ERROR 23568 --- [ main] tabby.core.scanner.ClassInfoScanner : Load Error: java.util.logging.Filter, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'C:\Users\varas\AppData\Local\Temp\tabby_1JN8664641561577757425\jsp_8XO\jsp_classes_vJ8Qi\org\apache\jsp' does not exist. 2024-03-18T11:11:41.718+08:00 ERROR 23568 --- [ main] tabby.core.scanner.ClassInfoScanner : Load Error: java.util.logging.Formatter, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'C:\Users\varas\AppData\Local\Temp\tabby_1JN8664641561577757425\jsp_8XO\jsp_classes_vJ8Qi\org\apache\jsp' does not exist.

=============================(中间再略去几百上千条和上面一样的Load Error)==============================

2024-03-18T10:57:34.345+08:00 INFO 12848 --- [ main] tabby.core.scanner.ClassInfoScanner : Total 289 classes. 2024-03-18T10:57:34.345+08:00 INFO 12848 --- [ main] tabby.core.scanner.ClassInfoScanner : Collected 0 classes' information 2024-03-18T10:57:34.346+08:00 INFO 12848 --- [ main] tabby.core.scanner.ClassInfoScanner : Collected 289 classes' information 2024-03-18T10:57:34.346+08:00 INFO 12848 --- [ main] tabby.core.scanner.ClassInfoScanner : Build 289 classes' edges. 2024-03-18T10:57:34.346+08:00 INFO 12848 --- [ main] tabby.core.scanner.ClassInfoScanner : Build 0/289 classes. 2024-03-18T10:57:35.589+08:00 INFO 12848 --- [ main] tabby.core.scanner.ClassInfoScanner : Build 289/289 classes. 2024-03-18T10:57:35.589+08:00 INFO 12848 --- [ main] tabby.core.scanner.ClassInfoScanner : Start to save remained data to graphdb. 2024-03-18T10:57:36.155+08:00 INFO 12848 --- [ main] tabby.core.scanner.ClassInfoScanner : Graphdb saved. 2024-03-18T10:57:36.156+08:00 INFO 12848 --- [ main] tabby.core.scanner.CallGraphScanner : Build call graph. START! 2024-03-18T10:57:36.159+08:00 INFO 12848 --- [ main] tabby.core.scanner.CallGraphScanner : Method Timeout on 5 min. 2024-03-18T10:57:36.689+08:00 INFO 12848 --- [bby-collector-2] tabby.common.utils.TickTock : Status: 5.0%, Finished: 48, Remain: 915, Cost: 0 Mins 2024-03-18T10:57:37.057+08:00 INFO 12848 --- [bby-collector-3] tabby.common.utils.TickTock : Status: 10.0%, Finished: 96, Remain: 867, Cost: 0 Mins 2024-03-18T10:57:37.241+08:00 INFO 12848 --- [bby-collector-2] tabby.common.utils.TickTock : Status: 15.0%, Finished: 144, Remain: 819, Cost: 0 Mins 2024-03-18T10:57:37.479+08:00 INFO 12848 --- [bby-collector-9] tabby.common.utils.TickTock : Status: 19.9%, Finished: 192, Remain: 771, Cost: 0 Mins 2024-03-18T10:57:37.625+08:00 INFO 12848 --- [bby-collector-4] tabby.common.utils.TickTock : Status: 24.9%, Finished: 240, Remain: 723, Cost: 0 Mins 2024-03-18T10:57:37.711+08:00 INFO 12848 --- [bby-collector-3] tabby.common.utils.TickTock : Status: 29.9%, Finished: 288, Remain: 675, Cost: 0 Mins 2024-03-18T10:57:37.772+08:00 INFO 12848 --- [bby-collector-2] tabby.common.utils.TickTock : Status: 34.9%, Finished: 336, Remain: 627, Cost: 0 Mins 2024-03-18T10:57:37.833+08:00 INFO 12848 --- [bby-collector-3] tabby.common.utils.TickTock : Status: 39.9%, Finished: 384, Remain: 579, Cost: 0 Mins 2024-03-18T10:57:37.885+08:00 INFO 12848 --- [bby-collector-2] tabby.common.utils.TickTock : Status: 44.9%, Finished: 432, Remain: 531, Cost: 0 Mins 2024-03-18T10:57:37.941+08:00 INFO 12848 --- [by-collector-13] tabby.common.utils.TickTock : Status: 49.8%, Finished: 480, Remain: 483, Cost: 0 Mins 2024-03-18T10:57:37.994+08:00 INFO 12848 --- [by-collector-14] tabby.common.utils.TickTock : Status: 54.8%, Finished: 528, Remain: 435, Cost: 0 Mins 2024-03-18T10:57:38.029+08:00 INFO 12848 --- [by-collector-11] tabby.common.utils.TickTock : Status: 59.8%, Finished: 576, Remain: 387, Cost: 0 Mins 2024-03-18T10:57:38.097+08:00 INFO 12848 --- [by-collector-14] tabby.common.utils.TickTock : Status: 64.8%, Finished: 624, Remain: 339, Cost: 0 Mins 2024-03-18T10:57:38.154+08:00 INFO 12848 --- [by-collector-10] tabby.common.utils.TickTock : Status: 69.8%, Finished: 672, Remain: 291, Cost: 0 Mins 2024-03-18T10:57:38.204+08:00 INFO 12848 --- [bby-collector-8] tabby.common.utils.TickTock : Status: 74.8%, Finished: 720, Remain: 243, Cost: 0 Mins 2024-03-18T10:57:38.254+08:00 INFO 12848 --- [bby-collector-1] tabby.common.utils.TickTock : Status: 79.8%, Finished: 768, Remain: 195, Cost: 0 Mins 2024-03-18T10:57:38.292+08:00 INFO 12848 --- [by-collector-12] tabby.common.utils.TickTock : Status: 84.7%, Finished: 816, Remain: 147, Cost: 0 Mins 2024-03-18T10:57:38.326+08:00 INFO 12848 --- [bby-collector-6] tabby.common.utils.TickTock : Status: 89.7%, Finished: 864, Remain: 99, Cost: 0 Mins 2024-03-18T10:57:38.380+08:00 INFO 12848 --- [by-collector-15] tabby.common.utils.TickTock : Status: 94.7%, Finished: 912, Remain: 51, Cost: 0 Mins 2024-03-18T10:57:38.442+08:00 INFO 12848 --- [bby-collector-7] tabby.common.utils.TickTock : Status: 99.7%, Finished: 960, Remain: 3, Cost: 0 Mins 2024-03-18T10:57:38.651+08:00 INFO 12848 --- [bby-collector-4] tabby.common.utils.TickTock : Status: 100.0%, Finished: 963, Remain: 0, Cost: 0 Mins 2024-03-18T10:57:38.651+08:00 INFO 12848 --- [bby-collector-4] tabby.common.utils.TickTock : All tasks completed. 2024-03-18T10:57:38.651+08:00 INFO 12848 --- [ main] tabby.core.scanner.CallGraphScanner : Analyse 1672 newAddedMethods 2024-03-18T10:57:40.395+08:00 INFO 12848 --- [ main] tabby.core.scanner.CallGraphScanner : Analyse 947 newAddedMethods 2024-03-18T10:57:41.011+08:00 INFO 12848 --- [ main] tabby.core.scanner.CallGraphScanner : Analyse 174 newAddedMethods 2024-03-18T10:57:41.015+08:00 INFO 12848 --- [ main] tabby.core.scanner.CallGraphScanner : Build call graph. DONE! 2024-03-18T10:57:41.015+08:00 INFO 12848 --- [ main] tabby.core.scanner.CallGraphScanner : Save remained data to graphdb. START! 2024-03-18T10:57:42.514+08:00 INFO 12848 --- [ main] tabby.core.scanner.CallGraphScanner : Save remained data to graphdb. DONE! 2024-03-18T10:57:42.514+08:00 INFO 12848 --- [ main] tabby.core.Analyser : Total cost 0 min 14 seconds. 2024-03-18T10:57:42.522+08:00 INFO 12848 --- [ main] tabby.core.container.DataContainer : Total 4239, classes: 473, methods: 3766 2024-03-18T10:57:42.841+08:00 INFO 12848 --- [ main] tabby.dal.service.RelationshipsService : Total 12735, has count: 3766, call count: 8313, extend count: 61, alias count: 509, interfaces count: 86 2024-03-18T10:57:42.841+08:00 INFO 12848 --- [ main] tabby.core.container.DataContainer : Save cache to CSV. 2024-03-18T10:57:42.983+08:00 INFO 12848 --- [ main] tabby.core.container.DataContainer : Save cache to CSV. DONE! 2024-03-18T10:57:42.983+08:00 INFO 12848 --- [ main] tabby.App : Done. Bye! `

wh1t3p1g commented 7 months ago

看起来是win下临时目录的问题 我后续改一下吧 不用临时目录了

MountainCui25 commented 7 months ago

看起来是win下临时目录的问题 我后续改一下吧 不用临时目录了

多谢回答,那请问有什么临时解决办法不?另外附上我的setting.properties以便查出更多的问题:

need to modify

tabby.build.target = D:/JavaProject/KCLK/keycloak-10.0.2 tabby.build.libraries = D:/JavaProject/KCLK/keycloak-10.0.2 tabby.build.mode = gadget tabby.output.directory = D:/Tools/Tabby/output/dev

debug

tabby.debug.details = false tabby.debug.print.current.methods = true

jdk settings

tabby.build.useSettingJRE = false tabby.build.isJRE9Module = true

tabby.build.javaHome = /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home

tabby.build.javaHome = D:/Env/JDK/JDK17 tabby.build.isJDKProcess = true tabby.build.withAllJDK = false tabby.build.isJDKOnly = false

dealing fatjar

tabby.build.checkFatJar = true

pointed-to analysis

tabby.build.isFullCallGraphCreate = false tabby.build.thread.timeout = 2 tabby.build.method.timeout = 5 tabby.build.isNeedToCreateIgnoreList = false tabby.build.timeout.forceStop = false tabby.build.isNeedToDealNewAddedMethod = true

tabby.neo4j.username = neo4j tabby.neo4j.password = password tabby.neo4j.url = bolt://127.0.0.1:7687

wh1t3p1g commented 7 months ago

更新了一下代码,拉下来重新编译一下试试,看看还会不会报错

MountainCui25 commented 7 months ago

更新了一下代码,拉下来重新编译一下试试,看看还会不会报错

感谢大佬回复,虽然确实没有在C盘临时目录下了,但是同样的问题仍然存在,不知道是权限的问题还是啥,或者大佬有什么临时的解决方案不?感谢!log:

2024-03-19T10:53:46.796+08:00 ERROR 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.saml.processing.core.parsers.saml.metadata.SAMLAttributeParser$1, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'D:\Tools\tabby\build\libs\temp\tabby_MBlcae5d6d2-9a38-4870-822b-1abb90d959e5\jsp_y7E\jsp_classes_TRQXz\org\apache\jsp' does not exist.
2024-03-19T10:53:46.796+08:00 ERROR 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.saml.processing.core.parsers.saml.metadata.SAMLEntitiesDescriptorParser$1, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'D:\Tools\tabby\build\libs\temp\tabby_MBlcae5d6d2-9a38-4870-822b-1abb90d959e5\jsp_y7E\jsp_classes_TRQXz\org\apache\jsp' does not exist.
2024-03-19T10:53:46.796+08:00 ERROR 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.saml.processing.core.parsers.saml.metadata.SAMLNameIDMappingServiceParser, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'D:\Tools\tabby\build\libs\temp\tabby_MBlcae5d6d2-9a38-4870-822b-1abb90d959e5\jsp_y7E\jsp_classes_TRQXz\org\apache\jsp' does not exist.
2024-03-19T10:53:46.796+08:00 ERROR 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.saml.processing.core.parsers.saml.metadata.SAMLSPSSODescriptorParser$1, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'D:\Tools\tabby\build\libs\temp\tabby_MBlcae5d6d2-9a38-4870-822b-1abb90d959e5\jsp_y7E\jsp_classes_TRQXz\org\apache\jsp' does not exist.
2024-03-19T10:53:46.796+08:00 ERROR 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.saml.processing.core.parsers.saml.protocol.SAMLAuthNRequestParser, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'D:\Tools\tabby\build\libs\temp\tabby_MBlcae5d6d2-9a38-4870-822b-1abb90d959e5\jsp_y7E\jsp_classes_TRQXz\org\apache\jsp' does not exist.
2024-03-19T10:53:46.797+08:00 ERROR 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.saml.processing.core.parsers.saml.protocol.SAMLStatusCodeParser$1, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'D:\Tools\tabby\build\libs\temp\tabby_MBlcae5d6d2-9a38-4870-822b-1abb90d959e5\jsp_y7E\jsp_classes_TRQXz\org\apache\jsp' does not exist.
2024-03-19T10:53:46.797+08:00 ERROR 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.saml.processing.core.parsers.saml.SAMLParser$11, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'D:\Tools\tabby\build\libs\temp\tabby_MBlcae5d6d2-9a38-4870-822b-1abb90d959e5\jsp_y7E\jsp_classes_TRQXz\org\apache\jsp' does not exist.
2024-03-19T10:53:46.797+08:00 ERROR 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.saml.processing.core.parsers.saml.SAMLParser$13, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'D:\Tools\tabby\build\libs\temp\tabby_MBlcae5d6d2-9a38-4870-822b-1abb90d959e5\jsp_y7E\jsp_classes_TRQXz\org\apache\jsp' does not exist.
2024-03-19T10:53:46.797+08:00 ERROR 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.saml.processing.core.parsers.saml.xmldsig.XmlDSigQNames, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'D:\Tools\tabby\build\libs\temp\tabby_MBlcae5d6d2-9a38-4870-822b-1abb90d959e5\jsp_y7E\jsp_classes_TRQXz\org\apache\jsp' does not exist.
2024-03-19T10:53:46.797+08:00 ERROR 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.saml.processing.core.saml.v2.holders.SignatureInfoHolder, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'D:\Tools\tabby\build\libs\temp\tabby_MBlcae5d6d2-9a38-4870-822b-1abb90d959e5\jsp_y7E\jsp_classes_TRQXz\org\apache\jsp' does not exist.
2024-03-19T10:53:46.797+08:00 ERROR 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.saml.processing.core.saml.v2.writers.SAMLAssertionWriter, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'D:\Tools\tabby\build\libs\temp\tabby_MBlcae5d6d2-9a38-4870-822b-1abb90d959e5\jsp_y7E\jsp_classes_TRQXz\org\apache\jsp' does not exist.
2024-03-19T10:53:46.797+08:00 ERROR 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.saml.processing.core.saml.v2.writers.SAMLResponseWriter, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'D:\Tools\tabby\build\libs\temp\tabby_MBlcae5d6d2-9a38-4870-822b-1abb90d959e5\jsp_y7E\jsp_classes_TRQXz\org\apache\jsp' does not exist.
2024-03-19T10:53:46.798+08:00 ERROR 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.saml.processing.core.util.ProvidersUtil, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'D:\Tools\tabby\build\libs\temp\tabby_MBlcae5d6d2-9a38-4870-822b-1abb90d959e5\jsp_y7E\jsp_classes_TRQXz\org\apache\jsp' does not exist.
2024-03-19T10:53:46.798+08:00 ERROR 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.saml.RandomSecret, Message: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path 'D:\Tools\tabby\build\libs\temp\tabby_MBlcae5d6d2-9a38-4870-822b-1abb90d959e5\jsp_y7E\jsp_classes_TRQXz\org\apache\jsp' does not exist.
2024-03-19T10:53:46.798+08:00  INFO 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Total 0 classes.
2024-03-19T10:53:46.798+08:00  INFO 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 0 classes' information
2024-03-19T10:53:46.798+08:00  INFO 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Build 0 classes' edges.
2024-03-19T10:53:46.798+08:00  INFO 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Build 0/0 classes.
2024-03-19T10:53:46.798+08:00  INFO 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Start to save remained data to graphdb.
2024-03-19T10:53:46.798+08:00  INFO 11220 --- [           main] tabby.core.scanner.ClassInfoScanner      : Graphdb saved.
2024-03-19T10:53:46.799+08:00  INFO 11220 --- [           main] tabby.core.scanner.CallGraphScanner      : Build call graph. START!
2024-03-19T10:53:46.799+08:00  INFO 11220 --- [           main] tabby.core.scanner.CallGraphScanner      : Method Timeout on 5 min.
2024-03-19T10:53:46.799+08:00  INFO 11220 --- [           main] tabby.core.scanner.CallGraphScanner      : Build call graph. DONE!
2024-03-19T10:53:46.799+08:00  INFO 11220 --- [           main] tabby.core.scanner.CallGraphScanner      : Save remained data to graphdb. START!
2024-03-19T10:53:46.799+08:00  INFO 11220 --- [           main] tabby.core.scanner.CallGraphScanner      : Save remained data to graphdb. DONE!
2024-03-19T10:53:46.799+08:00  INFO 11220 --- [           main] tabby.core.Analyser                      : Total cost 0 min 1 seconds.
2024-03-19T10:53:46.952+08:00  INFO 11220 --- [           main] tabby.core.container.DataContainer       : Total 0, classes: 0, methods: 0
2024-03-19T10:53:47.253+08:00  INFO 11220 --- [           main] tabby.dal.service.RelationshipsService   : Total 0, has count: 0, call count: 0, extend count: 0, alias count: 0, interfaces count: 0
2024-03-19T10:53:47.253+08:00  INFO 11220 --- [           main] tabby.core.container.DataContainer       : Save cache to CSV.
2024-03-19T10:53:47.289+08:00  INFO 11220 --- [           main] tabby.core.container.DataContainer       : Save cache to CSV. DONE!
2024-03-19T10:53:47.289+08:00  INFO 11220 --- [           main] tabby.App                                : Done. Bye!
wh1t3p1g commented 7 months ago

临时解决方案用linux虚拟机,win的问题有点奇怪,我暂时也没有win的机器来测试

MountainCui25 commented 7 months ago

大佬,感谢,用linux解决了这个问题,不过扫出来之后发现csv文件里都只有JDK的方法和类,目标项目的类和方法一个都没扫进去,是因为我的配置这里有问题吗?:

# need to modify
tabby.build.target                        = /root/Desktop/1/keycloak-10.0.2/
tabby.build.libraries                     = /root/Desktop/1/keycloak-10.0.2/
tabby.build.mode                          = gadget
tabby.output.directory                    = ./output/dev

# debug
tabby.debug.details                       = false
tabby.debug.print.current.methods         = true

# jdk settings
tabby.build.useSettingJRE                 = false
tabby.build.isJRE9Module                  = true
#tabby.build.javaHome                      = /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
tabby.build.javaHome                      = /root/Desktop/1/jdk-17.0.10
tabby.build.isJDKProcess                  = true
tabby.build.withAllJDK                    = true
tabby.build.isJDKOnly                     = false
tabby.build.enable                        = true

# dealing fatjar
tabby.build.checkFatJar                   = true

# pointed-to analysis
tabby.build.isFullCallGraphCreate         = true
tabby.build.thread.timeout                = 2
tabby.build.method.timeout                = 5
tabby.build.isNeedToCreateIgnoreList      = false
tabby.build.timeout.forceStop             = false
tabby.build.isNeedToDealNewAddedMethod    = true

# 将函数属性图导入Neo4j中
tabby.load.enable                     = true

# 开启debug
tabby.debug.details                   = true
tabby.debug.inner.details             = true

整个分析log是:

[root@localhost tabby]# java -Xmx20g -jar tabby.jar 
 ___________   __       _______   _______  ___  ___
("     _   ") /""\     |   _  "\ |   _  "\|"  \/"  |
 )__/  \\__/ /    \    (. |_)  :)(. |_)  :)\   \  /
    \\_ /   /' /\  \   |:     \/ |:     \/  \\  \/
    |.  |  //  __'  \  (|  _  \\ (|  _  \\  /   /
    \:  | /   /  \\  \ |: |_)  :)|: |_)  :)/   /
     \__|(___/    \___)(_______/ (_______/|___/
                      v1.3.2
              Happy Hunting Bugs! XD
         https://github.com/wh1t3p1g/tabby

2024-03-24T20:23:14.767-07:00  INFO 80024 --- [           main] tabby.App                                : Starting App using Java 17.0.10 with PID 80024 (/root/Desktop/1/tabby/tabby.jar started by root in /root/Desktop/1/tabby)
2024-03-24T20:23:14.774-07:00  INFO 80024 --- [           main] tabby.App                                : The following 1 profile is active: "default"
2024-03-24T20:23:19.996-07:00  INFO 80024 --- [           main] tabby.core.container.RulesContainer      : load 57 rules success!
2024-03-24T20:23:21.001-07:00  INFO 80024 --- [           main] tabby.config.AsyncConfiguration          : Open 1 size for thread pool tabby-collector
2024-03-24T20:23:21.008-07:00  INFO 80024 --- [           main] tabby.config.AsyncConfiguration          : Open 3 size for thread pool tabby-saver
2024-03-24T20:23:21.458-07:00  INFO 80024 --- [           main] tabby.App                                : Started App in 8.067 seconds (process running for 9.646)
2024-03-24T20:23:21.487-07:00  INFO 80024 --- [           main] tabby.App                                : Target java.home: /usr/java/jdk-17.0.10
2024-03-24T20:23:22.916-07:00  INFO 80024 --- [           main] tabby.core.Analyser                      : Get 70 JDK dependencies
2024-03-24T20:23:22.916-07:00  INFO 80024 --- [           main] tabby.core.Analyser                      : Try to collect all targets
2024-03-24T20:23:22.917-07:00  INFO 80024 --- [           main] tabby.core.Analyser                      : Target: /root/Desktop/1/keycloak-10.0.2/
2024-03-24T20:23:37.972-07:00  INFO 80024 --- [           main] tabby.core.Analyser                      : Load basic classes
2024-03-24T20:23:38.926-07:00  INFO 80024 --- [           main] tabby.core.Analyser                      : Load dynamic classes
2024-03-24T20:23:38.958-07:00  INFO 80024 --- [           main] tabby.core.Analyser                      : Total analyse 71 targets.
2024-03-24T20:23:38.959-07:00  INFO 80024 --- [           main] tabby.core.Analyser                      : Target 71, Dependencies 72
2024-03-24T20:23:38.960-07:00  INFO 80024 --- [           main] tabby.core.scanner.ClassInfoScanner      : Start to collect 71 targets' class information.
2024-03-24T20:24:13.873-07:00  INFO 80024 --- [           main] tabby.core.scanner.ClassInfoScanner      : Total 26278 classes.
2024-03-24T20:24:13.874-07:00  INFO 80024 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 0 classes' information
2024-03-24T20:24:13.882-07:00  INFO 80024 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 10000 classes' information
2024-03-24T20:24:13.886-07:00  INFO 80024 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 20000 classes' information
2024-03-24T20:24:13.894-07:00  INFO 80024 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 26278 classes' information
2024-03-24T20:24:13.897-07:00  INFO 80024 --- [           main] tabby.core.scanner.ClassInfoScanner      : Build 26278 classes' edges.
2024-03-24T20:24:13.898-07:00  INFO 80024 --- [           main] tabby.core.scanner.ClassInfoScanner      : Build 0/26278 classes.
2024-03-24T20:24:40.969-07:00  INFO 80024 --- [           main] tabby.core.scanner.ClassInfoScanner      : Build 10000/26278 classes.
2024-03-24T20:24:55.357-07:00  INFO 80024 --- [           main] tabby.core.scanner.ClassInfoScanner      : Build 20000/26278 classes.
2024-03-24T20:25:03.931-07:00  INFO 80024 --- [           main] tabby.core.scanner.ClassInfoScanner      : Build 26278/26278 classes.
2024-03-24T20:25:03.933-07:00  INFO 80024 --- [           main] tabby.core.scanner.ClassInfoScanner      : Start to save remained data to graphdb.
2024-03-24T20:25:37.089-07:00  INFO 80024 --- [           main] tabby.core.scanner.ClassInfoScanner      : Graphdb saved.
2024-03-24T20:25:37.090-07:00  INFO 80024 --- [           main] tabby.core.scanner.CallGraphScanner      : Build call graph. START!
2024-03-24T20:26:17.566-07:00  INFO 80024 --- [           main] tabby.common.utils.TickTock              : Status: 5.0%, Finished: 11214, Remain: 213071, Cost: 0 Mins
2024-03-24T20:26:35.710-07:00  INFO 80024 --- [           main] tabby.common.utils.TickTock              : Status: 10.0%, Finished: 22428, Remain: 201857, Cost: 0 Mins
2024-03-24T20:26:50.930-07:00  INFO 80024 --- [           main] tabby.common.utils.TickTock              : Status: 15.0%, Finished: 33642, Remain: 190643, Cost: 1 Mins
2024-03-24T20:26:58.794-07:00 ERROR 80024 --- [-33462-thread-1] s.j.t.t.fast.TypePromotionUseVisitor     : Failed Typing in <java.awt.image.ComponentColorModel: int getRGBComponent(int,int)> at statement opixel#1 = $r0: Is not cast compatible: null_type <-- java.lang.Object
2024-03-24T20:27:08.203-07:00  INFO 80024 --- [bby-collector-1] tabby.common.utils.TickTock              : Status: 20.0%, Finished: 44856, Remain: 179429, Cost: 1 Mins
2024-03-24T20:27:21.319-07:00  INFO 80024 --- [  tabby-saver-3] tabby.common.utils.TickTock              : Status: 24.2%, Finished: 54371, Remain: 169914, Cost: 1 Mins, Current: 0
2024-03-24T20:27:23.388-07:00  INFO 80024 --- [           main] tabby.common.utils.TickTock              : Status: 25.0%, Finished: 56070, Remain: 168215, Cost: 1 Mins
2024-03-24T20:27:31.719-07:00 ERROR 80024 --- [-54414-thread-1] s.j.t.t.fast.TypePromotionUseVisitor     : Failed Typing in <com.sun.imageio.plugins.tiff.TIFFIFD: int readFieldValue(javax.imageio.stream.ImageInputStream,int,int,java.lang.Object[])> at statement obj#10 = $r0: Is not cast compatible: null_type <-- java.lang.Object
2024-03-24T20:27:37.284-07:00  INFO 80024 --- [           main] tabby.common.utils.TickTock              : Status: 30.0%, Finished: 67284, Remain: 157001, Cost: 2 Mins
2024-03-24T20:27:50.535-07:00  INFO 80024 --- [           main] tabby.common.utils.TickTock              : Status: 35.0%, Finished: 78498, Remain: 145787, Cost: 2 Mins
2024-03-24T20:28:05.539-07:00  INFO 80024 --- [bby-collector-1] tabby.common.utils.TickTock              : Status: 40.0%, Finished: 89712, Remain: 134573, Cost: 2 Mins
2024-03-24T20:28:19.688-07:00  INFO 80024 --- [           main] tabby.common.utils.TickTock              : Status: 45.0%, Finished: 100926, Remain: 123359, Cost: 2 Mins
2024-03-24T20:28:37.800-07:00  INFO 80024 --- [           main] tabby.common.utils.TickTock              : Status: 50.0%, Finished: 112140, Remain: 112145, Cost: 3 Mins
2024-03-24T20:28:52.994-07:00  INFO 80024 --- [bby-collector-1] tabby.common.utils.TickTock              : Status: 55.0%, Finished: 123354, Remain: 100931, Cost: 3 Mins
2024-03-24T20:29:08.270-07:00  INFO 80024 --- [           main] tabby.common.utils.TickTock              : Status: 60.0%, Finished: 134568, Remain: 89717, Cost: 3 Mins
2024-03-24T20:29:21.303-07:00  INFO 80024 --- [  tabby-saver-1] tabby.common.utils.TickTock              : Status: 64.6%, Finished: 144946, Remain: 79339, Cost: 3 Mins, Current: 0
2024-03-24T20:29:22.248-07:00  INFO 80024 --- [           main] tabby.common.utils.TickTock              : Status: 65.0%, Finished: 145782, Remain: 78503, Cost: 3 Mins
2024-03-24T20:29:38.340-07:00  INFO 80024 --- [bby-collector-1] tabby.common.utils.TickTock              : Status: 70.0%, Finished: 156996, Remain: 67289, Cost: 4 Mins
2024-03-24T20:29:53.184-07:00  INFO 80024 --- [           main] tabby.common.utils.TickTock              : Status: 75.0%, Finished: 168210, Remain: 56075, Cost: 4 Mins
2024-03-24T20:30:08.439-07:00  INFO 80024 --- [           main] tabby.common.utils.TickTock              : Status: 80.0%, Finished: 179424, Remain: 44861, Cost: 4 Mins
2024-03-24T20:30:23.584-07:00  INFO 80024 --- [bby-collector-1] tabby.common.utils.TickTock              : Status: 85.0%, Finished: 190638, Remain: 33647, Cost: 4 Mins
2024-03-24T20:30:37.831-07:00  INFO 80024 --- [bby-collector-1] tabby.common.utils.TickTock              : Status: 90.0%, Finished: 201852, Remain: 22433, Cost: 5 Mins
2024-03-24T20:30:53.254-07:00  INFO 80024 --- [           main] tabby.common.utils.TickTock              : Status: 95.0%, Finished: 213066, Remain: 11219, Cost: 5 Mins
2024-03-24T20:31:08.672-07:00  INFO 80024 --- [bby-collector-1] tabby.common.utils.TickTock              : Status: 100.0%, Finished: 224280, Remain: 5, Cost: 5 Mins
2024-03-24T20:31:08.679-07:00  INFO 80024 --- [bby-collector-1] tabby.common.utils.TickTock              : Status: 100.0%, Finished: 224285, Remain: 0, Cost: 5 Mins
2024-03-24T20:31:08.679-07:00  INFO 80024 --- [bby-collector-1] tabby.common.utils.TickTock              : All tasks completed.
2024-03-24T20:31:08.679-07:00  INFO 80024 --- [           main] tabby.core.scanner.CallGraphScanner      : Build call graph. DONE!
2024-03-24T20:31:08.680-07:00  INFO 80024 --- [           main] tabby.core.scanner.CallGraphScanner      : Save remained data to graphdb. START!
2024-03-24T20:31:21.426-07:00  INFO 80024 --- [  tabby-saver-2] tabby.common.utils.TickTock              : Status: 100.0%, Finished: 224285, Remain: 0, Cost: 5 Mins, Current: 0
2024-03-24T20:32:46.171-07:00  INFO 80024 --- [           main] tabby.core.scanner.CallGraphScanner      : Save remained data to graphdb. DONE!
2024-03-24T20:32:46.193-07:00  INFO 80024 --- [           main] tabby.core.Analyser                      : Total cost 9 min 7 seconds.
2024-03-24T20:32:46.547-07:00  INFO 80024 --- [           main] tabby.core.container.DataContainer       : Total 276267, classes: 32275, methods: 243992
2024-03-24T20:32:47.665-07:00  INFO 80024 --- [           main] tabby.dal.service.RelationshipsService   : Total 1044051, has count: 243992, call count: 687011, extend count: 13769, alias count: 83218, interfaces count: 16061
2024-03-24T20:32:47.666-07:00  INFO 80024 --- [           main] tabby.core.container.DataContainer       : Save cache to CSV.
2024-03-24T20:32:57.641-07:00  INFO 80024 --- [           main] tabby.core.container.DataContainer       : Save cache to CSV. DONE!
2024-03-24T20:32:57.646-07:00  INFO 80024 --- [           main] tabby.App                                : Done. Bye!
wh1t3p1g commented 7 months ago

https://www.yuque.com/wh1t3p1g/tp0c1t/mgihyvp3vgscgt63 看这个文档吧

MountainCui25 commented 7 months ago

大佬,我看了下,也按照配置改了几版,但还是同样的情况。我在想是不是因为Tabby只能识别.class或者.jar这种编译后的格式?我的目标项目都是.java源代码(且没法去build或者javac去编译打包)

wh1t3p1g commented 7 months ago

大佬,我看了下,也按照配置改了几版,但还是同样的情况。我在想是不是因为Tabby只能识别.class或者.jar这种编译后的格式?我的目标项目都是.java源代码(且没法去build或者javac去编译打包)

是的,目前不处理.java后缀的,soot的java前端很老; 如果想处理java后缀的,得改收集file的代码

MountainCui25 commented 7 months ago

好的多谢回答,最终我是将项目mvnw clean install后(mvnw是项目自带的)然后在ubuntu上启动了tabby,不过还是遇到了问题:

root@trevor-iie:/home/trevor/Desktop/1/Tabby_1.3.2# /home/trevor/Desktop/1/JDK/jdk-17.0.10/bin/java -Xmx20g -jar tabby.jar
 ___________   __       _______   _______  ___  ___
("     _   ") /""\     |   _  "\ |   _  "\|"  \/"  |
 )__/  \\__/ /    \    (. |_)  :)(. |_)  :)\   \  /
    \\_ /   /' /\  \   |:     \/ |:     \/  \\  \/
    |.  |  //  __'  \  (|  _  \\ (|  _  \\  /   /
    \:  | /   /  \\  \ |: |_)  :)|: |_)  :)/   /
     \__|(___/    \___)(_______/ (_______/|___/
                      v1.3.2
              Happy Hunting Bugs! XD
         https://github.com/wh1t3p1g/tabby

2024-03-27T17:37:45.899+08:00  INFO 16023 --- [           main] tabby.App                                : Starting App using Java 17.0.10 with PID 16023 (/home/trevor/Desktop/1/Tabby_1.3.2/tabby.jar started by root in /home/trevor/Desktop/1/Tabby_1.3.2)
2024-03-27T17:37:45.904+08:00  INFO 16023 --- [           main] tabby.App                                : The following 1 profile is active: "default"
2024-03-27T17:37:49.523+08:00  INFO 16023 --- [           main] tabby.core.container.RulesContainer      : load 57 rules success!
2024-03-27T17:37:50.132+08:00  INFO 16023 --- [           main] tabby.config.AsyncConfiguration          : Open 2 size for thread pool tabby-collector
2024-03-27T17:37:50.139+08:00  INFO 16023 --- [           main] tabby.config.AsyncConfiguration          : Open 3 size for thread pool tabby-saver
2024-03-27T17:37:50.308+08:00  INFO 16023 --- [           main] tabby.App                                : Started App in 5.331 seconds (process running for 6.421)
2024-03-27T17:37:50.322+08:00  INFO 16023 --- [           main] tabby.App                                : Target java.home: /home/trevor/Desktop/1/JDK/jdk-17.0.10
2024-03-27T17:37:50.684+08:00  INFO 16023 --- [           main] tabby.core.Analyser                      : Get 3 JDK dependencies
2024-03-27T17:37:50.685+08:00  INFO 16023 --- [           main] tabby.core.Analyser                      : Try to collect all targets
2024-03-27T17:37:50.685+08:00  INFO 16023 --- [           main] tabby.core.Analyser                      : Target: /home/trevor/Desktop/1/KCLK/keycloak-24.0.2-s/
2024-03-27T17:38:44.962+08:00  INFO 16023 --- [           main] tabby.core.Analyser                      : Load basic classes
2024-03-27T17:38:45.390+08:00  INFO 16023 --- [           main] tabby.core.Analyser                      : Load dynamic classes
2024-03-27T17:38:45.398+08:00  INFO 16023 --- [           main] tabby.core.Analyser                      : Total analyse 592 targets.
2024-03-27T17:38:45.399+08:00  INFO 16023 --- [           main] tabby.core.Analyser                      : Target 592, Dependencies 622
2024-03-27T17:38:45.400+08:00  INFO 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Start to collect 592 targets' class information.
2024-03-27T17:39:35.703+08:00 ERROR 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.services.resources.RealmsResource$quarkusrestinvoker$getRedirect_fb11a053db263c4ad90a78009753720a0155117a, Message: Class org.keycloak.services.resources.RealmsResource$quarkusrestinvoker was found in an archive, but Soot doesn't support reading source files out of an archive
2024-03-27T17:39:35.731+08:00 ERROR 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.services.resources.JsResource$quarkusrestinvoker$getKeycloakAuthzJs_55753389c22223cb52025af46bfed35d4341b809, Message: Class org.keycloak.services.resources.JsResource$quarkusrestinvoker was found in an archive, but Soot doesn't support reading source files out of an archive
2024-03-27T17:39:35.735+08:00 ERROR 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.services.resources.RobotsResource$quarkusrestinvoker$getRobots_fe718f1a28c67ce93e2a81eee33978d5d6c50c19, Message: Class org.keycloak.services.resources.RobotsResource$quarkusrestinvoker was found in an archive, but Soot doesn't support reading source files out of an archive
2024-03-27T17:39:35.738+08:00 ERROR 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.services.resources.WelcomeResource$quarkusrestinvoker$createUser_717716d2fa4ebdb83649f0e8b5487787164b4a63, Message: Class org.keycloak.services.resources.WelcomeResource$quarkusrestinvoker was found in an archive, but Soot doesn't support reading source files out of an archive
2024-03-27T17:39:35.743+08:00 ERROR 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.quarkus.runtime.services.resources.DebugHostnameSettingsResource$quarkusrestinvoker$debug_d1e89e6e712910200b0998bd0c93f656046b14fb, Message: Class org.keycloak.quarkus.runtime.services.resources.DebugHostnameSettingsResource$quarkusrestinvoker was found in an archive, but Soot doesn't support reading source files out of an archive
2024-03-27T17:39:35.746+08:00 ERROR 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.services.resources.admin.AdminRoot$quarkusrestinvoker$masterRealmAdminConsoleRedirect_363186da816c22fcd0ec07e4b2f217993536dcec, Message: Class org.keycloak.services.resources.admin.AdminRoot$quarkusrestinvoker was found in an archive, but Soot doesn't support reading source files out of an archive
...
2024-03-27T17:39:36.412+08:00 ERROR 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.events.jpa.AdminEventEntity$HibernateProxy$w9xpd17D, Message: Class org.keycloak.events.jpa.AdminEventEntity$HibernateProxy was found in an archive, but Soot doesn't support reading source files out of an archive
2024-03-27T17:39:36.415+08:00 ERROR 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.models.jpa.entities.CredentialEntity$HibernateProxy$mPi2zzh7, Message: Class org.keycloak.models.jpa.entities.CredentialEntity$HibernateProxy was found in an archive, but Soot doesn't support reading source files out of an archive
2024-03-27T17:39:36.417+08:00 ERROR 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.models.jpa.entities.UserConsentClientScopeEntity$HibernateProxy$k0FGxdhw, Message: Class org.keycloak.models.jpa.entities.UserConsentClientScopeEntity$HibernateProxy was found in an archive, but Soot doesn't support reading source files out of an archive
2024-03-27T17:39:36.420+08:00 ERROR 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.authorization.jpa.entities.PolicyEntity$HibernateProxy$hCKxtbSJ, Message: Class org.keycloak.authorization.jpa.entities.PolicyEntity$HibernateProxy was found in an archive, but Soot doesn't support reading source files out of an archive
2024-03-27T17:39:36.425+08:00 ERROR 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.models.jpa.entities.RealmEntity$HibernateProxy$cab2rgZO, Message: Class org.keycloak.models.jpa.entities.RealmEntity$HibernateProxy was found in an archive, but Soot doesn't support reading source files out of an archive
2024-03-27T17:39:36.427+08:00 ERROR 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.models.jpa.entities.ClientAttributeEntity$HibernateProxy$yubtJcyD, Message: Class org.keycloak.models.jpa.entities.ClientAttributeEntity$HibernateProxy was found in an archive, but Soot doesn't support reading source files out of an archive
2024-03-27T17:39:56.612+08:00 ERROR 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.quarkus.deployment.LiquibaseProcessor$$accessor, Message: Class org.keycloak.quarkus.deployment.LiquibaseProcessor$ was found in an archive, but Soot doesn't support reading source files out of an archive
2024-03-27T17:39:56.615+08:00 ERROR 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Load Error: org.keycloak.quarkus.deployment.KeycloakProcessor$$accessor, Message: Class org.keycloak.quarkus.deployment.KeycloakProcessor$ was found in an archive, but Soot doesn't support reading source files out of an archive
2024-03-27T17:41:04.273+08:00  INFO 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Total 81118 classes.
2024-03-27T17:41:04.341+08:00  INFO 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 0 classes' information
2024-03-27T17:41:04.601+08:00  INFO 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 10000 classes' information
2024-03-27T17:41:04.825+08:00  INFO 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 20000 classes' information
2024-03-27T17:41:04.993+08:00  INFO 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 30000 classes' information
2024-03-27T17:41:05.133+08:00  INFO 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 40000 classes' information
2024-03-27T17:41:05.221+08:00  INFO 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 50000 classes' information
2024-03-27T17:41:05.290+08:00  INFO 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 60000 classes' information
2024-03-27T17:41:05.355+08:00  INFO 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 70000 classes' information
2024-03-27T17:41:05.423+08:00  INFO 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 80000 classes' information
2024-03-27T17:41:05.429+08:00  INFO 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Collected 81118 classes' information
2024-03-27T17:41:05.454+08:00  INFO 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Build 81118 classes' edges.
2024-03-27T17:41:05.454+08:00  INFO 16023 --- [           main] tabby.core.scanner.ClassInfoScanner      : Build 0/81118 classes.
Killed

我的配置文件如下,是按照你发给我的文档相应配置的:

# need to modify
tabby.build.target                        = /home/trevor/Desktop/1/KCLK/keycloak-24.0.2-s/
tabby.build.libraries                     = /home/trevor/Desktop/1/KCLK/keycloak-24.0.2-s/
tabby.build.mode                          = gadget
tabby.output.directory                    = ./output/dev

# debug
tabby.debug.details                       = false
tabby.debug.print.current.methods         = true

# jdk settings
tabby.build.useSettingJRE                 = false
tabby.build.isJRE9Module                  = true
#tabby.build.javaHome                      = /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
tabby.build.javaHome                      = /usr/lib/jvm/java-17-openjdk-amd64
tabby.build.isJDKProcess                  = false
tabby.build.withAllJDK                    = false
tabby.build.isJDKOnly                     = false

# dealing fatjar
tabby.build.checkFatJar                   = true

# pointed-to analysis
tabby.build.isFullCallGraphCreate         = false
# tabby.build.thread.timeout                = 2
# tabby.build.method.timeout                = 5
tabby.build.isNeedToCreateIgnoreList      = false
tabby.build.timeout.forceStop             = false
tabby.build.isNeedToDealNewAddedMethod    = true

配置文件的一些项我也进行了调整但是只是类的数量有变化但不改变一build就会被killed的结局,大佬知道什么原因吗?

wh1t3p1g commented 7 months ago

这是错误是配置了20g内存,但是系统不足20g,会直接kill掉,可以尝试降低20g配置或保证虚拟机有20g内存剩余

MountainCui25 commented 6 months ago

感谢大佬,已解决,在服务器上生成了csv,不过导入Windows上的neo4j时出现了问题,我查阅了官网的文档,语法大概就是在查询命令行输入 LOAD CSV [WITH HEADERS] FROM 'file:///C:\Users\varas\Trevor\202404\import\GRAPHDB_PUBLIC_ALIAS.csv' [AS alias]' 但是会报错,想请教下这个思路是不是合理的,然后合理的话一般这样如何写导入语法呢?谢谢!

wh1t3p1g commented 6 months ago

导入数据可以用tabby-vul-finder这个项目,如果想人工导入的话,可以看该项目里面的导入语句

MountainCui25 commented 5 months ago

非常感谢大佬!