apache / trafficserver

Apache Traffic Server™ is a fast, scalable and extensible HTTP/1.1 and HTTP/2 compliant caching proxy server.
https://trafficserver.apache.org/
Apache License 2.0
1.74k stars 781 forks source link

LSan: Suppress libssl.so leak for verify_global_magick unit test #11443

Closed masaori335 closed 2 weeks ago

masaori335 commented 2 weeks ago

Suppress the leak we're facing on PRB.

117/136 Test #114: verify_global_magick ...................***Failed    0.35 sec
[Jun 12 13:10:18.447] traffic_server NOTE: records parsing completed.
[Jun 12 13:10:18.447] traffic_server NOTE: /tmp/ats-quiche/etc/trafficserver/records.yaml finished loading
[Jun 12 13:10:18.460] traffic_server NOTE: Traffic Server is running unprivileged, not switching to user 'nobody'
NOTE: verifying plugin '/home/jenkins/workspace/Github_Builds/rocky/src/build/plugins/experimental/magick/magick.so'...
NOTE: verifying plugin '/home/jenkins/workspace/Github_Builds/rocky/src/build/plugins/experimental/magick/magick.so' Success

=================================================================
==6867==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x7fbb3b08d9a7 in __interceptor_malloc (/lib64/libasan.so.6+0xb49a7)
    #1 0x7fbb31796dcc  (/opt/h3-tools-boringssl/boringssl/lib64/libssl.so+0x715dcc)

SUMMARY: AddressSanitizer: 8 byte(s) leaked in 1 allocation(s).
masaori335 commented 2 weeks ago
115/136 Test #114: verify_global_magick ...................***Failed    0.37 sec
[Jun 13 01:45:44.985] traffic_server NOTE: records parsing completed.
[Jun 13 01:45:44.985] traffic_server NOTE: /tmp/ats-quiche/etc/trafficserver/records.yaml finished loading
[Jun 13 01:45:44.989] traffic_server NOTE: Traffic Server is running unprivileged, not switching to user 'nobody'
NOTE: verifying plugin '/home/jenkins/workspace/Github_Builds/rocky/src/build/plugins/experimental/magick/magick.so'...
NOTE: verifying plugin '/home/jenkins/workspace/Github_Builds/rocky/src/build/plugins/experimental/magick/magick.so' Success

=================================================================
==6860==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x7fe5b47859a7 in __interceptor_malloc (/lib64/libasan.so.6+0xb49a7)
    #1 0x7fe5aae96dcc  (<unknown module>)

SUMMARY: AddressSanitizer: 8 byte(s) leaked in 1 allocation(s).

With this PR, still a leak is detected from <unknown module> 😞

JosiahWI commented 2 weeks ago

I was unable to reproduce either of the leaks before and after this change on one of the CI docker environments.