让我们说明 sqlcxt() 可能导致分段错误的条件,我在 unix 上工作,使用 ProC 连接到 Oracle 数据库的数据库。
我的程序崩溃了,核心文件显示崩溃是由于sqlcxt()
函数
A loadobject was found with an unexpected checksum value.
See `help core mismatch' for details, and run `proc -map'
to see what checksum values were expected and found.
...
dbx: warning: Some symbolic information might be incorrect.
...
t@null (l@1) program terminated by signal SEGV
(no mapping at the fault address)0xffffffffffffffff:
<bad address 0xffffffffffffffff>
Current function is dbMatchConsortium
442 **sqlcxt((void **)0, &sqlctx, &sqlstm, &sqlfpn);**