Re: [Python-3000] Possible py3k problem resolved.

2008-11-19 Thread Thomas Heller
Lambert, David W (S&T) schrieb: > Martin's "read the manual" answer is quite satisfying. > Unfortunately, it doesn't fix core dump of Issue4309. > I became excited thinking the problems could be related. Issue4309 is basically this problem calling the printf function: libc = CDLL(find_library("

Re: [Python-3000] Possible py3k problem.

2008-11-19 Thread Thomas Heller
Victor Stinner schrieb: > Le Wednesday 19 November 2008 15:39:43 Martin (gzlist), vous avez écrit : >> This is covered in the documentation, isn't it? >> >> >> >> Important note for callback functions: >> >> Make sure you keep referenc

Re: [Python-3000] Possible py3k problem resolved.

2008-11-19 Thread
Martin's "read the manual" answer is quite satisfying. Unfortunately, it doesn't fix core dump of Issue4309. I became excited thinking the problems could be related. I appreciate your incite, Dave. ___ Python-3000 mailing list Python-3000@python.org htt

Re: [Python-3000] Possible py3k problem.

2008-11-19 Thread Victor Stinner
Le Wednesday 19 November 2008 15:39:43 Martin (gzlist), vous avez écrit : > This is covered in the documentation, isn't it? > > > > Important note for callback functions: > > Make sure you keep references to CFUNCTYPE objects as long a

Re: [Python-3000] Possible py3k problem.

2008-11-19 Thread Martin (gzlist)
On 18/11/2008, Lambert, David W (S&T) <[EMAIL PROTECTED]> wrote: > > Attached program works with > > callback = GSL_FUNCTION(self.f) > set_with_values(mnzr,callback,xn,fn,xLB,fLB,xUB,fUB) > > But core dumps with > > set_with_values(mnzr,GSL_FUNCTION(self.f),xn,fn,xLB,fLB,x

Re: [Python-3000] Possible py3k problem.

2008-11-19 Thread Victor Stinner
Le Wednesday 19 November 2008 10:21:16 Victor Stinner, vous avez écrit : > > Attached program works with > > GSL is needed. Debian package: libgsl0-dev > > dump.py works correctly on computer: Ooops, "./python dump.py" is ok but "./python dump.py 1" does crash (on i386 and x86_64). On i386, ffi_

Re: [Python-3000] Possible py3k problem.

2008-11-19 Thread Christian Heimes
Victor Stinner wrote: Attached program works with GSL is needed. Debian package: libgsl0-dev dump.py works correctly on computer: - Debian Sid - python 3.0 trunk - i386 Problem specific to x86_64? Where is the issue? :-) How did you run dump.py? It crashes only with "python3.0 dump.py 1"

Re: [Python-3000] Possible py3k problem.

2008-11-19 Thread python-3000
On Tue, Nov 18, 2008 at 03:26:32PM -0500, Lambert, David W (S&T) wrote: > > Attached program works with > > callback = GSL_FUNCTION(self.f) > set_with_values(mnzr,callback,xn,fn,xLB,fLB,xUB,fUB) > > But core dumps with > > set_with_values(mnzr,GSL_FUNCTION(self.f),xn,fn,

Re: [Python-3000] Possible py3k problem.

2008-11-19 Thread Victor Stinner
> Attached program works with GSL is needed. Debian package: libgsl0-dev dump.py works correctly on computer: - Debian Sid - python 3.0 trunk - i386 Problem specific to x86_64? Where is the issue? :-) Victor ___ Python-3000 mailing list Python-3000@p

Re: [Python-3000] Possible py3k problem.

2008-11-18 Thread Nick Coghlan
Guido van Rossum wrote: > Core dumps generated using ctypes are not covered by the warrantee. ;-) True, although it's a little bizarre that the version with the temporary variable works, but the one without it doesn't. Then again, the temp variable does change the timing on the Python side as wel

Re: [Python-3000] Possible py3k problem.

2008-11-18 Thread Guido van Rossum
Core dumps generated using ctypes are not covered by the warrantee. ;-) On Tue, Nov 18, 2008 at 12:26 PM, Lambert, David W (S&T) <[EMAIL PROTECTED]> wrote: > > Attached program works with > >callback = GSL_FUNCTION(self.f) >set_with_values(mnzr,callback,xn,fn,xLB,fLB,xUB,fUB) > > B

Re: [Python-3000] Possible py3k problem.

2008-11-18 Thread Christian Heimes
Lambert, David W (S&T) wrote: Attached program works with callback = GSL_FUNCTION(self.f) set_with_values(mnzr,callback,xn,fn,xLB,fLB,xUB,fUB) But core dumps with set_with_values(mnzr,GSL_FUNCTION(self.f),xn,fn,xLB,fLB,xUB,fUB) I had to change your module a bit to lo

[Python-3000] Possible py3k problem.

2008-11-18 Thread
Attached program works with callback = GSL_FUNCTION(self.f) set_with_values(mnzr,callback,xn,fn,xLB,fLB,xUB,fUB) But core dumps with set_with_values(mnzr,GSL_FUNCTION(self.f),xn,fn,xLB,fLB,xUB,fUB) I do not understand the difference. Must be one of these possibilities