[MDEV-2582] LP:509521 - external (system) libevent cannot be used Created: 2010-01-19 Updated: 2012-10-04 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Arkadiusz Miśkiewicz (Inactive) | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Build system always uses internal copy of libevent (we all know bundled libs are root of evil Using always external is easy: |
| Comments |
| Comment by Kristian Nielsen [ 2010-01-19 ] |
|
Re: external (system) libevent cannot be used Libevent should work like the other external dependencies (libz, libreadline, libssl) where one can at configure time select between bundled and system version. |
| Comment by Kristian Nielsen [ 2010-01-28 ] |
|
Re: external (system) libevent cannot be used He is using MariaDB with the Pinba plugin: http://pinba.org/ Pinba uses libevent internally. In this case, mysqld hangs during shutdown. Here are relevant parts of a stack Thread 5 (Thread 0x9488ab70 (LWP 18676)): Thread 4 (Thread 0x94089b70 (LWP 18677)): Thread 2 (Thread 0xb559eb70 (LWP 18690)): Thread 1 (Thread 0xb78906c0 (LWP 18653)): Thread 2 is stuck in pinba_engine_shutdown(). This function does: pthread_cancel(collector_thread); The collector_thread is Thread 5 in the stacktrace. It is stuck in epoll_wait Applying the patch above to use system libevent for mysqld solves the problem, When mysqld is linked statically with the bundled libevent, and the pinba |
| Comment by Kristian Nielsen [ 2010-01-28 ] |
|
Re: external (system) libevent cannot be used |
| Comment by Kristian Nielsen [ 2010-01-28 ] |
|
Full gdb stacktrace from the hang. |
| Comment by Kristian Nielsen [ 2010-02-11 ] |
|
Re: external (system) libevent cannot be used |
| Comment by Kristian Nielsen [ 2010-11-21 ] |
|
Re: external (system) libevent cannot be used |
| Comment by Rasmus Johansson (Inactive) [ 2010-11-22 ] |
|
Launchpad bug id: 509521 |
| Comment by Kristian Nielsen [ 2010-11-22 ] |
|
Re: external (system) libevent cannot be used |