pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
windows AppVerifier reports memory leak after strdup (psqlodbc35w.dll ver 13.00)
3+ messages / 2 participants
[nested] [flat]

* windows AppVerifier reports memory leak after strdup (psqlodbc35w.dll ver 13.00)
@ 2020-12-18 19:53  Першин Юрий Петрович <pershin@prosoftsystems.ru>
  0 siblings, 1 reply; 3+ messages in thread

From: Першин Юрий Петрович @ 2020-12-18 19:53 UTC (permalink / raw)
  To: pgsql-odbc

H!

=======================================
VERIFIER STOP 00000900: pid 0x21C4: A heap allocation was leaked.

                D2A7EFF0 : Address of the leaked allocation. Run !heap -p -a <address> to get additional information about the allocation.
                FE6C76DC : Address to the allocation stack trace. Run dps <address> to view the allocation stack.
                D2DB2FDA : Address of the owner dll name. Run du <address> to read the dll name.
                50BE0000 : Base of the owner dll. Run .reload <dll_name> = <address> to reload the owner dll. Use 'lm' to get more information about the loaded and unloaded modules.


=======================================
This verifier stop is continuable.
After debugging it use `go' to continue.

=======================================

(21c4.1d24): Break instruction exception - code 80000003 (first chance)
eax=eee04fc0 ebx=00000000 ecx=000001a1 edx=0b66e9e1 esi=56b62dc0 edi=d2a7eff0
eip=57783ae8 esp=0b66ebcc ebp=0b66ede0 iopl=0         nv up ei pl nz na po nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00200202
vrfcore!VerifierStopMessageEx+0x5b8:
57783ae8 cc              int     3
0:013> !heap -p -a D2A7EFF0
    address d2a7eff0 found in
    _DPH_HEAP_ROOT @ fe2a1000
    in busy allocation (  DPH_HEAP_BLOCK:         UserAddr         UserSize -         VirtAddr         VirtSize)
                                ed190618:         d2a7eff0                b -         d2a7e000             2000
*** WARNING: Unable to verify checksum for C:\Windows\assembly\NativeImages_v4.0.30319_32\System\e9647e8e96a98be0146911f80f7a4c22\System.ni.dll
          ? System_ni+896174
    576bab70 verifier!AVrfDebugPageHeapAllocate+0x00000240
    77aa909b ntdll!RtlDebugAllocateHeap+0x00000039
    779fbbad ntdll!RtlpAllocateHeap+0x000000ed
    779fb0cf ntdll!RtlpAllocateHeapInternal+0x0000022f
    779fae8e ntdll!RtlAllocateHeap+0x0000003e
    5778aa2f vrfcore!VfCoreRtlAllocateHeap+0x0000001f
    56b5256c vfbasics!AVrfpRtlAllocateHeap+0x000000dc
    7558a9f6 ucrtbase!_malloc_base+0x00000026
    755a9235 ucrtbase!_mbsdup+0x00000025
    56b53ec9 vfbasics!AVrfp_ucrt__strdup+0x00000039
*** WARNING: Unable to verify checksum for C:\Program Files (x86)\psqlODBC\1300\bin\psqlodbc35w.dll
    50be3299 psqlodbc35w!CI_read_fields_from_pgres+0x000001f9 [c:\mingw\git\psqlodbc-13.00.0000\columninfo.c @ 108]
    50c36aea psqlodbc35w!ParseAndDescribeWithLibpq+0x0000055a [c:\mingw\git\psqlodbc-13.00.0000\statement.c @ 2990]
    50bedaba psqlodbc35w!prepareParameters+0x0000011a [c:\mingw\git\psqlodbc-13.00.0000\convert.c @ 2899]
    50c256bf psqlodbc35w!SC_describe_ok+0x0000011f [c:\mingw\git\psqlodbc-13.00.0000\results.c @ 95]
    50c25a36 psqlodbc35w!PGAPI_NumResultCols+0x00000146 [c:\mingw\git\psqlodbc-13.00.0000\results.c @ 188]
    6f794ba8 ODBC32!SQLNumResultCols+0x00000198
    500acb87 msdasql!CColInfo::ComputeColInfo+0x00000057
    500ae3b6 msdasql!CImpIColumnsInfo::ComputeColInfo+0x00000246
    500add43 msdasql!CImpIColumnsInfo::GetColumnInfo+0x00000113
    5019d21f msadce!updCreateBaseTable+0x0000004f
    5019d9d8 msadce!updLoadFromTableDef+0x000000b8
    5019edd0 msadce!updSQLStringProps+0x00000160
    5019f335 msadce!updSQLParseProps+0x00000095
    5019b342 msadce!DBUpdates::duBuildUpdateProperties+0x00000232
    501591e7 msadce!CFetchBindingOLEDB::fbGetUpdateProps+0x00000167
    5018eb08 msadce!CFoxRowset::rsInitFetch+0x00000108
    50171fe1 msadce!CMultipleResults::mrInitFetch+0x00000071
    50171b63 msadce!CMultipleResults::GetResult+0x00000173
    50da77f3 msado15!CConnection::Execute+0x00000223
    50dcc968 msado15!_ExecuteAsync+0x000001eb
    50dc4c0f msado15!ExecuteAsync+0x0000004f
    50dc499f msado15!CQuery::Execute+0x00000f4b

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* RE: windows AppVerifier reports memory leak after strdup (psqlodbc35w.dll ver 13.00)
@ 2020-12-19 00:22  Першин Юрий Петрович <pershin@prosoftsystems.ru>
  parent: Першин Юрий Петрович <pershin@prosoftsystems.ru>
  0 siblings, 0 replies; 3+ messages in thread

From: Першин Юрий Петрович @ 2020-12-19 00:22 UTC (permalink / raw)
  To: pgsql-odbc

Steps to reproduce subj:
1. Add wscript.exe to AppVerifier with Basics.Leak check
2. Create file pg_leak.vbs with the following code (replace YOUR_CONNECTION_STRING with yours):
Set c = CreateObject("ADODB.Connection")
c.Open "YOUR_CONNECTION_STRING"
Set cmd = CreateObject("ADODB.Command")
Set cmd.ActiveConnection = c
cmd.ActiveConnection.CursorLocation = 3 'clUseClient
cmd.CommandText = "SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES"
cmd.CommandType = 1 'adCmdText
Set r = CreateObject("ADODB.Recordset")
r.Open cmd, , 1, 3, 1 'ctKeySet, ltOptimistic, adCmdText
MsgBox r.Fields(0).Value
3. Execute wscript.exe pg_leak.vbs
4. Launch AppVerifier.exe and see if it was happy with last wscript.exe session (was not happy)
5. Comment out line about CursorLocation and repeat steps 3-4. You should see the subj just disappeared.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: odbc psql link ssl cert error
@ 2020-12-30 21:16  Clemens Ladisch <clemens@ladisch.de>
  0 siblings, 0 replies; 3+ messages in thread

From: Clemens Ladisch @ 2020-12-30 21:16 UTC (permalink / raw)
  To: pgsql-odbc@lists.postgresql.org

Michel Cevzar wrote:
> I have defined my ssl cert files as such
> 
> pqopt={sslrootcert=...

Where exactly did you write this setting?

> [08001][unixODBC]libpq connection parameter error:invalid connection option "{sslrootcert"

Apparently, you are not allowed to use {} at that place.


Regards,
Clemens





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-12-30 21:16 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18 19:53 windows AppVerifier reports memory leak after strdup (psqlodbc35w.dll ver 13.00) Першин Юрий Петрович <pershin@prosoftsystems.ru>
2020-12-19 00:22 ` Першин Юрий Петрович <pershin@prosoftsystems.ru>
2020-12-30 21:16 Re: odbc psql link ssl cert error Clemens Ladisch <clemens@ladisch.de>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox