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=1645&atid=101645&func=detail&aid=899332
A patch that fixes it is here:
https://sourceforge.net/tracker/?func=detail&atid=301645&aid=903150&group_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-6    GCC support library
ii  libstdc++5                  1:3.3.5-5    The 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]

Reply via email to