joernio / joern

Open-source code analysis platform for C/C++/Java/Binary/Javascript/Python/Kotlin based on code property graphs. Discord https://discord.gg/vv4MH284Hc
https://joern.io/
Apache License 2.0
2.05k stars 279 forks source link

[Bug][Jssrc2cpg][Performance] Hang #3909

Closed ycclnn closed 10 months ago

ycclnn commented 10 months ago

cleave.js.zip Looks like another issue, kinda like #3869.


moving cpg.bin.zip to cpg.bin because it is already a database file
Creating working copy of CPG to be safe
Loading base CPG from: C:\Users\admin\Downloads\joern-cli\joern-cli\workspace\cleave.js\cpg.bin.tmp
Code successfully imported. You can now query it using `cpg`.
For an overview of all imported code, type `workspace`.
Adding default overlays to base CPG
The graph has been modified. You may want to use the `save` command to persist changes to disk.  All changes will also be saved collectively on exit
2023-12-07 16:45:37.030 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.us.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:45:37.034 WARN ReachingDefPass: Skipping.
2023-12-07 16:45:42.265 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.gd.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:45:42.267 WARN ReachingDefPass: Skipping.
2023-12-07 16:45:43.323 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.pr.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:45:43.344 WARN ReachingDefPass: Skipping.
2023-12-07 16:45:44.092 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.mp.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:45:44.119 WARN ReachingDefPass: Skipping.
2023-12-07 16:45:44.171 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.sx.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:45:44.183 WARN ReachingDefPass: Skipping.
2023-12-07 16:45:44.526 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.tc.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:45:44.531 WARN ReachingDefPass: Skipping.
2023-12-07 16:45:45.182 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.ms.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:45:45.183 WARN ReachingDefPass: Skipping.
2023-12-07 16:45:46.428 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.vg.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:45:46.429 WARN ReachingDefPass: Skipping.
2023-12-07 16:45:47.252 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.lc.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:45:47.273 WARN ReachingDefPass: Skipping.
2023-12-07 16:45:47.273 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.ca.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:45:47.308 WARN ReachingDefPass: Skipping.
2023-12-07 16:45:50.554 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.jm.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:45:50.560 WARN ReachingDefPass: Skipping.
2023-12-07 16:46:53.762 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.vc.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:46:53.763 WARN ReachingDefPass: Skipping.
2023-12-07 16:47:03.123 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.vi.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:47:03.124 WARN ReachingDefPass: Skipping.
2023-12-07 16:47:03.689 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.bs.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:47:03.697 WARN ReachingDefPass: Skipping.
2023-12-07 16:47:05.141 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.bm.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:47:05.142 WARN ReachingDefPass: Skipping.
2023-12-07 16:47:05.691 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.as.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:47:05.692 WARN ReachingDefPass: Skipping.
2023-12-07 16:47:07.283 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.bb.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:47:07.284 WARN ReachingDefPass: Skipping.
2023-12-07 16:47:07.769 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.ag.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:47:07.772 WARN ReachingDefPass: Skipping.
2023-12-07 16:47:08.694 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.gu.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:47:08.699 WARN ReachingDefPass: Skipping.
2023-12-07 16:47:09.734 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.tt.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:47:09.736 WARN ReachingDefPass: Skipping.
2023-12-07 16:47:11.004 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.dm.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:47:11.004 WARN ReachingDefPass: Skipping.
2023-12-07 16:47:12.733 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.ky.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:47:12.733 WARN ReachingDefPass: Skipping.
2023-12-07 16:47:50.378 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.ai.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:47:50.379 WARN ReachingDefPass: Skipping.
2023-12-07 16:47:50.679 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.do.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:47:50.680 WARN ReachingDefPass: Skipping.
2023-12-07 16:47:51.611 WARN ReachingDefPass: nosir-cleave.js-e3fa6f3\src\addons\phone-type-formatter.kn.js::program:<lambda>0 has more than 4000 definitions
2023-12-07 16:47:51.611 WARN ReachingDefPass: Skipping.

Desktop (please complete the following information):

max-leuthaeuser commented 10 months ago

While debugging https://github.com/joernio/joern/issues/3901 I also noticed problems with the TypeNodePass / ReachingDefPass. @johannescoetzee I am not sure if maybe something in https://github.com/joernio/joern/pull/3900 broke it. I need a second pair of eyes here.

max-leuthaeuser commented 10 months ago

Also, for this issue here specially: The files like phone-type-formatter.us.js look like internationalization stuff. Maybe you have success by simply ignoring the whole folder.

ycclnn commented 10 months ago

Also, for this issue here specially: The files like phone-type-formatter.us.js look like internationalization stuff. Maybe you have success by simply ignoring the whole folder.

Yes. Guess we can just keep it as it is.