Bug#294241: swig: Bad casts in return-by-value Python (fixed in upstream (1.3.23+))

2005-02-08 Thread Jeremy H. Brown
Subject: none
Bcc: Jeremy H. Brown [EMAIL PROTECTED]
Package: swig
Version: 1.3.22-5

When generating for python, the wrapper for a method which returns a
const C++ object by value creates a SwigValueWrapper templatized on
the const return type.  However, later in the method it casts the
SwigValueWrapper to the return type minus the const qualifier; without
the const, the cast operator isn't used, and instead things just break
(typically with a segfault.)  More detail on this bug, including
example code, is available here:
https://sourceforge.net/tracker/?group_id=1645atid=101645func=detailaid=899332
A patch that fixes it is here:
https://sourceforge.net/tracker/?func=detailatid=301645aid=903150group_id=1645

For me, either catching up with the upstream release or applying this
patch and reving the Debian version would really improve things.

Thanks for your time,
Jeremy Brown

-- System Information:
Debian Release: 3.0
  APT prefers testing
  APT policy: (600, 'testing'), (1, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages swig depends on:
ii  libc6   2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libgcc1 1:3.4.3-6GCC support library
ii  libstdc++5  1:3.3.5-5The GNU Standard C++ Library v3
ii  libswig1.3.22   1.3.22-5 Runtime support libraries for swig

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#294241: swig: Bad casts in return-by-value Python (fixed in upstream (1.3.23+))

2005-02-08 Thread Jeremy H. Brown
Many thanks for the rapid turnaround!  

I'm only peripherally aware of the runtime issue; good luck sorting it
out.

Jeremy


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#294241: swig: Bad casts in return-by-value Python (fixed in upstream (1.3.23+))

2005-02-08 Thread Torsten Landschoff
Hi Jeremy, 

On Tue, Feb 08, 2005 at 01:03:24PM -0500, Jeremy H. Brown wrote:
 (typically with a segfault.)  More detail on this bug, including
 example code, is available here:
 https://sourceforge.net/tracker/?group_id=1645atid=101645func=detailaid=899332
 A patch that fixes it is here:
 https://sourceforge.net/tracker/?func=detailatid=301645aid=903150group_id=1645

Thanks, just applied it to svn and uploaded a new package.

 For me, either catching up with the upstream release or applying this
 patch and reving the Debian version would really improve things.

Before catching up I have to figure out what to do about the runtime. 
Last time I broke svn and more :(

Greetings

Torsten


signature.asc
Description: Digital signature