Skip to content

Oracle db. init_oracle_cient experienced a segmentation fault (core dummy) error on Debian GNU/Linux 11 (bullseye) #475

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

Closed
sunsn1997 opened this issue Mar 26, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@sunsn1997
Copy link

3.0.0

  1. Is it an error or a hang or a crash?

Python 3.11.11 (main, Jan 14 2025, 02:24:43) [GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.

import oracledb
oracledb.init_oracle_client(lib_dir="/opt/oracle/instantclient_11_2")
Segmentation fault (core dumped)

  1. What error(s) or behavior you are seeing?
  1. Does your application call init_oracle_client()?
  1. Include a runnable Python script that shows the problem.
@sunsn1997 sunsn1997 added the bug Something isn't working label Mar 26, 2025
@cjbj
Copy link
Member

cjbj commented Mar 26, 2025

Probably already fixed in 5999b61. Make sure that your Oracle client libraries are available, and you have set LD_LIBRARY_PATH or used ldconfig per the documentation.

Remember that on Linux you should not pass lib_dir to init_oracle_client() else bad things can happen. You must always set the library search path before the Python process starts.

@anthony-tuininga
Copy link
Member

There are pre-built development wheels available here if you wish to confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants