Last updated: 2019-11-28 10:00:04 +0100
Date: 2019-09-12 12:34:09 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36
Thread 1 (Thread 0x7f189e1e6700 (LWP 329)):
Date: 2019-09-12 12:36:42 +0200
(By mistake I saved this ticket before completing it)
The previous comment shows the backtrace taken from a core dump of a production server. Because it is a production server, there is no debug info. But hopefully the trace should help identifying the culprit.
Date: 2019-09-12 14:09:55 +0200
With a bit of difficulty, I reproduced the issue with a debug compilation.
0 0x00007f3536c8fa6e in GDKrealloc (s=0x7f352c35aad0, size=9216) at gdk_utils.c:1844
The failing realloc happens in stack_set().
(gdb) p *(struct sql_var *)s
(gdb) p size
Date: 2019-09-12 15:10:30 +0200
Any chance you can share the way how to reproduce this?
Also, what are the values of the variables in stack frame 1?
Perhaps do "bt full".
Date: 2019-09-12 17:24:08 +0200
In short, for both questions: not soon.
It is very hard to reproduce in an isolated example, for now. I could make it but it will require some digging.
Also, because it was on a production server, I had to rollback to Aug2018, so I can't inspect it anymore. To reproduce the error I will have to reproduce the same deployment with the same data in a sandbox. I hope to have time in the coming days.
Date: 2019-09-13 10:42:02 +0200
Sjoerd, I reproduced the error, here is a "bt full", I don't know why it is slightly different. The original one failed with SIGABRT (also in debug mode), this one fails with SIGSEGV on memset (exact same code, just compiled on a different machine). Still, it is clearly the same bug:
Thread 39 "mserver5" received signal SIGSEGV, Segmentation fault.
(gdb) p *sql
Date: 2019-09-16 17:34:04 +0200
Created attachment 633
Date: 2019-09-16 17:35:51 +0200
Added script to reproduce the crash.
Date: 2019-09-16 18:47:25 +0200
For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=b87bd0e2f8f8
Date: 2019-09-16 19:59:42 +0200
For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=302e9c2c813d
The text was updated successfully, but these errors were encountered: