Bug#874798: libc6: mktime() does not set errno when it fails

2017-09-09 Thread g1
Package: libc6 Version: 2.24-11+deb9u1 Severity: normal Tags: upstream When mktime() fails to convert a struct tm to a time_t, it returns -1. It should also set errno to EOVERFLOW in order to distinguish the failure from the legitimate case of converting "1 second before the epoch". The

Bug#882586: libc6-dev:amd64: pthread_rwlock_unlock segfaults in statically linked executable

2017-11-24 Thread g1
Package: libc6-dev Version: 2.24-11+deb9u1 Severity: important A minimal program that exercises R/W locks crashes when linked statically: $ cat test-rwlock.c #include int main() { pthread_rwlock_t rw; if (pthread_rwlock_init(, NULL)) return -1; if (pthread_rwlock_wrlock())