Skip to content

WIP: Add asan ci job#1540

Draft
chapman39 wants to merge 3 commits intodevelopfrom
feature/chapman39/add-asan-ci-job
Draft

WIP: Add asan ci job#1540
chapman39 wants to merge 3 commits intodevelopfrom
feature/chapman39/add-asan-ci-job

Conversation

@chapman39
Copy link
Collaborator

@chapman39 chapman39 commented Feb 12, 2026

Adds CI job with address sanitizer enabled as a part of our CI on-push pipelines.

I put the asan logs into individual files as was recommended in our docs, but it doesn't preview from the gitlab interface, so we'd have to download them to view the output... it may be better to just output the asan into to screen.

https://lc.llnl.gov/gitlab/smith/smith/-/jobs/3369780/artifacts/browse/asan_logs/

example of asan error

=================================================================
==contact_beam==1507367==ERROR: AddressSanitizer: new-delete-type-mismatch on 0x511000087040 in thread T0:
  object passed to delete has wrong type:
  size of the allocated type:   200 bytes;
  size of the deallocated type: 184 bytes.
    #0 0x555555f270d2 in operator delete(void*, unsigned long) /root/.spack/stage/sly1/spack-stage-llvm-19.1.3-gy2lu5xbi4csr2k47emlajzfs5mlsd4g/spack-src/compiler-rt/lib/asan/asan_new_delete.cpp:155:3
    #1 0x55555627d398 in tribol::CouplingScheme::allocateMethodData() (/usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/_smith_build_and_test_2026_02_13_14_19_56/build-dane-toss_4_x86_64_ib-llvm@19.1.3/tests/contact_beam+0xd29398)
    #2 0x55555627d2bf in tribol::CouplingScheme::init() (/usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/_smith_build_and_test_2026_02_13_14_19_56/build-dane-toss_4_x86_64_ib-llvm@19.1.3/tests/contact_beam+0xd292bf)
    #3 0x555556271f08 in tribol::update(int, double, double&) (/usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/_smith_build_and_test_2026_02_13_14_19_56/build-dane-toss_4_x86_64_ib-llvm@19.1.3/tests/contact_beam+0xd1df08)
    #4 0x555555fe4686 in smith::SolidMechanicsContact<1, 3, smith::Parameters<>, std::integer_sequence<int>>::warmStartDisplacementContact(double) /usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/src/smith/infrastructure/../../smith/physics/solid_mechanics_contact.hpp:322:16
    #5 0x555555f648f5 in smith::SolidMechanicsContact<1, 3, smith::Parameters<>, std::integer_sequence<int>>::quasiStaticSolve(double) /usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/src/smith/infrastructure/../../smith/physics/solid_mechanics_contact.hpp:246:5
    #6 0x555555f5136a in smith::SolidMechanics<1, 3, smith::Parameters<>, std::integer_sequence<int>>::advanceTimestep(double) /usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/src/smith/infrastructure/../../smith/physics/solid_mechanics.hpp:1176:7
    #7 0x555555f2975d in smith::ContactTest_beam_Test::TestBody() /usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/src/smith/physics/tests/contact_beam.cpp:98:16
    #8 0x5555560d79a3 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/cmake/blt/thirdparty_builtin/googletest/googletest/src/gtest.cc:2621:10
    #9 0x5555560bf885 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/cmake/blt/thirdparty_builtin/googletest/googletest/src/gtest.cc:2657:14
    #10 0x55555609eca6 in testing::Test::Run() /usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/cmake/blt/thirdparty_builtin/googletest/googletest/src/gtest.cc:2696:5
    #11 0x55555609f86b in testing::TestInfo::Run() /usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/cmake/blt/thirdparty_builtin/googletest/googletest/src/gtest.cc:2845:11
    #12 0x5555560a0063 in testing::TestSuite::Run() /usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/cmake/blt/thirdparty_builtin/googletest/googletest/src/gtest.cc:3023:30
    #13 0x5555560b18f8 in testing::internal::UnitTestImpl::RunAllTests() /usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/cmake/blt/thirdparty_builtin/googletest/googletest/src/gtest.cc:5926:44
    #14 0x5555560db333 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/cmake/blt/thirdparty_builtin/googletest/googletest/src/gtest.cc:2621:10
    #15 0x5555560c1c15 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/cmake/blt/thirdparty_builtin/googletest/googletest/src/gtest.cc:2657:14
    #16 0x5555560b147a in testing::UnitTest::Run() /usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/cmake/blt/thirdparty_builtin/googletest/googletest/src/gtest.cc:5492:10
    #17 0x555555f2c47a in main /usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/src/smith/physics/tests/contact_beam.cpp:138:10
    #18 0x155551d83864 in __libc_start_main (/lib64/libc.so.6+0x3a864) (BuildId: 1faac7cdefc71ce73027e33a84650684eecd1635)
    #19 0x555555e47eed in _start (/usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/_smith_build_and_test_2026_02_13_14_19_56/build-dane-toss_4_x86_64_ib-llvm@19.1.3/tests/contact_beam+0x8f3eed)

0x511000087040 is located 0 bytes inside of 200-byte region [0x511000087040,0x511000087108)
allocated by thread T0 here:
    #0 0x555555f2646d in operator new(unsigned long) /root/.spack/stage/sly1/spack-stage-llvm-19.1.3-gy2lu5xbi4csr2k47emlajzfs5mlsd4g/spack-src/compiler-rt/lib/asan/asan_new_delete.cpp:86:3
    #1 0x55555627d365 in tribol::CouplingScheme::allocateMethodData() (/usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/_smith_build_and_test_2026_02_13_14_19_56/build-dane-toss_4_x86_64_ib-llvm@19.1.3/tests/contact_beam+0xd29365)

SUMMARY: AddressSanitizer: new-delete-type-mismatch (/usr/WS2/meemee/.jacamar-ci/builds/s4bfR4w-x/004/gitlab/smith/smith/_smith_build_and_test_2026_02_13_14_19_56/build-dane-toss_4_x86_64_ib-llvm@19.1.3/tests/contact_beam+0xd29398) in tribol::CouplingScheme::allocateMethodData()
==contact_beam==1507367==HINT: if you don't care about these errors you may set ASAN_OPTIONS=new_delete_type_mismatch=0
==contact_beam==1507367==ABORTING

@chapman39 chapman39 self-assigned this Feb 12, 2026
@chapman39 chapman39 added WIP Work in progress CI Continuous Integration labels Feb 12, 2026
@chapman39 chapman39 changed the title Add asan ci job WIP: Add asan ci job Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration WIP Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant