[MDEV-9127] Crash reporter often fails to show the query that caused the crash Created: 2015-11-12 Updated: 2016-07-23 Resolved: 2016-07-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 10.1 |
| Fix Version/s: | 10.1.16, 10.0.27 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
For example, see
The first example has:
The second one has:
Note that the second one is just an assertion failure. Stack or THD structure |
| Comments |
| Comment by Sergei Petrunia [ 2015-11-12 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
Interesting.. I rolled back the tree to revision f9448bcb2153aac614ecb260a4dd7f27b04f17a2 , running testcase from Debug build crashes like this:
That is, the crashing query is visible. | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2015-11-12 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
Same on release build:
| |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2015-11-25 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
A new example: | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2015-11-25 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
For some reason, people dislike making core dumps in production (is it because mysqld process usually allocates a lot of memory and writing core dump will take a lot of time?). Then, I've had an idea about attaching gdb as soon as we caught the SIGSEGV. I am not the first, see: https://github.com/pozdnychev/sigattach/blob/master/sigattach.c . Didn't try this, yet. | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2015-12-03 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
About debug info not being available for some packages: see The issue with debug info is, however, orthogonal to the problem of why we keep getting Query (0x...): is an invalid pointer so often. | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicențiu Ciorbaru [ 2016-05-30 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
Hi Sergei, Can you review a patch for this problem? The fix is targeted for 10.0. But I think it should work for any version as we're not introducing anything that is "unstable". http://lists.askmonty.org/pipermail/commits/2016-May/009405.html Thanks! CC: psergey | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicențiu Ciorbaru [ 2016-07-12 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
Fixed with: | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-07-22 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
I don't see any improvement, we are still getting the same "invalid pointer" in reports from the real-life world:
| |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicențiu Ciorbaru [ 2016-07-23 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
Hi elenst, Can you paste the full crash message? The added string printing is at the end. No change in behaviour is done at the Query (address): <string>. |