Home » Developer & Programmer » Precompilers, OCI & OCCI » Segmentation fault during sqlcxt call in DB Connect (HP UX, Oracle 10g)
Segmentation fault during sqlcxt call in DB Connect [message #619596] Wed, 23 July 2014 12:41 Go to next message
Messages: 1
Registered: July 2014
Location: India
Junior Member
We are on HP UX 11 using Oracle 10g.

The DBConnect method which ses EXEC SQL CONNECT statement to connect to a remote database. Pro*C generates relevant c code. During running the executable, program crashes during database connect as below

Program terminated with signal 11, Segmentation fault.

#0 0xc0197ce0 in <unknown_procedure> + 0x608 () from /usr/lib/libc.2
(gdb) bt
#0 0xc0197ce0 in <unknown_procedure> + 0x608 () from /usr/lib/libc.2
#1 0xc0197be0 in <unknown_procedure> + 0x508 () from /usr/lib/libc.2
#2 0xc01957a4 in <unknown_procedure> + 0x66c () from /usr/lib/libc.2
#3 0xc019ae7c in malloc+0x18c () from /usr/lib/libc.2
#4 0xc93389bc in sqlalc+0x54 () from /software/oracle/cli-
#5 0xc9350e1c in sqrini+0x18 () from /software/oracle/cli-
#6 0xc93511a0 in sqllkc+0x90 () from /software/oracle/cli-
#7 0xc933fa00 in sqgrct+0x34 () from /software/oracle/cli-
#8 0xc9325a80 in sqlcmex+0x3e0 () from /software/oracle/cli-
#9 0xc9326084 in sqlcxt+0x78 () from /software/oracle/cli-
#10 0x31fc in myDBConnect () at ../DBLogger.C:333
#11 0x2f9c in main () at ../DBLoggerClient.C:25

Any help is appreciated.
Re: Segmentation fault during sqlcxt call in DB Connect [message #619602 is a reply to message #619596] Wed, 23 July 2014 12:52 Go to previous message
Michel Cadot
Messages: 65255
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Unfortunately no one here knows Oracle code, you have to raise A SR or search on Metalink/MOS if this is a known bug.
But first check the variable you passed on your statement are correctly defined, allocated and ends with a '\0' and if you use a VARCHAR type, the length is correctly set.

Previous Topic: What's the difference bwtween createConnectionPool and createStatelessConnectionPool in OCCI
Next Topic: Pro*C migration from Solaris to RHEL
Goto Forum:

Current Time: Fri Dec 15 12:11:19 CST 2017

Total time taken to generate the page: 0.08499 seconds