[MDEV-14229] Stack trace is not resolved for shared objects Created: 2017-10-31 Updated: 2022-09-19 Resolved: 2018-01-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3 |
| Fix Version/s: | 5.5.59, 10.0.34, 10.0.34-galera, 10.1.31, 10.2.13, 10.3.5, 10.4.0, 10.5.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergey Vojtovich | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Sprint: | 10.1.29, 10.1.30, 5.5.59 | ||||||||||||||||||||
| Description |
|
In the following example (which is quite common) only mysqld frames were resolved properly. Frames from shared objects are not resolved. This is because addr2line attempts to resolve shared object frames while it is being called against mysqld binary. To resolve shared object frames addr2line should be called individually for these objects.
|
| Comments |
| Comment by Vicențiu Ciorbaru [ 2018-01-16 ] | |||||||||||||||||||
|
Hi Sergey! Can you please review the patch for this issue? The code is at: The main worry I have is with the LIBDL change in mysys/CMakeLists.txt and if we need any checks for the extra used functions. The rest is tested and produces the following output, with a purposefully introduced NULL pointer dereference:
|