#548 adodbapi - Subtle crash

closed-fixed
Vernon Cole
adodbapi (2)
5
2011-04-30
2011-04-25
Anonymous
No

There is a subtle crash that can occur related to time.sleep(>10) and adodbapi.connect() calls, the second time will crash,
attached there is the simplest test case to crash it and various comments explaining the crash behavior test enviroement and stacktraces.

i hope will be useful to find the right solution, i've only found a bad workarond, without calling adodbapi.close() the crash doesn't happens.

thank you in advice

Discussion

  • Mark Hammond
    Mark Hammond
    2011-04-26

    • labels: 518338 --> adodbapi
    • assigned_to: nobody --> kf7xm
    • summary: Subtle crash --> adodbapi - Subtle crash
     
  • Mark Hammond
    Mark Hammond
    2011-04-26

    I haven't had a chance to repro this yet as the connection string doesn't work on my dev box.

     

  • Anonymous
    2011-04-26

    The connection string needs sqlserver express installed on the machine, but the same happens also with oracle oledb provider, this are the two providers i've tested on, but could be the crash occurs with any provider

     
  • Vernon Cole
    Vernon Cole
    2011-04-28

    Crash duplicated on Windows Vista 32 bit with SQL Server (local).
    Does NOT crash in IronPython, indicating that this is probably a pywin32 error.
    Investigation continues.
    --
    Vernon

     
  • Vernon Cole
    Vernon Cole
    2011-04-28

    • status: open --> open-accepted
     
  • Vernon Cole
    Vernon Cole
    2011-04-30

    fixed by removing CoUninitialize() and removing reference to Dispatch structure after closing.

     
  • Vernon Cole
    Vernon Cole
    2011-04-30

    • status: open-accepted --> open-fixed
     
  • Vernon Cole
    Vernon Cole
    2011-04-30

    • status: open-fixed --> closed-fixed