APPCRASH With "Access violation code c0000005" at startup on Win7 64bits

Bug #1059145 reported by vrobin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DreamPie
Fix Released
Undecided
Unassigned

Bug Description

Launching dreampie.exe without parameter doesn't crash and the usual dreampie error box is displayed, but launching dreampie.exe with either a portable python 2.7.3.1 or with a jython 2.5 both generate a windows APPCRASH dialog box complaining about "Exception code" 0xc0000005 in msvcrt.dll.

The problem can not be reproduced easily on the same version of Windows because he same installation works nicely on another Win 7 64bits and on an old windows XP.

After a lot of tries, I finally managed to pin down the problem with windbg:

ModLoad: 00000000`767b0000 00000000`767f5000 C:\Windows\syswow64\WLDAP32.dll
ModLoad: 00000000`72c70000 00000000`72c7b000 C:\Windows\SysWOW64\profapi.dll
(17e8.1870): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
msvcrt!strncmp+0xa2:

The call stack is the following:
0018f498 10064ef6 msvcrt!strncmp+0xa2
WARNING: Stack unwind information not available. Following frames may be wrong.
0018f4b8 10037c0b libxml2!xmlFreeParserInputBuffer+0x146
0018f4d0 10065f38 libxml2!xmlNewInputFromFile+0x3b
00000000 00000000 libxml2!xmlCheckHTTPInput+0x348

It seems that the problem isn't directly related to dreampie but also to the version of libxml2 shipped with dreampie 1.1.1

A possible workaround that permits dreampie to work without a problem is to replace:
<mypath>\DreamPie\gtk-runtime\bin\libxml2.dll
with <mypath>\Portable Python 2.7.3.1\App\Lib\site-packages\gtk-2.0\runtime\bin\libxml2-2.dll

vrobin (robinsp)
description: updated
Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

Thanks for the detailed report!

I now released DreamPie 1.2.1, probably with an updated libxml. Can you test it and say if it was fixed?

Thanks,
Noam

Changed in dreampie:
status: New → Incomplete
Revision history for this message
vrobin (robinsp) wrote : Re: [Bug 1059145] Re: APPCRASH With "Access violation code c0000005" at startup on Win7 64bits

Hi Noam,

I can't be sure as there's always strange behavior with dll and
dependencies, but I tried this new 1.2.1 version on the previously
problematic windows 7 machine and everything went right. So we can
suppose that problem is now solved.

Best regards and thank you for your work on Dreampie,
Regards,
Robin

On Thu, Oct 18, 2012 at 12:35 PM, Noam Yorav-Raphael <email address hidden> wrote:
> Thanks for the detailed report!
>
> I now released DreamPie 1.2.1, probably with an updated libxml. Can you
> test it and say if it was fixed?
>
> Thanks,
> Noam
>
> ** Changed in: dreampie
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1059145
>
> Title:
> APPCRASH With "Access violation code c0000005" at startup on Win7
> 64bits
>
> Status in DreamPie - The Python shell you've always dreamed about!:
> Incomplete
>
> Bug description:
> Launching dreampie.exe without parameter doesn't crash and the usual
> dreampie error box is displayed, but launching dreampie.exe with
> either a portable python 2.7.3.1 or with a jython 2.5 both generate a
> windows APPCRASH dialog box complaining about "Exception code"
> 0xc0000005 in msvcrt.dll.
>
> The problem can not be reproduced easily on the same version of
> Windows because he same installation works nicely on another Win 7
> 64bits and on an old windows XP.
>
> After a lot of tries, I finally managed to pin down the problem with
> windbg:
>
> ModLoad: 00000000`767b0000 00000000`767f5000 C:\Windows\syswow64\WLDAP32.dll
> ModLoad: 00000000`72c70000 00000000`72c7b000 C:\Windows\SysWOW64\profapi.dll
> (17e8.1870): Access violation - code c0000005 (first chance)
> First chance exceptions are reported before any exception handling.
> This exception may be expected and handled.
> msvcrt!strncmp+0xa2:
>
> The call stack is the following:
> 0018f498 10064ef6 msvcrt!strncmp+0xa2
> WARNING: Stack unwind information not available. Following frames may be wrong.
> 0018f4b8 10037c0b libxml2!xmlFreeParserInputBuffer+0x146
> 0018f4d0 10065f38 libxml2!xmlNewInputFromFile+0x3b
> 00000000 00000000 libxml2!xmlCheckHTTPInput+0x348
>
> It seems that the problem isn't directly related to dreampie but also
> to the version of libxml2 shipped with dreampie 1.1.1
>
> A possible workaround that permits dreampie to work without a problem is to replace:
> <mypath>\DreamPie\gtk-runtime\bin\libxml2.dll
> with <mypath>\Portable Python 2.7.3.1\App\Lib\site-packages\gtk-2.0\runtime\bin\libxml2-2.dll
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dreampie/+bug/1059145/+subscriptions

Revision history for this message
Noam Yorav-Raphael (noamraph) wrote :

Great! Let's hope it's really fixed.

Have a good day,
Noam

Changed in dreampie:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.