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

[build] Endless loop AddressSanitizer:DEADLYSIGNAL when build sonic-dhcp6relay #19007

Open
k-v1 opened this issue May 19, 2024 · 2 comments
Open
Assignees
Labels
Triaged this issue has been triaged

Comments

@k-v1
Copy link
Contributor

k-v1 commented May 19, 2024

@kellyyeh FYI

Description

Endless loop when build sonic-dhcp6relay on Ubuntu 22.04 with linux kernel 6.5.
More verbose description of this issue you can find here: actions/runner-images#9491 (comment)

Possible solutions:

  1. sudo sysctl vm.mmap_rnd_bits=28 for build system
    or
  2. disable -fsanitize=address or unit tests by default for this package
    But it can affect any other package with address sanitizer that's why I decided to report this issue here.

Steps to reproduce the issue:

  1. Use ubuntu 22.04 with linux kernel 6.5 as build system
  2. make target/sonic-vs.img.gz or make target/debs/bookworm/sonic-dhcp6relay_1.0.0-0_amd64.deb
  3. interrupt the build after some time and check target/debs/bookworm/sonic-dhcp6relay_1.0.0-0_amd64.deb.log

Describe the results you received:

make[2]: Leaving directory '/sonic/src/dhcprelay'
   dh_auto_test
    make -j20 test
make[2]: Entering directory '/sonic/src/dhcprelay'
sudo ASAN_OPTIONS=detect_leaks=0 ./build-test/dhcp6relay-test --gtest_output=xml:build-test/dhcp6relay-test-test-result.xml || true
gcovr -r ./ --html --html-details -o build-test/dhcp6relay-test-code-coverage.html
gcovr -r ./ --xml-pretty -o build-test/dhcp6relay-test-code-coverage.xml
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
...
AddressSanitizer:DEADLYSIGNAL

Describe the results you expected:

Build finished successfully.

Output of show version:

master branch

Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

@gechiang
Copy link
Collaborator

@xumia Can you help take a look this build issue?
Thanks!

@gechiang gechiang added the Triaged this issue has been triaged label May 22, 2024
@Oleksii-Fadieiev-PLV
Copy link

Have the same issue, randomly occurs. My env: Ubuntu 22.04.5, Linux version 6.8.0-48-generic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triaged this issue has been triaged
Projects
None yet
Development

No branches or pull requests

4 participants