Mailing List Archive

Custom tests fail with SIGSEGV on Oracle DB
Hi. This isn't probably the best place to write the issue about (especially when
it doesn't concern dbmail code but is Oracle or even system related) still maybe
someone will give a hint.

So I have a custom auth module (user credentials are stored in a separated db)
and my tests for auth_validate method fail as Oracle client library throws a
SIGSEGV (yep, both module and tests are custom):

> #0 0x000000315f6ebdeb in nlad_destroy_node () from
> /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1
> #1 0x000000315f6ebe0a in nlad_destroy_node () from
> /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1
> #2 0x000000315f6ebe0a in nlad_destroy_node () from
> /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1
> #3 0x000000315f6eb804 in nladtrm () from
> /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1
> #4 0x000000315f5a4664 in nsopen_cleanup () from
> /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1
> #5 0x000000315f5a18cb in nsclose () from
> /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1
> #6 0x000000315f5fcac8 in nioqds () from
> /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1
> #7 0x000000315f46e0ab in upidhs () from
> /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1
> #8 0x000000315f493334 in kpudtch () from
> /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1
> #9 0x000000315f47a81b in OCIServerDetach () from
> /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1
> #10 0x00007ffff6287624 in OracleConnection_free (C=0x7ffff4062c30) at
> src/db/oracle/OracleConnection.c:184
> #11 0x00007ffff62820c6 in Connection_free (C=0x7fffffffdc48) at
> src/db/Connection.c:155
> #12 0x00007ffff6280d3e in drainPool (P=0x7ffff405f3e0) at
> src/db/ConnectionPool.c:76
> #13 ConnectionPool_stop (P=0x7ffff405f3e0) at
> src/db/ConnectionPool.c:298
> #14 0x00007ffff7b99bef in db_disconnect () at dm_db.c:240
> #15 0x00000000004018e9 in teardown () at check_dbmail_authporta.c:30
> #16 0x00007ffff5e32ab8 in ?? () from /usr/lib64/libcheck.so.0
> #17 0x00007ffff5e33817 in srunner_run () from /usr/lib64/libcheck.so.0
> #18 0x000000000040177b in main () at check_dbmail_authporta.c:172

The issue isn't reproducible on pure libzdb calls or with 1-3 connections
available in the ConnectionPool. The issue isn't reproducible if tests are
executed with root privileges (basically I tried to reproduce this segfault
running tests from different users, only few of them were troublemakers).

Maybe someone experienced something similar and could give a hint?

--
Best regards,
Pavlo Lavrenenko,
PortaOne, Inc., Junior Software Developer
Tel: +1-866-SIP VOIP (+1 866 747 8647) ext. 7624

PortaOne - VoIP Solutions Company
Visit our Website: http://www.portaone.com
_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev