Your message dated Sun, 2 Mar 2008 11:04:36 -0600
with message-id <[EMAIL PROTECTED]>
has caused the   report #469000,
regarding quantlib-swig: may use different memory API for a given memory block
to be marked as having been forwarded to the upstream software
author(s) [EMAIL PROTECTED]

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
469000: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469000
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Hi Luigi (and Hi Doko),

Here is something that Doko, one of the core Debian / Ubuntu guys for gcc and
python and lotsofotherstuff dug out.  As you are familiar with both QL and
Swig, could you comment on how you view the issue?  I can always patch this
for Debian-only in the very short term but this may be something to consider
for the next pre-1.0.0 release of Quantlib.

On 2 March 2008 at 17:23, Matthias Klose wrote:
| Package: quantlib-swig
| Severity: important
| User: [EMAIL PROTECTED]
| Usertags: goal-python2.5
| 
| The C API requires using the same memory API for a given memory block,
| which will show up as a segfault, at least in python2.5. This code was
| found by a search of all sources build-depending on python-dev, having
| a PyObject_ function for allocation and a PyMem_ function for
| deallocation in the same file.  This may be a real problem, or a false
| positive.
| 
| The most common error seen is of the form:
| 
|   PyObject *
|   new_wadobject(WadFrame *f, int count) {
|     wadobject   *self;
|     self = PyObject_NEW(wadobject, &WadObjectType);
|     [...]
|   }
| 
|   static void
|   wadobject_dealloc(wadobject *self) {
|     PyMem_DEL(self);
|   }
| 
| This particular example can be fixed with replacing PyMem_DEL with
| PyObject_Del.
| 
| For more information, see
| http://docs.python.org/api/memory.html
| http://docs.python.org/api/memoryExamples.html
| 
| Please set the severity of this report to "serious", if it is a real
| problem, please close the report if it is a false positive.  Ask
| the [EMAIL PROTECTED] ML for help. Archive of the
| search results: http://ftp-master.debian.org/~he/affected-files.tar.gz

I'll let upstream comment as alluded to above.

Thanks,  Dirk

-- 
Three out of two people have difficulties with fractions.


--- End Message ---

Reply via email to