Received: from mercury.noida.hclt.com ([204.160.248.59]) by hub.org (8.9.3/8.9.3) with ESMTP id HAA99479 for ; Mon, 28 Feb 2000 07:47:06 -0500 (EST) (envelope-from sirishk@noida.hclt.com) Received: from sirishk.noida.hclt.com (sirishk [204.160.254.237]) by mercury.noida.hclt.com (8.8.7/8.8.7) with SMTP id SAA30145 for ; Mon, 28 Feb 2000 18:16:47 +0530 Message-ID: <016001bf81e9$55ee31e0$edfea0cc@noida.hclt.com> From: "Sirish Kumar" To: Subject: ecpg runtime problem Date: Mon, 28 Feb 2000 18:12:54 +0530 Organization: HCLT MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Hi, I am using ecpg version 2.4.4. I am checking my code with purify to remove any run time problems. Following simple ecpg code gives core dump (when compiled with purify*). ..... #include void main() { exec sql connect cdata; } ..... The report says IPR: Invalid pointer read: * This is occurring while in: makeEmptyPGconn [libecpg.so.2.6.2] PQsetdbLogin [libecpg.so.2.6.2] main [t4.o] _start [crt1.o] * Reading 4 bytes from 0xef7a2218 between the heap and the stack. **** Purify instrumented a.out (pid 18232) **** COR: Fatal core dump: * This is occurring while in: makeEmptyPGconn [libecpg.so.2.6.2] PQsetdbLogin [libecpg.so.2.6.2] main [t4.o] _start [crt1.o] * Received signal 11 (SIGSEGV - Segmentation Fault) * Faulting address = 0xef7a2218 * Signal mask: (SIGSEGV) * Pending signals: ........ Please help. Thanks in advance. Best Regards Sirish Kumar *purify is a product from Rational Software and checks run-time problems. ---------------------------------------- Best Regards Sirish Kumar HCL Technologies (India) Pvt. Ltd. Ph : +91-11-8-510813/701/702 Ext.1107 Fax : +91-11-8-510713 ----------------------------------------