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

Java tests #367

Merged
merged 21 commits into from
Jan 17, 2023
Merged

Java tests #367

merged 21 commits into from
Jan 17, 2023

Conversation

pkspyder007
Copy link
Contributor

@pkspyder007 pkspyder007 commented Jan 14, 2023

Description

Adds java to win ci test

One test is failing but it's not related to the java env setup

Changes

  • Downloads and copies the openjdk to the runtime directory
  • Set github env vars for JAVA_HOME and jvm.dll
  • Fixes some errors in java_loader_impl.cpp related to dynamic array creation

@pkspyder007
Copy link
Contributor Author

Strange why format tests are failing I am getting this in my terminal
Files in this commit comply with the clang-format rules

@viferga
Copy link
Member

viferga commented Jan 17, 2023

@pkspyder007 I've seen that some Java PR has been merged already, what should we do with this?

@viferga
Copy link
Member

viferga commented Jan 17, 2023

Oh sorry I am wrong, it has not been merged, but the CI was run due to the PR: https://github.com/metacall/core/actions/runs/3923840394/jobs/6707696984

@viferga
Copy link
Member

viferga commented Jan 17, 2023

Ok, so here's the error:

2023-01-15T14:25:59.9762810Z ==4076==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x002c28afce38 at pc 0x7ff846a74136 bp 0x002c28afcb10 sp 0x002c28afcb18
2023-01-15T14:25:59.9763340Z READ of size 8 at 0x002c28afce38 thread T0
2023-01-15T14:25:59.9763840Z     #0 0x7ff846a74135 in value_validate D:\a\core\core\source\reflect\source\reflect_value.c:114
2023-01-15T14:25:59.9764418Z     #1 0x7ff846a8b6bf in metacallfv_s D:\a\core\core\source\metacall\source\metacall.c:1000
2023-01-15T14:25:59.9765232Z     #2 0x7ff664f895f5 in metacall_test_DefaultConstructor_Test::TestBody(void) D:\a\core\core\source\tests\metacall_test\source\metacall_test.cpp:297
2023-01-15T14:25:59.9766314Z     #3 0x7ff664fcbadc in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) D:\a\core\core\build\source\tests\src\google-test-depends\googletest\src\gtest.cc:2592
2023-01-15T14:25:59.9767544Z     #4 0x7ff664fcb7d2 in testing::internal::HandleExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) D:\a\core\core\build\source\tests\src\google-test-depends\googletest\src\gtest.cc:2643
2023-01-15T14:25:59.9768508Z     #5 0x7ff664fa90aa in testing::Test::Run(void) D:\a\core\core\build\source\tests\src\google-test-depends\googletest\src\gtest.cc:2682
2023-01-15T14:25:59.9769262Z     #6 0x7ff664fa9bb4 in testing::TestInfo::Run(void) D:\a\core\core\build\source\tests\src\google-test-depends\googletest\src\gtest.cc:2861
2023-01-15T14:25:59.9770021Z     #7 0x7ff664faa3f1 in testing::TestSuite::Run(void) D:\a\core\core\build\source\tests\src\google-test-depends\googletest\src\gtest.cc:3015
2023-01-15T14:25:59.9770807Z     #8 0x7ff664fb0a1b in testing::internal::UnitTestImpl::RunAllTests(void) D:\a\core\core\build\source\tests\src\google-test-depends\googletest\src\gtest.cc:5855
2023-01-15T14:25:59.9771915Z     #9 0x7ff664fcbc6c in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) D:\a\core\core\build\source\tests\src\google-test-depends\googletest\src\gtest.cc:2592
2023-01-15T14:25:59.9773279Z     #10 0x7ff664fcba52 in testing::internal::HandleExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) D:\a\core\core\build\source\tests\src\google-test-depends\googletest\src\gtest.cc:2643
2023-01-15T14:25:59.9774479Z     #11 0x7ff664faabc0 in testing::UnitTest::Run(void) D:\a\core\core\build\source\tests\src\google-test-depends\googletest\src\gtest.cc:5438
2023-01-15T14:25:59.9775206Z     #12 0x7ff664f829e0 in RUN_ALL_TESTS(void) D:\a\core\core\build\source\tests\src\google-test-depends\googletest\include\gtest\gtest.h:2490
2023-01-15T14:25:59.9775868Z     #13 0x7ff664f81850 in main D:\a\core\core\source\tests\metacall_test\source\main.cpp:27
2023-01-15T14:25:59.9776477Z     #14 0x7ff6650042f8 in invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
2023-01-15T14:25:59.9777126Z     #15 0x7ff66500424d in __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
2023-01-15T14:25:59.9777850Z     #16 0x7ff66500410d in __scrt_common_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:330
2023-01-15T14:25:59.9778463Z     #17 0x7ff66500436d in mainCRTStartup D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:16
2023-01-15T14:25:59.9779031Z     #18 0x7ff87e127af3  (C:\Windows\System32\KERNEL32.DLL+0x180017af3)
2023-01-15T14:25:59.9779518Z     #19 0x7ff880a2a370  (C:\Windows\SYSTEM32\ntdll.dll+0x18005a370)
2023-01-15T14:25:59.9779812Z 
2023-01-15T14:25:59.9780107Z Address 0x002c28afce38 is located in stack of thread T0 at offset 440 in frame
2023-01-15T14:25:59.9780758Z     #0 0x7ff664f82b7f in metacall_test_DefaultConstructor_Test::TestBody(void) D:\a\core\core\source\tests\metacall_test\source\metacall_test.cpp:63
2023-01-15T14:25:59.9781183Z 
2023-01-15T14:25:59.9781353Z   This frame has 286 object(s):
2023-01-15T14:25:59.9781615Z     [32, 292) 'cwd'
2023-01-15T14:25:59.9781934Z     [48, 157) 'web_content'
2023-01-15T14:25:59.9782266Z     [64, 176) 'corrupted_value'
2023-01-15T14:25:59.9782562Z     [80, 145) 'buffer'
2023-01-15T14:25:59.9782876Z     [96, 104) 'log_stdio'
2023-01-15T14:25:59.9783258Z     [112, 116) 'compiler temporary'
2023-01-15T14:25:59.9783593Z     [128, 132) 'compiler temporary'
2023-01-15T14:25:59.9783925Z     [144, 160) 'gtest_ar'
2023-01-15T14:25:59.9784256Z     [160, 168) 'compiler temporary'
2023-01-15T14:25:59.9784607Z     [176, 184) 'compiler temporary'
2023-01-15T14:25:59.9784940Z     [192, 196) 'compiler temporary'
2023-01-15T14:25:59.9785290Z     [208, 212) 'compiler temporary'
2023-01-15T14:25:59.9785616Z     [224, 240) 'gtest_ar'
2023-01-15T14:25:59.9785925Z     [240, 248) 'compiler temporary'
2023-01-15T14:25:59.9786268Z     [256, 264) 'compiler temporary'
2023-01-15T14:25:59.9786613Z     [272, 276) 'compiler temporary'
2023-01-15T14:25:59.9786961Z     [288, 292) 'compiler temporary'
2023-01-15T14:25:59.9787259Z     [304, 320) 'gtest_ar'
2023-01-15T14:25:59.9787587Z     [320, 328) 'compiler temporary'
2023-01-15T14:25:59.9787930Z     [336, 344) 'compiler temporary'
2023-01-15T14:25:59.9788278Z     [352, 356) 'compiler temporary'
2023-01-15T14:25:59.9788974Z     [368, 372) 'compiler temporary'
2023-01-15T14:25:59.9789254Z     [384, 400) 'gtest_ar'
2023-01-15T14:25:59.9789514Z     [400, 408) 'compiler temporary'
2023-01-15T14:25:59.9789773Z     [416, 424) 'compiler temporary'
2023-01-15T14:25:59.9790124Z     [432, 440) 'ret' <== Memory access at offset 440 overflows this variable
2023-01-15T14:25:59.9790537Z     [448, 456) 'func' <== Memory access at offset 440 underflows this variable
2023-01-15T14:25:59.9790889Z     [464, 468) 'result'
2023-01-15T14:25:59.9791132Z     [480, 484) 'compiler temporary'
2023-01-15T14:25:59.9791416Z     [496, 500) 'compiler temporary'
2023-01-15T14:25:59.9791675Z     [512, 528) 'gtest_ar'
2023-01-15T14:25:59.9791950Z     [528, 536) 'compiler temporary'
2023-01-15T14:25:59.9792247Z     [544, 552) 'compiler temporary'
2023-01-15T14:25:59.9795067Z     [560, 568) 'compiler temporary'
2023-01-15T14:25:59.9795372Z     [576, 592) 'gtest_ar'
2023-01-15T14:25:59.9795695Z     [592, 600) 'compiler temporary'
2023-01-15T14:25:59.9796137Z     [608, 616) 'compiler temporary'
2023-01-15T14:25:59.9796395Z     [624, 628) 'compiler temporary'
2023-01-15T14:25:59.9796663Z     [640, 656) 'gtest_ar'
2023-01-15T14:25:59.9796926Z     [656, 664) 'compiler temporary'
2023-01-15T14:25:59.9797177Z     [672, 680) 'compiler temporary'
2023-01-15T14:25:59.9797450Z     [688, 696) 'compiler temporary'
2023-01-15T14:25:59.9797717Z     [704, 720) 'gtest_ar'
2023-01-15T14:25:59.9797967Z     [720, 728) 'compiler temporary'
2023-01-15T14:25:59.9798245Z     [736, 744) 'compiler temporary'
2023-01-15T14:25:59.9798526Z     [752, 760) 'compiler temporary'
2023-01-15T14:25:59.9798761Z     [768, 784) 'gtest_ar'
2023-01-15T14:25:59.9799027Z     [784, 792) 'compiler temporary'
2023-01-15T14:25:59.9799310Z     [800, 808) 'compiler temporary'
2023-01-15T14:25:59.9799569Z     [816, 820) 'compiler temporary'
2023-01-15T14:25:59.9799828Z     [832, 848) 'gtest_ar'
2023-01-15T14:25:59.9800179Z     [848, 856) 'compiler temporary'
2023-01-15T14:25:59.9800444Z     [864, 872) 'compiler temporary'
2023-01-15T14:25:59.9800731Z     [880, 896) 'py_scripts'
2023-01-15T14:25:59.9800982Z     [896, 904) 'ret'
2023-01-15T14:25:59.9801220Z     [912, 916) 'compiler temporary'
2023-01-15T14:25:59.9801498Z     [928, 932) 'compiler temporary'
2023-01-15T14:25:59.9801757Z     [944, 960) 'gtest_ar'
2023-01-15T14:25:59.9801999Z     [960, 968) 'compiler temporary'
2023-01-15T14:25:59.9802275Z     [976, 984) 'compiler temporary'
2023-01-15T14:25:59.9802555Z     [992, 996) 'compiler temporary'
2023-01-15T14:25:59.9802815Z     [1008, 1012) 'compiler temporary'
2023-01-15T14:25:59.9803079Z     [1024, 1040) 'gtest_ar'
2023-01-15T14:25:59.9803349Z     [1040, 1048) 'compiler temporary'
2023-01-15T14:25:59.9803642Z     [1056, 1064) 'compiler temporary'
2023-01-15T14:25:59.9803900Z     [1072, 1080) 'compiler temporary'
2023-01-15T14:25:59.9804164Z     [1088, 1104) 'gtest_ar'
2023-01-15T14:25:59.9804439Z     [1104, 1112) 'compiler temporary'
2023-01-15T14:25:59.9804706Z     [1120, 1128) 'compiler temporary'
2023-01-15T14:25:59.9804991Z     [1136, 1140) 'compiler temporary'
2023-01-15T14:25:59.9805372Z     [1152, 1156) 'compiler temporary'
2023-01-15T14:25:59.9805691Z     [1168, 1184) 'gtest_ar'
2023-01-15T14:25:59.9805967Z     [1184, 1192) 'compiler temporary'
2023-01-15T14:25:59.9806250Z     [1200, 1208) 'compiler temporary'
2023-01-15T14:25:59.9806514Z     [1216, 1224) 'compiler temporary'
2023-01-15T14:25:59.9806779Z     [1232, 1248) 'gtest_ar'
2023-01-15T14:25:59.9807047Z     [1248, 1256) 'compiler temporary'
2023-01-15T14:25:59.9807306Z     [1264, 1272) 'compiler temporary'
2023-01-15T14:25:59.9807589Z     [1280, 1284) 'compiler temporary'
2023-01-15T14:25:59.9807961Z     [1296, 1300) 'compiler temporary'
2023-01-15T14:25:59.9808199Z     [1312, 1328) 'gtest_ar'
2023-01-15T14:25:59.9808467Z     [1328, 1336) 'compiler temporary'
2023-01-15T14:25:59.9808745Z     [1344, 1352) 'compiler temporary'
2023-01-15T14:25:59.9809007Z     [1360, 1368) 'compiler temporary'
2023-01-15T14:25:59.9809265Z     [1376, 1392) 'gtest_ar'
2023-01-15T14:25:59.9809536Z     [1392, 1400) 'compiler temporary'
2023-01-15T14:25:59.9809860Z     [1408, 1416) 'compiler temporary'
2023-01-15T14:25:59.9810164Z     [1424, 1432) 'compiler temporary'
2023-01-15T14:25:59.9810443Z     [1440, 1448) 'compiler temporary'
2023-01-15T14:25:59.9810697Z     [1456, 1472) 'gtest_ar'
2023-01-15T14:25:59.9810938Z     [1472, 1480) 'compiler temporary'
2023-01-15T14:25:59.9811216Z     [1488, 1496) 'compiler temporary'
2023-01-15T14:25:59.9811491Z     [1504, 1512) 'compiler temporary'
2023-01-15T14:25:59.9811718Z     [1520, 1536) 'gtest_ar'
2023-01-15T14:25:59.9811990Z     [1536, 1544) 'compiler temporary'
2023-01-15T14:25:59.9812246Z     [1552, 1560) 'compiler temporary'
2023-01-15T14:25:59.9812520Z     [1568, 1572) 'compiler temporary'
2023-01-15T14:25:59.9812796Z     [1584, 1588) 'compiler temporary'
2023-01-15T14:25:59.9813032Z     [1600, 1616) 'gtest_ar'
2023-01-15T14:25:59.9813292Z     [1616, 1624) 'compiler temporary'
2023-01-15T14:25:59.9813656Z     [1632, 1640) 'compiler temporary'
2023-01-15T14:25:59.9813909Z     [1648, 1656) 'compiler temporary'
2023-01-15T14:25:59.9814169Z     [1664, 1680) 'gtest_ar'
2023-01-15T14:25:59.9814830Z     [1680, 1688) 'compiler temporary'
2023-01-15T14:25:59.9815089Z     [1696, 1704) 'compiler temporary'
2023-01-15T14:25:59.9815365Z     [1712, 1716) 'compiler temporary'
2023-01-15T14:25:59.9815647Z     [1728, 1732) 'compiler temporary'
2023-01-15T14:25:59.9815902Z     [1744, 1760) 'gtest_ar'
2023-01-15T14:25:59.9816148Z     [1760, 1768) 'compiler temporary'
2023-01-15T14:25:59.9816427Z     [1776, 1784) 'compiler temporary'
2023-01-15T14:25:59.9816706Z     [1792, 1800) 'compiler temporary'
2023-01-15T14:25:59.9816938Z     [1808, 1824) 'gtest_ar'
2023-01-15T14:25:59.9817205Z     [1824, 1832) 'compiler temporary'
2023-01-15T14:25:59.9817486Z     [1840, 1848) 'compiler temporary'
2023-01-15T14:25:59.9817807Z     [1856, 1860) 'compiler temporary'
2023-01-15T14:25:59.9818096Z     [1872, 1876) 'compiler temporary'
2023-01-15T14:25:59.9818721Z     [1888, 1904) 'gtest_ar'
2023-01-15T14:25:59.9818971Z     [1904, 1912) 'compiler temporary'
2023-01-15T14:25:59.9819248Z     [1920, 1928) 'compiler temporary'
2023-01-15T14:25:59.9819524Z     [1936, 1944) 'compiler temporary'
2023-01-15T14:25:59.9819776Z     [1952, 1960) 'compiler temporary'
2023-01-15T14:25:59.9820032Z     [1968, 1984) 'gtest_ar'
2023-01-15T14:25:59.9820296Z     [1984, 1992) 'compiler temporary'
2023-01-15T14:25:59.9820546Z     [2000, 2008) 'compiler temporary'
2023-01-15T14:25:59.9820826Z     [2016, 2024) 'compiler temporary'
2023-01-15T14:25:59.9821093Z     [2032, 2048) 'gtest_ar'
2023-01-15T14:25:59.9821336Z     [2048, 2056) 'compiler temporary'
2023-01-15T14:25:59.9821617Z     [2064, 2072) 'compiler temporary'
2023-01-15T14:25:59.9821896Z     [2080, 2084) 'compiler temporary'
2023-01-15T14:25:59.9822177Z     [2096, 2100) 'compiler temporary'
2023-01-15T14:25:59.9822414Z     [2112, 2128) 'gtest_ar'
2023-01-15T14:25:59.9822682Z     [2128, 2136) 'compiler temporary'
2023-01-15T14:25:59.9822964Z     [2144, 2152) 'compiler temporary'
2023-01-15T14:25:59.9823196Z     [2160, 2165) 'buffer'
2023-01-15T14:25:59.9823450Z     [2176, 2184) 'buffer_value'
2023-01-15T14:25:59.9823703Z     [2192, 2200) 'args'
2023-01-15T14:25:59.9824046Z     [2208, 2216) 'compiler temporary'
2023-01-15T14:25:59.9824324Z     [2224, 2240) 'gtest_ar'
2023-01-15T14:25:59.9824589Z     [2240, 2248) 'compiler temporary'
2023-01-15T14:25:59.9824849Z     [2256, 2264) 'compiler temporary'
2023-01-15T14:25:59.9825128Z     [2272, 2280) 'compiler temporary'
2023-01-15T14:25:59.9825387Z     [2288, 2304) 'gtest_ar'
2023-01-15T14:25:59.9825629Z     [2304, 2312) 'compiler temporary'
2023-01-15T14:25:59.9825910Z     [2320, 2328) 'compiler temporary'
2023-01-15T14:25:59.9826191Z     [2336, 2344) 'compiler temporary'
2023-01-15T14:25:59.9826451Z     [2352, 2360) 'compiler temporary'
2023-01-15T14:25:59.9826711Z     [2368, 2384) 'gtest_ar'
2023-01-15T14:25:59.9826980Z     [2384, 2392) 'compiler temporary'
2023-01-15T14:25:59.9830709Z     [2400, 2408) 'compiler temporary'
2023-01-15T14:25:59.9831468Z     [2416, 2420) 'compiler temporary'
2023-01-15T14:25:59.9832027Z     [2432, 2436) 'compiler temporary'
2023-01-15T14:25:59.9832455Z     [2448, 2464) 'gtest_ar'
2023-01-15T14:25:59.9832854Z     [2464, 2472) 'compiler temporary'
2023-01-15T14:25:59.9833253Z     [2480, 2488) 'compiler temporary'
2023-01-15T14:25:59.9833673Z     [2496, 2504) 'compiler temporary'
2023-01-15T14:25:59.9834065Z     [2512, 2528) 'gtest_ar'
2023-01-15T14:25:59.9834442Z     [2528, 2536) 'compiler temporary'
2023-01-15T14:25:59.9834857Z     [2544, 2552) 'compiler temporary'
2023-01-15T14:25:59.9835272Z     [2560, 2568) 'compiler temporary'
2023-01-15T14:25:59.9835666Z     [2576, 2592) 'gtest_ar'
2023-01-15T14:25:59.9836042Z     [2592, 2600) 'compiler temporary'
2023-01-15T14:25:59.9836463Z     [2608, 2616) 'compiler temporary'
2023-01-15T14:25:59.9837056Z     [2624, 2632) 'compiler temporary'
2023-01-15T14:25:59.9837470Z     [2640, 2648) 'compiler temporary'
2023-01-15T14:25:59.9837839Z     [2656, 2672) 'gtest_ar'
2023-01-15T14:25:59.9838240Z     [2672, 2680) 'compiler temporary'
2023-01-15T14:25:59.9838657Z     [2688, 2696) 'compiler temporary'
2023-01-15T14:25:59.9839045Z     [2704, 2708) 'compiler temporary'
2023-01-15T14:25:59.9839460Z     [2720, 2724) 'compiler temporary'
2023-01-15T14:25:59.9839855Z     [2736, 2752) 'gtest_ar'
2023-01-15T14:25:59.9840258Z     [2752, 2760) 'compiler temporary'
2023-01-15T14:25:59.9840649Z     [2768, 2776) 'compiler temporary'
2023-01-15T14:25:59.9841059Z     [2784, 2792) 'compiler temporary'
2023-01-15T14:25:59.9841455Z     [2800, 2816) 'gtest_ar'
2023-01-15T14:25:59.9841829Z     [2816, 2824) 'compiler temporary'
2023-01-15T14:25:59.9842273Z     [2832, 2840) 'compiler temporary'
2023-01-15T14:25:59.9842771Z     [2848, 2852) 'compiler temporary'
2023-01-15T14:25:59.9843197Z     [2864, 2868) 'compiler temporary'
2023-01-15T14:25:59.9843554Z     [2880, 2896) 'gtest_ar'
2023-01-15T14:25:59.9843903Z     [2896, 2904) 'compiler temporary'
2023-01-15T14:25:59.9844290Z     [2912, 2920) 'compiler temporary'
2023-01-15T14:25:59.9844665Z     [2928, 2944) 'corrupted_args'
2023-01-15T14:25:59.9845044Z     [2944, 2952) 'compiler temporary'
2023-01-15T14:25:59.9845432Z     [2960, 2968) 'compiler temporary'
2023-01-15T14:25:59.9845795Z     [2976, 2992) 'gtest_ar'
2023-01-15T14:25:59.9846170Z     [2992, 3000) 'compiler temporary'
2023-01-15T14:25:59.9846528Z     [3008, 3016) 'compiler temporary'
2023-01-15T14:25:59.9846902Z     [3024, 3032) 'mock_scripts'
2023-01-15T14:25:59.9847257Z     [3040, 3048) 'ret'
2023-01-15T14:25:59.9847625Z     [3056, 3060) 'compiler temporary'
2023-01-15T14:25:59.9847990Z     [3072, 3076) 'compiler temporary'
2023-01-15T14:25:59.9848355Z     [3088, 3104) 'gtest_ar'
2023-01-15T14:25:59.9848729Z     [3104, 3112) 'compiler temporary'
2023-01-15T14:25:59.9849096Z     [3120, 3128) 'compiler temporary'
2023-01-15T14:25:59.9849483Z     [3136, 3144) 'compiler temporary'
2023-01-15T14:25:59.9849849Z     [3152, 3168) 'gtest_ar'
2023-01-15T14:25:59.9850218Z     [3168, 3176) 'compiler temporary'
2023-01-15T14:25:59.9850585Z     [3184, 3192) 'compiler temporary'
2023-01-15T14:25:59.9850967Z     [3200, 3204) 'compiler temporary'
2023-01-15T14:25:59.9851355Z     [3216, 3220) 'compiler temporary'
2023-01-15T14:25:59.9851698Z     [3232, 3248) 'gtest_ar'
2023-01-15T14:25:59.9852066Z     [3248, 3256) 'compiler temporary'
2023-01-15T14:25:59.9852449Z     [3264, 3272) 'compiler temporary'
2023-01-15T14:25:59.9852833Z     [3280, 3288) 'compiler temporary'
2023-01-15T14:25:59.9853177Z     [3296, 3312) 'gtest_ar'
2023-01-15T14:25:59.9853548Z     [3312, 3320) 'compiler temporary'
2023-01-15T14:25:59.9853934Z     [3328, 3336) 'compiler temporary'
2023-01-15T14:25:59.9870689Z     [3344, 3352) 'compiler temporary'
2023-01-15T14:25:59.9944076Z     [3360, 3368) 'compiler temporary'
2023-01-15T14:25:59.9946193Z     [3376, 3392) 'gtest_ar'
2023-01-15T14:25:59.9946828Z     [3392, 3400) 'compiler temporary'
2023-01-15T14:25:59.9947257Z     [3408, 3416) 'compiler temporary'
2023-01-15T14:25:59.9947629Z     [3424, 3432) 'compiler temporary'
2023-01-15T14:25:59.9948014Z     [3440, 3456) 'gtest_ar'
2023-01-15T14:25:59.9948394Z     [3456, 3464) 'compiler temporary'
2023-01-15T14:25:59.9948758Z     [3472, 3480) 'compiler temporary'
2023-01-15T14:25:59.9949157Z     [3488, 3489) 'compiler temporary'
2023-01-15T14:25:59.9949548Z     [3504, 3505) 'compiler temporary'
2023-01-15T14:25:59.9949918Z     [3520, 3536) 'gtest_ar'
2023-01-15T14:25:59.9950270Z     [3536, 3544) 'compiler temporary'
2023-01-15T14:25:59.9950655Z     [3552, 3560) 'compiler temporary'
2023-01-15T14:25:59.9951046Z     [3568, 3576) 'compiler temporary'
2023-01-15T14:25:59.9951389Z     [3584, 3600) 'gtest_ar'
2023-01-15T14:25:59.9951771Z     [3600, 3608) 'compiler temporary'
2023-01-15T14:25:59.9952159Z     [3616, 3624) 'compiler temporary'
2023-01-15T14:25:59.9952757Z     [3632, 3636) 'compiler temporary'
2023-01-15T14:25:59.9953118Z     [3648, 3652) 'compiler temporary'
2023-01-15T14:25:59.9953485Z     [3664, 3680) 'gtest_ar'
2023-01-15T14:25:59.9953854Z     [3680, 3688) 'compiler temporary'
2023-01-15T14:25:59.9954240Z     [3696, 3704) 'compiler temporary'
2023-01-15T14:25:59.9954594Z     [3712, 3720) 'node_scripts'
2023-01-15T14:25:59.9954975Z     [3728, 3736) 'hello_boy_double_ids'
2023-01-15T14:25:59.9955364Z     [3744, 3752) 'ret'
2023-01-15T14:25:59.9955713Z     [3760, 3764) 'compiler temporary'
2023-01-15T14:25:59.9956098Z     [3776, 3780) 'compiler temporary'
2023-01-15T14:25:59.9956465Z     [3792, 3808) 'gtest_ar'
2023-01-15T14:25:59.9956838Z     [3808, 3816) 'compiler temporary'
2023-01-15T14:25:59.9957201Z     [3824, 3832) 'compiler temporary'
2023-01-15T14:25:59.9957593Z     [3840, 3848) 'compiler temporary'
2023-01-15T14:25:59.9958098Z     [3856, 3872) 'gtest_ar'
2023-01-15T14:25:59.9958499Z     [3872, 3880) 'compiler temporary'
2023-01-15T14:25:59.9958893Z     [3888, 3896) 'compiler temporary'
2023-01-15T14:25:59.9959280Z     [3904, 3912) 'compiler temporary'
2023-01-15T14:25:59.9959645Z     [3920, 3928) 'compiler temporary'
2023-01-15T14:25:59.9960008Z     [3936, 3952) 'gtest_ar'
2023-01-15T14:25:59.9960378Z     [3952, 3960) 'compiler temporary'
2023-01-15T14:25:59.9960767Z     [3968, 3976) 'compiler temporary'
2023-01-15T14:25:59.9961128Z     [3984, 3992) 'compiler temporary'
2023-01-15T14:25:59.9961497Z     [4000, 4016) 'gtest_ar'
2023-01-15T14:25:59.9961869Z     [4016, 4024) 'compiler temporary'
2023-01-15T14:25:59.9962229Z     [4032, 4040) 'compiler temporary'
2023-01-15T14:25:59.9962612Z     [4048, 4056) 'compiler temporary'
2023-01-15T14:25:59.9962999Z     [4064, 4072) 'compiler temporary'
2023-01-15T14:25:59.9963364Z     [4080, 4096) 'gtest_ar'
2023-01-15T14:25:59.9963707Z     [4096, 4104) 'compiler temporary'
2023-01-15T14:25:59.9964095Z     [4112, 4120) 'compiler temporary'
2023-01-15T14:25:59.9964480Z     [4128, 4132) 'compiler temporary'
2023-01-15T14:25:59.9964864Z     [4144, 4148) 'compiler temporary'
2023-01-15T14:25:59.9965202Z     [4160, 4176) 'gtest_ar'
2023-01-15T14:25:59.9965567Z     [4176, 4184) 'compiler temporary'
2023-01-15T14:25:59.9965950Z     [4192, 4200) 'compiler temporary'
2023-01-15T14:25:59.9966312Z     [4208, 4216) 'compiler temporary'
2023-01-15T14:25:59.9966675Z     [4224, 4240) 'gtest_ar'
2023-01-15T14:25:59.9967454Z     [4240, 4248) 'compiler temporary'
2023-01-15T14:25:59.9967837Z     [4256, 4264) 'compiler temporary'
2023-01-15T14:25:59.9968197Z     [4272, 4280) 'compiler temporary'
2023-01-15T14:25:59.9968584Z     [4288, 4296) 'compiler temporary'
2023-01-15T14:25:59.9968951Z     [4304, 4320) 'gtest_ar'
2023-01-15T14:25:59.9969295Z     [4320, 4328) 'compiler temporary'
2023-01-15T14:25:59.9969686Z     [4336, 4344) 'compiler temporary'
2023-01-15T14:25:59.9970075Z     [4352, 4360) 'size'
2023-01-15T14:25:59.9970420Z     [4368, 4392) 'std_ctx'
2023-01-15T14:25:59.9970782Z     [4384, 4392) 'inspect_str'
2023-01-15T14:25:59.9971143Z     [4400, 4408) 'compiler temporary'
2023-01-15T14:25:59.9971507Z     [4416, 4432) 'gtest_ar'
2023-01-15T14:25:59.9971880Z     [4432, 4440) 'compiler temporary'
2023-01-15T14:25:59.9972262Z     [4448, 4456) 'compiler temporary'
2023-01-15T14:25:59.9972633Z     [4464, 4472) 'compiler temporary'
2023-01-15T14:25:59.9973000Z     [4480, 4496) 'gtest_ar'
2023-01-15T14:25:59.9973370Z     [4496, 4504) 'compiler temporary'
2023-01-15T14:25:59.9973752Z     [4512, 4520) 'compiler temporary'
2023-01-15T14:25:59.9974137Z     [4528, 4532) 'compiler temporary'
2023-01-15T14:25:59.9974526Z     [4544, 4548) 'compiler temporary'
2023-01-15T14:25:59.9974888Z     [4560, 4576) 'gtest_ar'
2023-01-15T14:25:59.9975234Z     [4576, 4584) 'compiler temporary'
2023-01-15T14:25:59.9975621Z     [4592, 4600) 'compiler temporary'
2023-01-15T14:25:59.9976185Z HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
2023-01-15T14:25:59.9976897Z       (longjmp, SEH and C++ exceptions *are* supported)
2023-01-15T14:25:59.9977546Z SUMMARY: AddressSanitizer: stack-buffer-overflow D:\a\core\core\source\reflect\source\reflect_value.c:114 in value_validate
2023-01-15T14:25:59.9978147Z Shadow bytes around the buggy address:
2023-01-15T14:25:59.9978584Z   0x019b37edf970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2023-01-15T14:25:59.9978983Z   0x019b37edf980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2023-01-15T14:25:59.9979400Z   0x019b37edf990: f1 f1 f1 f1 00 00 00 00 00 00 00 00 00 00 00 00
2023-01-15T14:25:59.9979815Z   0x019b37edf9a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2023-01-15T14:25:59.9980233Z   0x019b37edf9b0: 00 00 00 00 04 f2 f2 f2 f2 f2 00 00 00 00 00 00
2023-01-15T14:25:59.9980631Z =>0x019b37edf9c0: 00 00 00 00 00 00 00[05]f2 f2 f2 f2 00 00 00 00
2023-01-15T14:25:59.9981120Z   0x019b37edf9d0: 00 00 00 00 00 00 00 00 00 00 f2 f2 f2 f2 00 00
2023-01-15T14:25:59.9981547Z   0x019b37edf9e0: 00 00 00 00 00 00 01 f2 f2 f2 f2 f2 00 f2 f8 f2
2023-01-15T14:25:59.9981972Z   0x019b37edf9f0: f8 f2 00 00 f2 f2 f2 f2 f8 f2 f8 f2 f8 f2 f8 f2
2023-01-15T14:25:59.9982383Z   0x019b37edfa00: 00 00 f2 f2 f2 f2 f8 f2 f8 f2 f8 f2 f8 f2 00 00
2023-01-15T14:25:59.9983955Z   0x019b37edfa10: f2 f2 f2 f2 f8 f2 f8 f2 f8 f2 f8 f2 00 00 f2 f2
2023-01-15T14:25:59.9984540Z Shadow byte legend (one shadow byte represents 8 application bytes):
2023-01-15T14:25:59.9984992Z   Addressable:           00
2023-01-15T14:25:59.9985412Z   Partially addressable: 01 02 03 04 05 06 07 
2023-01-15T14:25:59.9985825Z   Heap left redzone:       fa
2023-01-15T14:25:59.9986223Z   Freed heap region:       fd
2023-01-15T14:25:59.9986585Z   Stack left redzone:      f1
2023-01-15T14:25:59.9986972Z   Stack mid redzone:       f2
2023-01-15T14:25:59.9987352Z   Stack right redzone:     f3
2023-01-15T14:25:59.9987729Z   Stack after return:      f5
2023-01-15T14:25:59.9988118Z   Stack use after scope:   f8
2023-01-15T14:25:59.9988506Z   Global redzone:          f9
2023-01-15T14:25:59.9988883Z   Global init order:       f6
2023-01-15T14:25:59.9989242Z   Poisoned by user:        f7
2023-01-15T14:25:59.9989634Z   Container overflow:      fc
2023-01-15T14:25:59.9990016Z   Array cookie:            ac
2023-01-15T14:25:59.9990372Z   Intra object redzone:    bb
2023-01-15T14:25:59.9990755Z   ASan internal:           fe
2023-01-15T14:25:59.9991165Z   Left alloca redzone:     ca
2023-01-15T14:25:59.9991553Z   Right alloca redzone:    cb
2023-01-15T14:25:59.9991907Z   Shadow gap:              cc

I will also review it as soon as possible.

@viferga
Copy link
Member

viferga commented Jan 17, 2023

Ok, bug solved. Merging.

@viferga viferga merged commit 8821441 into metacall:develop Jan 17, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants