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

ASAN: failed to fork and external symbolizer #1769

Open
k-morozov opened this issue Jun 30, 2024 · 0 comments
Open

ASAN: failed to fork and external symbolizer #1769

k-morozov opened this issue Jun 30, 2024 · 0 comments

Comments

@k-morozov
Copy link

I build my project woth meson:

meson setup --native-file ${{env.BuidlDir}}/conan_meson_native.ini ${{env.BuidlDir}} . --buildtype debug -Db_sanitize=thread -Db_lundef=false

I have this error after update ubuntu to 24. Firstly it seems to #1248, but I think it is another problem.

$ echo $ASAN_OPTIONS
symbolize=1
$ /usr/bin/llvm-symbolizer --version
llvm-symbolizer
Ubuntu LLVM version 18.1.8
  Optimized build.

$ ls -l /usr/bin/ | grep llvm-symbolizer
lrwxrwxrwx 1 root root          34 июн 30 13:04 llvm-symbolizer -> ../lib/llvm-18/bin/llvm-symbolizer
lrwxrwxrwx 1 root root          34 апр  7 15:23 llvm-symbolizer-15 -> ../lib/llvm-15/bin/llvm-symbolizer
lrwxrwxrwx 1 root root          34 апр 14 11:47 llvm-symbolizer-16 -> ../lib/llvm-16/bin/llvm-symbolizer
lrwxrwxrwx 1 root root          34 июн 16 00:38 llvm-symbolizer-18 -> ../lib/llvm-18/bin/llvm-symbolizer

$ ./example_worload_pool
AddressSanitizer: Out of memory. The process has exhausted 65536MB for size class 81920.
=================================================================
==16462==ERROR: AddressSanitizer: out of memory: allocator is trying to allocate 0x10000 bytes
==16462==WARNING: failed to fork (errno 12)
==16462==WARNING: failed to fork (errno 12)
==16462==WARNING: failed to fork (errno 12)
==16462==WARNING: failed to fork (errno 12)
==16462==WARNING: failed to fork (errno 12)
==16462==WARNING: Failed to use and restart external symbolizer!
    #0 0x5dd7c825aa01  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/example_worload_pool+0x107a01) (BuildId: b02f0c3bc6ed9aa383d12c9d145618b55de9545f)
    #1 0x7e259a341d13  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/../../../src/go/libgo.so+0x3d13) (BuildId: a80226dbba84627a49575ba55f93321e422c2f42)
    #2 0x7e259a341835  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/../../../src/go/libgo.so+0x3835) (BuildId: a80226dbba84627a49575ba55f93321e422c2f42)
    #3 0x7e259a341aee  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/../../../src/go/libgo.so+0x3aee) (BuildId: a80226dbba84627a49575ba55f93321e422c2f42)
    #4 0x5dd7c825d57a  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/example_worload_pool+0x10a57a) (BuildId: b02f0c3bc6ed9aa383d12c9d145618b55de9545f)
    #5 0x5dd7c825d308  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/example_worload_pool+0x10a308) (BuildId: b02f0c3bc6ed9aa383d12c9d145618b55de9545f)
    #6 0x7e259a318535  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/../../../src/executor/libexecutor.so+0x35535) (BuildId: d9718dd0acf1745f0e6d3a598d9833c159c1e771)
    #7 0x7e2599f1177c  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/../../../src/fiber/../coro/libcoro.so+0x577c) (BuildId: 12cb93019b897c1b83bc3a71b03dcd9db168e6ee)
    #8 0x7e259a2829a7  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/../../../src/go/../context/libcontext.so+0x39a7) (BuildId: 35efeb3f33757600e85a781a4338f3ce273e9014)
    #9 0x7e259a2834e0  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/../../../src/go/../context/libcontext.so+0x44e0) (BuildId: 35efeb3f33757600e85a781a4338f3ce273e9014)

==16462==HINT: if you don't care about these errors you may set allocator_may_return_null=1
SUMMARY: AddressSanitizer: out-of-memory (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/example_worload_pool+0x107a01) (BuildId: b02f0c3bc6ed9aa383d12c9d145618b55de9545f) 
Thread T5 created by T0 here:
    #0 0x5dd7c8201c35  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/example_worload_pool+0xaec35) (BuildId: b02f0c3bc6ed9aa383d12c9d145618b55de9545f)
    #1 0x7e259a0eac88  (/lib/x86_64-linux-gnu/libstdc++.so.6+0xeac88) (BuildId: 40b9b0d17fdeebfb57331304da2b7f85e1396ef2)
    #2 0x7e259a30fa96  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/../../../src/executor/libexecutor.so+0x2ca96) (BuildId: d9718dd0acf1745f0e6d3a598d9833c159c1e771)
    #3 0x7e259a30b422  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/../../../src/executor/libexecutor.so+0x28422) (BuildId: d9718dd0acf1745f0e6d3a598d9833c159c1e771)
    #4 0x5dd7c825ce73  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/example_worload_pool+0x109e73) (BuildId: b02f0c3bc6ed9aa383d12c9d145618b55de9545f)
    #5 0x7e2599c2a1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 08134323d00289185684a4cd177d202f39c2a5f3)
    #6 0x7e2599c2a28a  (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 08134323d00289185684a4cd177d202f39c2a5f3)
    #7 0x5dd7c8181474  (/home/konstantin/dev/repo/go-runtime/buildDirAsan/example/workload/pool/example_worload_pool+0x2e474) (BuildId: b02f0c3bc6ed9aa383d12c9d145618b55de9545f)

==16462==ABORTING
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