Skip to content

alarm_test is flaky #12245

@dgquintas

Description

@dgquintas

https://kokoro.corp.google.com/job/grpc/job/ubuntu/job/sanitizer/job/grpc_c_tsan/527/

I0821 20:30:27.194039199   11950 alarm_test.c:45]            test_alarm
E0821 20:30:32.241409092   11950 alarm_test.c:38]            assertion failed: ev.type == GRPC_QUEUE_SHUTDOWN



*******************************
Caught signal SIGABRT
==================
WARNING: ThreadSanitizer: signal-unsafe call inside of a signal (pid=11950)
    #0 malloc /llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:595 (alarm_test+0x000000442cc8)
    #1 <null> <null> (ld-linux-x86-64.so.2+0x00000000c87d)
    #2 crash_handler /var/local/git/grpc/test/core/util/test_config.c:245:13 (alarm_test+0x000000895f78)
    #3 __tsan::CallUserSignalHandler(__tsan::ThreadState*, bool, bool, bool, int, my_siginfo_t*, void*) /llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:1951 (alarm_test+0x000000423a46)
    #4 shutdown_and_destroy /var/local/git/grpc/test/core/surface/alarm_test.c:38:178 (alarm_test+0x0000004afc01)
    #5 test_alarm /var/local/git/grpc/test/core/surface/alarm_test.c:91:3 (alarm_test+0x0000004afae3)
    #6 main /var/local/git/grpc/test/core/surface/alarm_test.c:97:3 (alarm_test+0x0000004af5d5)

SUMMARY: ThreadSanitizer: signal-unsafe call inside of a signal (/lib64/ld-linux-x86-64.so.2+0xc87d) 
==================
Command exited with non-zero status 66
real 5.52
user 0.00
sys 0.09

Note that the TSAN stacktrace happens due to the assert firing.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions