RE: DBD::Pg - $dbh-quote() causes core dump

2004-02-17 Thread Rafael Kitover
Hi Ian,

There was some memory allocation related funkiness in DBD::Pg that the attached
patch fixes. You can apply it to both 1.31 and 1.32_1.

Bug posted on CPAN:
http://rt.cpan.org/NoAuth/Bug.html?id=5357 

-- 
Rafael

-Original Message-
From: Ian Sealy
Sent: Monday, February 16, 2004 11:09 AM
To: Cygwinatcygwin.com
Subject: Re: DBD::Pg - $dbh-quote() causes core dump

Dear all,

 Is anyone using the DBD::Pg Perl module under Cygwin? I'm trying to use
 it on Windows XP with Perl 5.8.2-1 and DBI 1.40. The Cygwin DLL version
 is 1.5.7.

 The module seems to build OK, but lots of the tests fail. The most
 serious (from my point of view, because I tried to use the module
 anyway) is that $dbh-quote() causes a core dump:
[SNIP]

 Any idea what's wrong?

I've just realised that I've missed out one bit of, perhaps crucial,
information. I'm building DBD::Pg against PostgreSQL 7.4.1-3.

Any ideas? Thanks in advance.

Cheers,
Ian



DBD-Pg-1.31-cygwin.patch
Description: Binary data
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: *****SPAM***** RE: DBD::Pg - $dbh-quote() causes core dump

2004-02-17 Thread Ian Sealy
Dear Rafael,

 There was some memory allocation related funkiness in DBD::Pg that the
 attached patch fixes. You can apply it to both 1.31 and 1.32_1.

 Bug posted on CPAN:
 http://rt.cpan.org/NoAuth/Bug.html?id=5357

All the tests now pass and everything works perfectly. Thanks very much
for your help. Much appreciated.

Cheers,
Ian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [Dbdpg-general] RE: DBD::Pg - $dbh-quote() causes core dump

2004-02-17 Thread Rudy Lippan
On Tue, 17 Feb 2004, Rafael Kitover wrote:

 Date: Tue, 17 Feb 2004 02:51:42 -0800

 There was some memory allocation related funkiness in DBD::Pg that the attached
 patch fixes. You can apply it to both 1.31 and 1.32_1.
 

Before I apply the path, how needed is that PQfreemem() instead of free()  
on win systems?  Because earlier versions of pg which are still supported
by DBD::Pg do not have a PQfreemem().

Rudy


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [Dbdpg-general] RE: DBD::Pg - $dbh-quote() causes core dump

2004-02-17 Thread Bruce Momjian
Rudy Lippan wrote:
 On Tue, 17 Feb 2004, Rafael Kitover wrote:
 
  Date: Tue, 17 Feb 2004 02:51:42 -0800
 
  There was some memory allocation related funkiness in DBD::Pg that the attached
  patch fixes. You can apply it to both 1.31 and 1.32_1.
  
 
 Before I apply the path, how needed is that PQfreemem() instead of free()  
 on win systems?  Because earlier versions of pg which are still supported
 by DBD::Pg do not have a PQfreemem().

PQfreemem is needed in Win32 because one DLL can't free memory allocated
by another, so you need an entry point in libpq to allow freeing of
memory.

-- 
  Bruce Momjian|  http://candle.pha.pa.us
  [EMAIL PROTECTED]   |  (610) 359-1001
  +  If your life is a hard drive, |  13 Roberts Road
  +  Christ can be your backup.|  Newtown Square, Pennsylvania 19073

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: DBD::Pg - $dbh-quote() causes core dump

2004-02-16 Thread Ian Sealy
Dear all,

 Is anyone using the DBD::Pg Perl module under Cygwin? I'm trying to use
 it on Windows XP with Perl 5.8.2-1 and DBI 1.40. The Cygwin DLL version
 is 1.5.7.

 The module seems to build OK, but lots of the tests fail. The most
 serious (from my point of view, because I tried to use the module
 anyway) is that $dbh-quote() causes a core dump:

 Exception: STATUS_ACCESS_VIOLATION at eip=610AB121
 eax=4C554E27 ebx=4C557573 ecx=BDD4BB01 edx=274C esi=0A2A0930 edi=0A2A3074
 ebp=0022EAF8 esp=0022EAE0 program=D:\cygwin\bin\perl.exe
 cs=001B ds=0023 es=0023 fs=0038 gs= ss=0023
 Stack trace:
 Frame Function  Args
 0022EAF8  610AB121  (, 0A2EA954, 0022EB18, 6109E779)
 0022EB28  61054C25  (0A2A0930, 0A2EA954, 0003, 0002)
 0022EB58  61086391  (0A040268, 0A28CC50, 0A13CF90, )
 0022ED38  0093E12E  (0A040268, 0A180540, 0A040268, )
 0022EDA8  6EC71086  (0A040268, 0A040268, 0022EDD8, 6EC04998)
 0022EDB8  6EC69529  (0A040268, 61110400, 0022EDD8, 61087CB6)
 0022EDD8  6EC04998  (0A040268, 0001, 0022EED8, 0001)
 0022EF08  6EC04775  (0A040268, 00401220, 0003, 61673F04)
 0022EF40  004011E2  (0003, 61673F04, 0A0400A8, 0022EF98)
 0022EF80  61005DF0  (0022EF98, C0150008, , 536CD652)
 0022FF90  61005EE8  (, , , )
 End of stack trace

 Any idea what's wrong?

I've just realised that I've missed out one bit of, perhaps crucial,
information. I'm building DBD::Pg against PostgreSQL 7.4.1-3.

Any ideas? Thanks in advance.

Cheers,
Ian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



DBD::Pg - $dbh-quote() causes core dump

2004-02-15 Thread Ian Sealy
Hi,

Is anyone using the DBD::Pg Perl module under Cygwin? I'm trying to use
it on Windows XP with Perl 5.8.2-1 and DBI 1.40. The Cygwin DLL version
is 1.5.7.

The module seems to build OK, but lots of the tests fail. The most
serious (from my point of view, because I tried to use the module
anyway) is that $dbh-quote() causes a core dump:

Exception: STATUS_ACCESS_VIOLATION at eip=610AB121
eax=4C554E27 ebx=4C557573 ecx=BDD4BB01 edx=274C esi=0A2A0930 edi=0A2A3074
ebp=0022EAF8 esp=0022EAE0 program=D:\cygwin\bin\perl.exe
cs=001B ds=0023 es=0023 fs=0038 gs= ss=0023
Stack trace:
Frame Function  Args
0022EAF8  610AB121  (, 0A2EA954, 0022EB18, 6109E779)
0022EB28  61054C25  (0A2A0930, 0A2EA954, 0003, 0002)
0022EB58  61086391  (0A040268, 0A28CC50, 0A13CF90, )
0022ED38  0093E12E  (0A040268, 0A180540, 0A040268, )
0022EDA8  6EC71086  (0A040268, 0A040268, 0022EDD8, 6EC04998)
0022EDB8  6EC69529  (0A040268, 61110400, 0022EDD8, 61087CB6)
0022EDD8  6EC04998  (0A040268, 0001, 0022EED8, 0001)
0022EF08  6EC04775  (0A040268, 00401220, 0003, 61673F04)
0022EF40  004011E2  (0003, 61673F04, 0A0400A8, 0022EF98)
0022EF80  61005DF0  (0022EF98, C0150008, , 536CD652)
0022FF90  61005EE8  (, , , )
End of stack trace

Any idea what's wrong?

Cheers,
Ian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/