You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Igor Sapego (JIRA)" <ji...@apache.org> on 2018/08/28 09:36:00 UTC
[jira] [Comment Edited] (IGNITE-9367) CPP: ODBC client crashes
after executing query with closed connection
[ https://issues.apache.org/jira/browse/IGNITE-9367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16594758#comment-16594758 ]
Igor Sapego edited comment on IGNITE-9367 at 8/28/18 9:35 AM:
--------------------------------------------------------------
[~guseinov], looks good overall. The only thing I've noticed is that you have not added new test to MSVC solution. Check out the following files:
{{modules/platforms/cpp/odbc-test/project/vs/odbc-test.vcxproj}}
{{modules/platforms/cpp/odbc-test/project/vs/odbc-test.vcxproj.filters}}
was (Author: isapego):
[~guseinov], looks good overall. The only thing I've noticed is that you have not added new test to MSVC solution. Check out the following files:
{{modules/platforms/cpp/odbc-test/project/vs/odbc-test.vcxproj}}
{\{modules/platforms/cpp/odbc-test/project/vs/odbc-test.vcxproj.filters}}
> CPP: ODBC client crashes after executing query with closed connection
> ---------------------------------------------------------------------
>
> Key: IGNITE-9367
> URL: https://issues.apache.org/jira/browse/IGNITE-9367
> Project: Ignite
> Issue Type: Bug
> Components: platforms
> Affects Versions: 2.6
> Environment: Ubuntu 16.04
> Reporter: Roman Guseinov
> Assignee: Roman Guseinov
> Priority: Major
> Labels: cpp
> Attachments: odbc-crash-reproducer.cpp, server-config.xml
>
>
> This scenario should not lead an application crash. It seems we should throw an exception like "Connection is closed" instead.
> Thread dump:
> {code:java}
> Thread #1 [odbc-crash-repr] 18020 [core: 0] (Suspended : Signal : SIGSEGV:Segmentation fault)
> ignite::odbc::Connection::TryRestoreConnection() at connection.cpp:628 0x454264
> ignite::odbc::Connection::EnsureConnected() at connection.cpp:607 0x4549cd
> ignite::odbc::Connection::SyncMessage<ignite::odbc::QueryExecuteRequest, ignite::odbc::QueryExecuteResponse>() at connection.h:168 0x45c705
> ignite::odbc::query::DataQuery::MakeRequestExecute() at data_query.cpp:217 0x45c705
> ignite::odbc::Statement::InternalExecuteSqlQuery() at statement.cpp:629 0x42d32e
> ignite::odbc::Statement::InternalExecuteSqlQuery() at statement.cpp:586 0x42d499
> ignite::odbc::Statement::ExecuteSqlQuery() at statement.cpp:576 0x42d4c1
> ignite::SQLExecDirect() at odbc.cpp:395 0x42614c
> GetDataWithOdbc() at odbc-crash-reproducer.cpp:151 0x40898a
> QueryData() at odbc-crash-reproducer.cpp:172 0x408af2
> <...more frames...>
> {code}
> Reproducer is attached.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)