Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DBD-Oracle CPAN distribution.

Report information
The Basics
Id: 83564
Status: open
Priority: 0/
Queue: DBD-Oracle

People
Owner: Nobody in particular
Requestors: smosin [...] mail.ru
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: DBD crashes when trying to use ora_dbh_share
Download (untitled) / with headers
text/plain 552b
use 5.16.2; use strict; use warnings; use threads; use threads::shared; use DBI 1.622; use DBD::Oracle 1.56; our $db_conn_shared : shared = ''; my ($conn, $user, $password) = @ARGV; DBI->connect("DBI:Oracle:$conn", $user, $password, { ora_verbose => 6 , ora_dbh_share => \$db_conn_shared } ); print STDERR ("Passed\n"); If we remvoe line with ora_dbh_share => \$db_conn_shared all is OK. If we trying to connect with ora_dbh_share => \$db_conn_shared we got core dump. I tested this with Activestate Perl 5.16.2 on Windows and Linux.
Download (untitled) / with headers
text/plain 2.1k
On Sat Feb 23 01:33:05 2013, smosin wrote: Show quoted text
> use 5.16.2; use strict; use warnings; > > use threads; > use threads::shared; > use DBI 1.622; > use DBD::Oracle 1.56; > > our $db_conn_shared : shared = ''; > > my ($conn, $user, $password) = @ARGV; > > DBI->connect("DBI:Oracle:$conn", $user, $password, > { ora_verbose => 6 > , ora_dbh_share => \$db_conn_shared > } > ); > > print STDERR ("Passed\n"); > > If we remvoe line with ora_dbh_share => \$db_conn_shared all is OK. > If we trying to connect with ora_dbh_share => \$db_conn_shared we got > core dump. > > I tested this with Activestate Perl 5.16.2 on Windows and Linux.
Thank you for this report. Threads is a tricky issue with DBI and still marked not for production. I've reproduced this problem on linux (see below) but right I cannot look in to it further - sorry. (gdb) run rt83564.pl 'host=xxx;sid=yyy' xxx yyy Starting program: /home/martin/perl5/perlbrew/perls/perl-5.16.2_threaded/bin/perl rt83564.pl 'host=xxx;sid=yyy' xxx yyy [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0xb79f5023 in ora_db_login6 () from /home/martin/perl5/perlbrew/perls/perl-5.16.2_threaded/lib/site_perl/5.16.2/i686-linux-thread-multi/auto/DBD/Oracle/Oracle.so (gdb) bt #0 0xb79f5023 in ora_db_login6 () from /home/martin/perl5/perlbrew/perls/perl-5.16.2_threaded/lib/site_perl/5.16.2/i686-linux-thread-multi/auto/DBD/Oracle/Oracle.so #1 0xb79f06c1 in XS_DBD__Oracle__db__login () from /home/martin/perl5/perlbrew/perls/perl-5.16.2_threaded/lib/site_perl/5.16.2/i686-linux-thread-multi/auto/DBD/Oracle/Oracle.so #2 0x080ec9de in Perl_pp_entersub () #3 0x080e4f48 in Perl_runops_standard () #4 0x08077988 in Perl_call_sv () #5 0xb7a363c1 in XS_DBI_dispatch () from /home/martin/perl5/perlbrew/perls/perl-5.16.2_threaded/lib/site_perl/5.16.2/i686-linux-thread-multi/auto/DBI/DBI.so #6 0x080ec9de in Perl_pp_entersub () #7 0x080e4f48 in Perl_runops_standard () #8 0x0807e360 in perl_run () #9 0x0805ecb7 in main () (gdb) May be this might help someone else diagnose the issue. Martin -- Martin J. Evans Wetherby, UK


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.