Engine crashes when trace session is opened and we try to connect to
non-existent database/alias
------------------------------------------------------------------------------------------------
Key: CORE-4319
URL: http://tracker.firebirdsql.org/browse/CORE-4319
Project: Firebird Core
Issue Type: Bug
Components: TRACEMGR
Reporter: Pavel Zotov
Attachments: gdb-firebird.140119_115916.1.zip
Scenario:
1. Window #1.
Running trace:
/opt/fb30trnk/bin/fbtracemgr -sta -c ztrace.conf -se localhost/3333:service_mgr
Trace session ID 1 started
2. Window #2.
$ /opt/fb30trnk/bin/isql -q
-- now trying to connect to alias that doesn`t present in databases.conf:
SQL> connect 'localhost/3333:nosuchdatabase';
Output in ISQL:
Statement failed, SQLSTATE = 08006
Error reading data from the connection.
Output in trace:
Error reading data from the connection.
After that coredump file is created, stacktrace for it see in attach.
PS-1. Trace config contains the following lines:
$ cat ztrace.conf
database = #
{
enabled = true
log_filename = /opt/fb30cs/ztrace.log
log_sweep = true
log_errors = true
#################### A C H T U N G ##############
time_threshold = 0
connection_id=84
####################################################
log_connections = true
log_transactions = true
#log_statement_prepare = true
#log_statement_start = true
#log_statement_free = true
log_trigger_start = true
log_procedure_start = true
log_statement_finish = true
log_procedure_finish = true
log_trigger_finish = true
print_plan = true
print_perf = true
max_sql_length = 8192
max_log_size = 5000000
}
Please note that line with 'connection_id=84' is erroneously UNcommented.
PS-2. I have several instances of FB on that machine but currently only one is
running:
$ ps aux|grep fir|grep -v grep
firebird 6030 0.0 0.0 28200 940 ? S 11:53 0:00
/opt/fb30trnk/bin/fbguard -pidfile /var/run/fb30trnk/fb30trnk.pid -daemon
-forever
firebird 6237 0.0 0.0 300328 7012 ? Sl 11:59 0:00
/opt/fb30trnk/bin/firebird
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel