[MCOL-1085] Add automatic stack trace to ColumnStore binaries Created: 2017-12-06  Updated: 2018-02-12  Resolved: 2018-01-22

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.13, 1.1.3

Type: New Feature Priority: Major
Reporter: Andrew Hutchings (Inactive) Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Sprint: 2018-01, 2018-02

 Description   

See this pull request as one example of how to do it:

https://github.com/mariadb-corporation/mariadb-columnstore-data-adapters/pull/5/files



 Comments   
Comment by Andrew Hutchings (Inactive) [ 2017-12-31 ]

We also need -fno-omit-frame-pointer

Comment by Andrew Hutchings (Inactive) [ 2018-01-03 ]

Patch for develop-1.0 to be merged up.

It will create trace files automatically when a ColumnStore process crashes and put them in /var/log/mariadb/columnstore/trace. The file will contain the date/time, signal number and the stack at time of crash.

The file names are in "ProcessName.PID.log" format.

For QA: try "kill -11" on a ColumnStore daemon process and look for the new log files.

Comment by Daniel Lee (Inactive) [ 2018-01-22 ]

Build verified: 1.1.3-1 Github source

/root/columnstore/mariadb-columnstore-server
commit e0ae0d2fecf9941887478d9aa669c8b2d1092090
Merge: 21ec501 2490ddf
Author: benthompson15 <ben.thompson@mariadb.com>
Date: Fri Jan 19 12:39:05 2018 -0600

Merge pull request #84 from mariadb-corporation/MCOL-1159

MCOL-1159 Merge mariadb-10.2.12

/root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine
commit c74d5de21d6571c0b0e9a12dacaf77856d332e63
Merge: 201813d 63adbd0
Author: benthompson15 <ben.thompson@mariadb.com>
Date: Mon Jan 22 09:42:34 2018 -0600

Merge pull request #375 from mariadb-corporation/dev-1.1-build-fix

Fix missing compiler flag from 1.0 -> 1.1 merge

[root@localhost trace]# cat PrimProc.9715.log
Date/time: 2018-01-22 19:15:32
Signal: 11

[0x7ff284c63200]
/lib64/libpthread.so.0(+0xf100)[0x7ff27f040100]
/lib64/libpthread.so.0(pthread_cond_wait+0xc5)[0x7ff27f03c6d5]
/usr/local/mariadb/columnstore/lib/libthreadpool.so.1(_ZN10threadpool10ThreadPool4waitEv+0x13f)[0x7ff281110a2f]
[0x7ff284c5426d]
[0x7ff284bfd6f5]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7ff27e061b15]
[0x7ff284c1727d]

Comment by Daniel Lee (Inactive) [ 2018-01-22 ]

1.0.13-1:

/root/columnstore/mariadb-columnstore-server
commit 8877490c9d8ea2155b2788d6afadb50f0dd9c260
Merge: 7ec285d e8ea173
Author: Andrew Hutchings <andrew@linuxjedi.co.uk>
Date: Wed Jan 10 22:28:23 2018 +0000

Merge pull request #83 from mariadb-corporation/MCOL-258

MCOL-258 Add using statements to eliminate warnings

/root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine
commit cc2bbe88bc525e585cc523d7c680868d395ff328
Merge: 9b35056 403e0ef
Author: Andrew Hutchings <andrew@linuxjedi.co.uk>
Date: Mon Jan 22 16:39:21 2018 +0000

Merge pull request #376 from mariadb-corporation/MCOL-1114

MCOL-1114: Change cmake minimum versions.

Generated at Thu Feb 08 02:26:04 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.