[MXS-312] Include debug symbols in MaxScale builds Created: 2015-08-15  Updated: 2015-10-30  Resolved: 2015-10-30

Status: Closed
Project: MariaDB MaxScale
Component/s: build
Affects Version/s: None
Fix Version/s: 1.3.0

Type: Task Priority: Critical
Reporter: Dipti Joshi (Inactive) Assignee: Timofey Turenko
Resolution: Fixed Votes: 0
Labels: None

Epic Link: MaxScale 1.3

 Description   

MaxScale builds that are on mariadb.com portal should contain debug symbols ( without turning on debug and trace log level) - so that if there is a crash, the coredump will be useful. Also make sure that when such build core dumps it prints file name and line numbers of the function call in stack trace.



 Comments   
Comment by Johan Wikman [ 2015-08-25 ]

There's a bit of confusion here. The builds at mariadb.com should not contain debug symbols, but symbol information.

But the packages at mariadb.com already do that (at least CentOS 6 and CentOS 7). That is, given a stacktrace containing only module + address information, the source file + line can be digged out using the current packages. Instructions for doing this is found here https://github.com/mariadb-corporation/MaxScale/wiki/Debugging and the program script/stacktrace in the MaxScale distribution can do that automatically.

However, it is confusing that the stacktraces pasted to Jira typically (it seems) do not contain sourcecode + line information, but only module + address. Namely, that information is logged explicitly by MaxScale itself, using system functions that should provide the symbolic information.

But there should be packages that have extra checking turned on. That way, if someone is experiencing problems we could instruct them to use such a package instead, in which case problems will hopefully be detected before they manifest themselves as a crash. Timofey is working on that now.

Comment by Dipti Joshi (Inactive) [ 2015-08-25 ]

johan.wikman So there are two requests
(1) Include debug symbols in the packages
(2) Provide line number and source code file in the stacktrace -

  1. (2) is addressed with the information you provided in the wiki page, in addition to which we still need debug symbols in the packages - so that when we get coredump from field, the coredump can be loaded in debugger with easy to use information.
Comment by Dipti Joshi (Inactive) [ 2015-09-12 ]

johan.wikman tturenko Any update on this ?

Thanks,
Dipti

Comment by Timofey Turenko [ 2015-10-30 ]

all builds by default contains debug symbols now. closing

Generated at Thu Feb 08 03:58:21 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.