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

PrusaSlicer failed to run tests with MSVC on AddressSanitizer mode #7776

Open
YangYang129 opened this issue Jan 19, 2022 · 0 comments
Open

Comments

@YangYang129
Copy link

Hi All,
PrusaSlicer failed to run tests on windows with MSVC in asan mode, this issue can be reproduced on latest version 2cc2059. Could you please help look at this issue? Thank you very much

Repro steps:

  1. Open a x64 Native Tools Command Prompt for VS 2019
  2. Git clone https://github.com/prusa3d/PrusaSlicer F:\gitP\prusa3d\PrusaSlicer
  3. cd F:\gitP\prusa3d\PrusaSlicer\deps
  4. mkdir build_dep & cd build_dep
  5. set CL= /fsanitize=address /GS- /wd5072 & set LINK= /InferASanLibs /incremental:no /debug
  6. cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DCMAKE_BUILD_TYPE=Release ..
  7. msbuild /m /p:Platform=x64 /p:Configuration=Release ALL_BUILD.vcxproj /t:Rebuild
  8. cd F:\gitP\prusa3d\PrusaSlicer
  9. mkdir build_amd64 & cd build_amd64
  10. cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=F:\gitP\prusa3d\PrusaSlicer\deps\build_dep\destdir\usr\local ..
  11. msbuild /m /p:Platform=x64 /p:Configuration=Release PrusaSlicer.sln /t:Rebuild
  12. set CL= /fsanitize=address /GS- /wd5072 & set LINK= /InferASanLibs /incremental:no /debug
  13. ctest --build-config Release --output-on-failure

Test log:
ctest.log

Error info:
Start 1: libnest2d_tests
1/5 Test #1: libnest2d_tests ..................***Exception: SegFault 2.77 sec
Filters: exclude:[NotWorking]
Testing Angles
Passed in 0.000966 [seconds]

Testing ItemCreationAndDestruction
Passed in 7.7e-05 [seconds]

Testing boundingCircle
Passed in 0.004537 [seconds]

Testing Distance
Passed in 4.8e-05 [seconds]

Testing Area
Passed in 9.5e-05 [seconds]

Testing IsPointInsidePolygon
Passed in 9.4e-05 [seconds]

Testing LeftAndDownPolygon
Passed in 0.001741 [seconds]

Testing ArrangeRectanglesLoose
Passed in 0.212875 [seconds]

Testing convexHull
Passed in 8.9e-05 [seconds]

Testing PrusaPartsShouldFitIntoTwoBins

libnest2d_tests.exe is a Catch v2.13.6 host application.
Run with -? for options

-------------------------------------------------------------------------------
PrusaPartsShouldFitIntoTwoBins
-------------------------------------------------------------------------------
F:\gitP\prusa3d\PrusaSlicer\tests\libnest2d\libnest2d_tests_main.cpp(593)
...............................................................................

F:\gitP\prusa3d\PrusaSlicer\tests\libnest2d\libnest2d_tests_main.cpp(593): FAILED:
  {Unknown expression after the reported line}
due to a fatal error condition:
  SIGSEGV - Segmentation violation signal

===============================================================================
test cases:  10 |   9 passed | 1 failed
assertions: 468 | 467 passed | 1 failed

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