Actions
Bug #1437
open
MJ
Generic error message when operating on a non-existant session referenced in .lttngrc
Bug #1437:
Generic error message when operating on a non-existant session referenced in .lttngrc
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
03/06/2026
Due date:
% Done:
0%
Estimated time:
Description
If you have a '.lttngrc' file in your home directory which references a non-existing session, for example:
session=my-totally-non-existing-session
When running commands you will get a very generic and not very helpful error message, for example:
[mjeanson@mj-fedora-rawhide ~]$ lttng start Error: Failed to format string: string pointer is null [mjeanson@mj-fedora-rawhide ~]$ lttng stop Error: Failed to format string: string pointer is null
By comparision, trying to start a non-existing session without a .lttngrc give a more helpful error message:
[mjeanson@mj-fedora-rawhide ~]$ lttng start PWARN - 11:18:35.707322797 [7838/7838]: Failed to open configuration file '/home/mjeanson/.lttngrc': No such file or directory (in open_config() at conf.cpp:57) Error: Can't find valid lttng config /home/mjeanson/.lttngrc Did you create a session? (lttng create <my_session>)
No data to display
Actions