Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception crashes Python process #21

Closed
MathMagique opened this issue Nov 29, 2016 · 2 comments
Closed

Unhandled exception crashes Python process #21

MathMagique opened this issue Nov 29, 2016 · 2 comments

Comments

@MathMagique
Copy link
Member

When connections are lost, the Python process terminates with the following error message:

terminate called after throwing an instance of 'cpp_odbc::error'
  what():  ODBC error
state: 40004
native error code: -1
message: [EXASOL][EXASolution driver]Connection lost.
Aborted

It seems that the cpp_odbc::error is not translated to a turbodbc::error that would be known to the Python interpreter.

@MathMagique
Copy link
Member Author

This should no longer be an issue since pybind11 has better exception handling than boost::python, compare http://pybind11.readthedocs.io/en/master/advanced/exceptions.html

@MathMagique
Copy link
Member Author

This is caused by unhandled exceptions in C++ destructors.

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

No branches or pull requests

1 participant