[Info-ingres] DBD IngresII.pm weirdness
Martin Bowes
martin.bowes at ndph.ox.ac.uk
Thu Jan 9 15:06:25 UTC 2020
Hi All,
I cannot for the life of me work this out...
I have a Perl program which did:
1. Use DBI to connect to an Ingres database. Process some stuff and then disconnect.
2. Use dbmopen () to open a UNIX DBM file.
3. Use DBI to connect to another Ingres database.
This was working perfectly fine.
We upgraded to Ingres11.1. Recompiled the DBD/IngresII.pm. And on the basis of advice in the upgrade notes we altered the Makefile to have the line:
OTHERLDFLAGS = -L"/dbsystem/II/ingres/lib" -lingres -lrt -lstdc++
I've highlighted the bit we added.
Now the Perl program has a segmentation fault. It occurs at step 3 when it attempts to connect. Tracing shows that this at line 103 of the DBD/IngresII.pm where it executes:
# Connect to the database..
DBD::IngresII::db::_login($this, $dbname, $user, $auth)
or return;
Now here's the weird part...
If I move the dbmopen command to be the first of these three steps then all is OK and the program works correctly.
Does anyone have any idea what the hell is happening?
Marty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.planetingres.org/pipermail/info-ingres/attachments/20200109/7f82bf89/attachment.html>
More information about the Info-ingres
mailing list