X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 04AA9D1C4D4 for ; Fri, 21 Nov 2003 13:55:54 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 72905-10 for ; Fri, 21 Nov 2003 09:55:26 -0400 (AST) Received: from outland.mohawksoft.com (unknown [64.46.156.80]) by svr1.postgresql.org (Postfix) with ESMTP id 4F236D1B520 for ; Fri, 21 Nov 2003 09:55:22 -0400 (AST) Received: (from mohawk@localhost) by outland.mohawksoft.com (8.11.6/8.9.3) id hALDvqt04412; Fri, 21 Nov 2003 08:57:52 -0500 X-Authentication-Warning: outland.mohawksoft.com: mohawk set sender to markw@mohawksoft.com using -f Received: from 24.60.194.163 (SquirrelMail authenticated user markw) by mail.mohawksoft.com with HTTP; Fri, 21 Nov 2003 08:57:52 -0500 (EST) Message-ID: <39049.24.60.194.163.1069423072.squirrel@mail.mohawksoft.com> Date: Fri, 21 Nov 2003 08:57:52 -0500 (EST) Subject: Re: stable driver for multithreaded environment (IIS 5.X) From: To: In-Reply-To: References: X-Priority: 3 Importance: Normal Cc: X-Mailer: SquirrelMail (version 1.2.10) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/102 X-Sequence-Number: 3504 While I am not an ODBC developer, my first inclanation would be to examine your code for areas where you may be using the same connection resources across multiple threads. > hello, > > i've been making load-tests with Microsoft IIS 5.0 on Windows 2000, > accessing postgresql via the Microsoft "OLEDB over ODBC" Driver using > Postgres ODBC 7.03.0200. > MDAC Version is 2.7 SP1 refresh. > This version seems to have stability problems in a multithreading > environment, same problems occur using version 7.03.0100: > > 1. the first bytes of column-data are corrupted under heavy load on the > webserver machine > 2. after some minutes of testing, the webserver starts blocking threads > because of unhandled MDAC errors. > Here is a stack-dump of one of the blocked threads: > > Warning: This thread is blocked by a Message Box > Message Box Text: Runtime Error! > > Program: C:\WINNT\system32\dllhost.exe > > R6025 > > - pure virtual function call > > > > Thread Type: MDAC Error being handled. Possible ASP page > Executing Page: R:\INETPUB\XXXX\SHOP\FOLDER.ASP > > # ChildEBP RetAddr > 00 0202d99c 77e234d6 USER32!NtUserWaitMessage+0xb > 01 0202d9d0 77e33f21 USER32!DialogBox2+0x216 > 02 0202d9f4 77e23fdd USER32!InternalDialogBox+0xd1 > 03 0202dcac 77e24379 USER32!SoftModalMessageBox+0x752 > 04 0202ddf4 77e23871 USER32!MessageBoxWorker+0x247 > 05 0202de4c 77e24104 USER32!MessageBoxExW+0x77 > 06 0202de7c 77e232a2 USER32!MessageBoxExA+0xa0 > 07 0202de9c 7800bec3 USER32!MessageBoxA+0x49 > 08 0202debc 78007e22 MSVCRT!__crtMessageBoxA+0x81 > 09 0202e09c 78007f87 MSVCRT!_NMSG_WRITE+0x11f > 0a 0202e0a4 7800bc7a MSVCRT!_amsg_exit+0x25 > 0b 0202e0ac 1f33f360 MSVCRT!_purecall+0x7 > 0c 0202e0b4 1f334aaf msadce!CSingleResult::~CSingleResult+0x27 > 0d 0202e0bc 1f35244b msadce!CSingleResult::`scalar deleting > destructor'+0x8 0e 0202e0e8 1f352518 > msadce!CMultipleResults::mrInitFetch+0xb1 > 0f 0202e11c 1f43fa41 msadce!CMultipleResults::GetResult+0xbd > 10 0202e15c 1f43f72c msado15!CConnection::Execute+0x13f > 11 0202e318 1f43f5e6 msado15!_ExecuteAsync+0x16e > 12 0202e328 1f43f4f9 msado15!ExecuteAsync+0x1f > 13 0202e3f0 1f43ef4d msado15!CQuery::Execute+0x9fe > 14 0202e498 1f43a33c msado15!CCommand::_Execute+0x147 > 15 0202e4d8 1f438174 msado15!CXLockContext::~CXLockContext+0x14 > 16 0202e638 1f4448f7 msado15!CRecordset::Open+0x571 > 17 0202e69c 779ffe61 msado15!CRecordset::put_CursorLocation+0x93 > 18 0a96c800 00650073 OLEAUT32!APP_DATA::FreeCachedMem+0x85 > WARNING: Frame IP not in any known module. Following frames may be > wrong. 19 000008ec 00000000 0x650073 > > > As with all multithreading issues, the server runs fine when not under > stress. > > Is there a stable version of this driver available (maybe an older > version) ? > Can anybody recommend a commercial driver version ? > > thank you, > Markus. > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend