Subject: Re: Announce: DBD::Pg 1.30_2 (beta) From: Rudy Lippan <[EMAIL PROTECTED]> Date: Wed, 25 Jun 2003 00:26:08 -0400 (EDT) To: Cosimo Streppone <[EMAIL PROTECTED]>
I can't seem to get get DBD::Pg to die. Do you think you could give me a backtrace from the core file?
Hi Rudy,
I'm not very familiar with those backtraces, but here it is the result:
Core was generated by `/usr/bin/perl t/03bind.t'. Program terminated with signal 11, Segmentation fault. Cannot access memory at address 0x400136c0 #0 0x4207aebf in ?? () (gdb) bt full #0 0x4207aebf in ?? () No symbol table info available. Cannot access memory at address 0xbffff278 (gdb)
I don't know you, but I did't understand more from this, except that I'm getting segfaults.
So I did further investigations. I recompiled my perl 5.6.1 from same clean source package (no rpm), enabling the -DDEBUG switch at config time (I thought it was not enabled in my previous perl version).
Installed DBI 1.35, DBD::Pg 1.30_2 and everything worked! Note that `perl -V' output is the same as before, nothing changes except the compile date. If relevant, `ldd' on the two executables shows no difference.
Everything else is same as before, postgres db version (7.3.3), dbi (1.35), dbd-pg, libs, ... I can reproduce the error simply switching the symlink from `/opt/perl-5.6.1-new' to `/opt/perl-5.6.1', where i have the two installations of perl. At this point, I don't know if more investigation is useful.
Here is the successful report.
---------------------------------------------------------------------------------------- SUCCESSFUL MAKE TEST FOR:
Perl 5.6.1 (recompiled) DBD::Pg 1.30_2 DBI 1.35 Postgresql 7.3.3
The result of the tests is the same, but I get no more the `pq_recvbuf: got EOF on client connection' errors I got before that caused the death of many test scripts.
10:08:42$make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/opt/perl/lib/5.6.1/linux -I/opt/perl/lib/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/00basic...........ok t/01connect.........ok t/01constants.......ok t/01setup...........ok 2/5ERROR: table "test2" does not exist NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'test2_pkey' for table 'test2' t/01setup...........ok 3/5ERROR: table "test3" does not exist NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'test3_pkey' for table 'test3' t/01setup...........ok t/02prepare.........ok t/03bind............ok t/04execute.........ok t/05fetch...........ok 3/10 skipped: need Encode module for unicode tests t/06disconnect......ok t/07reuse...........ok t/08txn.............ok t/09autocommit......ok t/11quoting.........ok 5/9Use of uninitialized value in concatenation (.) or string at t/11quoting.t line 34. t/11quoting.........ok t/12placeholders....ok t/13pgtype..........ok 1/3ERROR: table "tt" does not exist t/13pgtype..........ok t/15funct...........ok t/99cleanup.........ok All tests successful, 3 subtests skipped. Files=17, Tests=201, 4 wallclock secs ( 2.54 cusr + 0.19 csys = 2.73 CPU) [EMAIL PROTECTED]:///opt/download/DBD-Pg-1.30_2 10:08:48$
I have also a (failed) make test report on 5.8.0. I don't know if this can be useful...
-- Cosimo