LP #1612650: audit_log plugin contention on libc TZ conversion

Description

**Reported in Launchpad by Laurynas Biveinis last update 12-08-2016 14:25:43

PMP on a server with audit_log enabled shows the following aggregated stacktrace:

113 _lll_lock_wait_private(libc.so.6),_tz_convert(libc.so.6),audit_log_general_record(audit_log.so),audit_log_notify(audit_log.so),general_class_handler,mysql_audit_notify,dispatch_command,do_handle_one_connection,handle_one_connection,pfs_spawn_thread,start_thread(libpthread.so.0),clone(libc.so.6)

This is caused by UTC timestamp printing in make_timestamp function, the sequence of libc calls time(NULL) -> gmtime_r -> strftime.

Environment

None

Smart Checklist

Activity

Show:

Julia Vural March 4, 2025 at 9:02 PM

It appears that this issue is no longer being worked on, so we are closing it for housekeeping purposes. If you believe the issue still exists, please open a new ticket after confirming it's present in the latest release.

lpjirasync January 23, 2018 at 4:07 PM

**Comment from Launchpad by: Sergei Glushchenko on: 12-08-2016 14:25:42

Related glibc bug report:
https://sourceware.org/bugzilla/show_bug.cgi?id=16145

Won't Do

Details

Assignee

Reporter

Priority

Smart Checklist

Created January 23, 2018 at 4:07 PM
Updated March 4, 2025 at 9:02 PM
Resolved March 4, 2025 at 9:02 PM