Skip to content

Fix segfault when passing invalid include path in fbtrace config via fbtracemgr#9091

Open
Noremos wants to merge 1 commit into
FirebirdSQL:masterfrom
Noremos:fbtrace_include_fix
Open

Fix segfault when passing invalid include path in fbtrace config via fbtracemgr#9091
Noremos wants to merge 1 commit into
FirebirdSQL:masterfrom
Noremos:fbtrace_include_fix

Conversation

@Noremos

@Noremos Noremos commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Using the include directive allows you to insert configuration from a separate file. However, passing an invalid path causes the server to crash (for user sessions only). Using recursive include also leads to a crash

Steps to reproduce

  1. create user NT password '123';
  2. Create a file /tmp/trace_include_missing.conf with the following contents:
database
{
	enabled = true
}
include /a/b/c/d
  1. Execute:
    ./fbtracemgr -se <server ip/port>:service_mgr -user NT -password 123 -start -name nytrace -config /tmp/trace_include_missing.conf

After this, a segfault will occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant