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

ERROR: AddressSanitizer: odr-violation; looks to be caused by linking both libqpid-proton-core and libqpid-proton #36

Open
jiridanek opened this issue Sep 13, 2021 · 0 comments

Comments

@jiridanek
Copy link
Member

% /home/jdanek/repos/testing/cli/cli-cpp/cmake-build-debug/target/bin/aac3_sender --broker-url admin:admin@10.0.134.126:5672/test_client_connect_msgsrv_starting --log-msgs dict --count 1 --conn-reconnect True --sasl-mechanisms PLAIN
=================================================================
==218886==ERROR: AddressSanitizer: odr-violation (0x7fe37d904a20):
  [1] size=16 'pn_rwbytes_null' /home/jdanek/repos/qpid/qpid-proton/c/src/core/types.c:25:20
  [2] size=16 'pn_rwbytes_null' /home/jdanek/repos/qpid/qpid-proton/c/src/core/types.c:25:20
These globals were registered at these points:
  [1]:
    #0 0x7fe37e1d4fc8  (/nix/store/w02ya1mb85p45f763fhsgxjbn7cfcsyi-gcc-11.1.0-lib/lib/libasan.so.6+0x39fc8)
    #1 0x7fe37d901322 in _sub_I_00099_1.9559 (/home/jdanek/repos/qpid/qpid-proton/cmake-build-debug/install/lib64/libqpid-proton-core.so.10+0x1d4322)
    #2 0x7fe37eb809ed in call_init (/nix/store/jsp3h3wpzc842j0rz61m5ly71ak6qgdn-glibc-2.32-54/lib/ld-linux-x86-64.so.2+0xf9ed)

  [2]:
    #0 0x7fe37e1d4fc8  (/nix/store/w02ya1mb85p45f763fhsgxjbn7cfcsyi-gcc-11.1.0-lib/lib/libasan.so.6+0x39fc8)
    #1 0x7fe37d472b84 in _sub_I_00099_1.16162 (/home/jdanek/repos/qpid/qpid-proton/cmake-build-debug/install/lib64/libqpid-proton.so.11+0x30db84)
    #2 0x7fe37eb809ed in call_init (/nix/store/jsp3h3wpzc842j0rz61m5ly71ak6qgdn-glibc-2.32-54/lib/ld-linux-x86-64.so.2+0xf9ed)

==218886==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0
SUMMARY: AddressSanitizer: odr-violation: global 'pn_rwbytes_null' at /home/jdanek/repos/qpid/qpid-proton/c/src/core/types.c:25:20
==218886==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