[Mingw-w64-public] seek a python library built from mingw/mingw64?

2012-12-12 Thread asmwarrior
Hi, when I run the gdb (python enabled) under drmemory, like:
drmemory gdb.exe

I see a lot of error reports regarding about memory error related to python 
dll, like below:
(ERROR 3)

..
Error #3: UNADDRESSABLE ACCESS: reading 0x03318010-0x03318014 4 byte(s)
# 0 python27.dll!PyObject_Free +0xf  (0x1e00f74f 
)
# 1 python27.dll!PyObject_Free +0x1a5(0x1e00f8e6 
)
# 2 python27.dll!PyLong_New+0x6b (0x1e00957a 
)
# 3 python27.dll!PyMarshal_ReadLongFromFile+0x144(0x1e0271c7 
)
# 4 python27.dll!PyMarshal_ReadLongFromFile+0x1c4(0x1e027247 
)
# 5 python27.dll!PyDict_DelItem+0x3a8(0x1e015729 
)
# 6 python27.dll!PyInstance_New+0x30e(0x1e01654f 
)
# 7 python27.dll!PyCFunction_Call  +0x27 (0x1e015d18 
)
# 8 python27.dll!PyEval_CallObjectWithKeywords +0x5e (0x1e015c8f 
)
# 9 python27.dll!PyEval_EvalFrameEx+0x11f5   (0x1e012426 
)
#10 python27.dll!PyEval_EvalCodeEx +0x106(0x1e0106e7 
)
#11 python27.dll!PyEval_EvalCode   +0x1c (0x1e001e5d 
)
Note: @0:00:05.859 in thread 189780
Note: next higher malloc: 0x03318660-0x033187f0
Note: 0x03318010-0x03318014 overlaps memory 0x03317b68-0x03318638 that was freed
Note: instruction: mov0x10(%eax) -> %edx
.



So, I suspect that this is caused that mingw use msvcrt.dll, but the 
python2.7.3 release was built from MSVC, so it has another kind of c runtime 
library.

If possible, I need to build gdb which should link to a python libary(built 
from mingw).

I see this: 
https://github.com/niXman/mingw-builds/tree/master/patches/Python-2.7.3
There are too many patches, and I even don't know how to build it. So, I wish 
there is a pre-build python library release from mingw/mingw64.

Thanks.

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] seek a python library built from mingw/mingw64?

2012-12-12 Thread Алексей Павлов
Hi!
You may download any toolchain that you need from
https://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.7.2.
All toolchains since rev2 contains prebuilded Python-2.7.3 in opt
subdirectory and gdb that in toolchain work with this python.

2012/12/13 asmwarrior 

> Hi, when I run the gdb (python enabled) under drmemory, like:
> drmemory gdb.exe
>
> I see a lot of error reports regarding about memory error related to
> python dll, like below:
> (ERROR 3)
>
> ..
> Error #3: UNADDRESSABLE ACCESS: reading 0x03318010-0x03318014 4 byte(s)
> # 0 python27.dll!PyObject_Free +0xf  (0x1e00f74f
> )
> # 1 python27.dll!PyObject_Free +0x1a5(0x1e00f8e6
> )
> # 2 python27.dll!PyLong_New+0x6b (0x1e00957a
> )
> # 3 python27.dll!PyMarshal_ReadLongFromFile+0x144(0x1e0271c7
> )
> # 4 python27.dll!PyMarshal_ReadLongFromFile+0x1c4(0x1e027247
> )
> # 5 python27.dll!PyDict_DelItem+0x3a8(0x1e015729
> )
> # 6 python27.dll!PyInstance_New+0x30e(0x1e01654f
> )
> # 7 python27.dll!PyCFunction_Call  +0x27 (0x1e015d18
> )
> # 8 python27.dll!PyEval_CallObjectWithKeywords +0x5e (0x1e015c8f
> )
> # 9 python27.dll!PyEval_EvalFrameEx+0x11f5   (0x1e012426
> )
> #10 python27.dll!PyEval_EvalCodeEx +0x106(0x1e0106e7
> )
> #11 python27.dll!PyEval_EvalCode   +0x1c (0x1e001e5d
> )
> Note: @0:00:05.859 in thread 189780
> Note: next higher malloc: 0x03318660-0x033187f0
> Note: 0x03318010-0x03318014 overlaps memory 0x03317b68-0x03318638 that was
> freed
> Note: instruction: mov0x10(%eax) -> %edx
> .
>
>
>
> So, I suspect that this is caused that mingw use msvcrt.dll, but the
> python2.7.3 release was built from MSVC, so it has another kind of c
> runtime library.
>
> If possible, I need to build gdb which should link to a python
> libary(built from mingw).
>
> I see this:
> https://github.com/niXman/mingw-builds/tree/master/patches/Python-2.7.3
> There are too many patches, and I even don't know how to build it. So, I
> wish there is a pre-build python library release from mingw/mingw64.
>
> Thanks.
>
>
> --
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] seek a python library built from mingw/mingw64?

2012-12-13 Thread Václav Šmilauer

> Hi, when I run the gdb (python enabled) under drmemory, like:
> drmemory gdb.exe
>
> I see a lot of error reports regarding about memory error related to python 
> dll, like below:
> (ERROR 3)
Since I assume drmemory is something akin to valgrind, I can generally 
comment on its combination with Python. Python uses some smart 
techniques of managing its own memory (including reads from 
unititialized chunks) which look suspicicous to analysis programs. See 
http://svn.python.org/projects/python/trunk/Misc/README.valgrind for 
details.
> So, I suspect that this is caused that mingw use msvcrt.dll, but the 
> python2.7.3 release was built from MSVC, so it has another kind of c runtime 
> library.
>
> If possible, I need to build gdb which should link to a python libary(built 
> from mingw).
>
> I see this: 
> https://github.com/niXman/mingw-builds/tree/master/patches/Python-2.7.3
> There are too many patches, and I even don't know how to build it. So, I wish 
> there is a pre-build python library release from mingw/mingw64.
I don't think it is related to using different runtimes, though. There 
was a threads started by myself earlier on the subject 
http://thread.gmane.org/gmane.comp.gnu.mingw.w64.general/6241 . I can 
link to the official python27.dll just fine with mingw, but I need to 
change distutils to link to msvcrt, not to msvcr90, to which 
python27.dll links otherwise (there is a patch to distutils in 
attachment to 
http://thread.gmane.org/gmane.comp.gnu.mingw.w64.general/6509/focus=6511). 
I am not sure if that is related to the fact that mingw links to msvcrt 
automatically.

I filed the issue http://bugs.python.org/issue16472 about 
msvcrt/msvcr90, but it is not (yet) conclusive.

(Don't get me wrong I would be very glad if there were an official 
mingw-built version of python. I just wanted to say that the distributed 
MSVC binary works.

HTH, Vaclav


--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] seek a python library built from mingw/mingw64?

2012-12-13 Thread asmwarrior
On 2012-12-13 12:42, Алексей Павлов wrote:
> Hi!
> You may download any toolchain that you need from 
> https://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4..7.2
>  
> .
>  All toolchains since rev2 contains prebuilded Python-2.7.3 in opt 
> subdirectory and gdb that in toolchain work with this python.

Thanks for the info, I will try it.


--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] seek a python library built from mingw/mingw64?

2012-12-13 Thread asmwarrior
On 2012-12-13 17:21, Václav Šmilauer wrote:
>> >Hi, when I run the gdb (python enabled) under drmemory, like:
>> >drmemory gdb.exe
>> >
>> >I see a lot of error reports regarding about memory error related to python 
>> >dll, like below:
>> >(ERROR 3)
> Since I assume drmemory is something akin to valgrind, I can generally
> comment on its combination with Python. Python uses some smart
> techniques of managing its own memory (including reads from
> unititialized chunks) which look suspicicous to analysis programs. See
> http://svn.python.org/projects/python/trunk/Misc/README.valgrind  for
> details.

Ok, so drmemory may report some false-errors, which is not actually memory 
errors.
  
> I filed the issuehttp://bugs.python.org/issue16472  about
> msvcrt/msvcr90, but it is not (yet) conclusive.
>
> (Don't get me wrong I would be very glad if there were an official
> mingw-built version of python. I just wanted to say that the distributed
> MSVC binary works.
>
> HTH, Vaclav

Hi, thanks. Sorry, I'm not quite understand your bug report on python site. As 
a conclusion, do you mean that it is safe to build/run a python-enabled gdb 
(under msys+mingw) which link to official python lib (msvcr90)?






--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public