Your message dated Sat, 3 Dec 2005 17:03:42 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Working with swig 1.3.27
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 29 Mar 2005 17:28:28 +0000
>From [EMAIL PROTECTED] Tue Mar 29 09:28:28 2005
Return-path: <[EMAIL PROTECTED]>
Received: from (razorfish.bluefinrobotics.com) [66.251.53.12] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DGKVw-00024g-00; Tue, 29 Mar 2005 09:28:28 -0800
Received: by razorfish.bluefinrobotics.com (Postfix, from userid 1016)
        id D996F8C93FD; Tue, 29 Mar 2005 12:27:31 -0500 (EST)
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: swig: Swig_symbol_clookup goes into infinite recursion on "using
 ::baz;"
X-Debbugs-CC: Jeremy H. Brown <[EMAIL PROTECTED]>
From: [EMAIL PROTECTED] (Jeremy H. Brown)
Date: Tue, 29 Mar 2005 12:27:31 -0500
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-11.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
        X_DEBBUGS_CC autolearn=ham version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: swig
Version: 1.3.24-1
Severity: important

When wrapping C++ for use from Python, qan expression of the form
"using ::baz;" sends Swig_symbol_clookup into an infinite recursion
that ends with a segfault when the stack is exhausted.  This makes it
pretty much unusable on a our code.  Swig 1.3.22 didn't have this
problem.

I've built a debugging version from the apt sources.  Given a file
demo.i as follows:
------------------------------------------------------------
%module demo 
using ::baz;
------------------------------------------------------------

...running swig with the following arguments:
  -v -c++ -python demo.i

...generates the following a stack trace (with the leading 990 or so
Swig_symbol_clookup frames elided for brevity:)

------------------------------------------------------------
#990 0x080ded3f in Swig_symbol_clookup (name=0x4032ff98, n=0x4023e178) at 
Swig/symbol.c:897
#991 0x080ded3f in Swig_symbol_clookup (name=0x4032ff98, n=0x4023e178) at 
Swig/symbol.c:897
#992 0x080ded3f in Swig_symbol_clookup (name=0x4032ff98, n=0x4023e178) at 
Swig/symbol.c:897
#993 0x080ded3f in Swig_symbol_clookup (name=0x4032ff98, n=0x4023e178) at 
Swig/symbol.c:897
#994 0x080ca603 in TypePass::usingDeclaration (this=0x4032ff98, n=0x4032ffa8) 
at Modules/typepass.cxx:820
#995 0x08087daa in Dispatcher::emit_one (this=0xbffff960, n=0x4032ffa8) at 
Modules/lang.cxx:133
#996 0x08087f72 in Dispatcher::emit_children (this=0xbffff960, n=0x4032ffa8) at 
Modules/lang.cxx:206
#997 0x080c89e8 in TypePass::includeDirective (this=0x65000000, n=0x4032ff98) 
at Modules/typepass.cxx:329
#998 0x08087ca6 in Dispatcher::emit_one (this=0xbffff960, n=0x4032fef8) at 
Modules/lang.cxx:159
#999 0x08087f72 in Dispatcher::emit_children (this=0xbffff960, n=0x4032fef8) at 
Modules/lang.cxx:206
#1000 0x080c86f5 in Swig_process_types (n=0x402400b8) at 
Modules/typepass.cxx:290
#1001 0x08090424 in SWIG_main (argc=5, argv=0xbffffce4, l=0x4032ff98) at 
Modules/main.cxx:805
#1002 0x080c487c in main (margc=1694498816, margv=0x65000000) at 
Modules/swigmain.cxx:195
------------------------------------------------------------



-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (800, 'testing'), (1, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

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-9    GCC support library
ii  libstdc++5                  1:3.3.5-9    The GNU Standard C++ Library v3
ii  libswig1.3.22               1.3.22-5     Runtime support libraries for swig

-- no debconf information

---------------------------------------
Received: (at 302016-done) by bugs.debian.org; 3 Dec 2005 16:03:45 +0000
>From SRS0=om/[EMAIL PROTECTED] Sat Dec 03 08:03:45 2005
Return-path: <SRS0=om/[EMAIL PROTECTED]>
Received: from moutng.kundenserver.de ([212.227.126.183])
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1EiZrU-00074C-FU
        for [EMAIL PROTECTED]; Sat, 03 Dec 2005 08:03:44 -0800
Received: from [84.141.8.31] (helo=stargate.galaxy)
        by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis),
        id 0ML25U-1EiZrT1jg5-0008Dk; Sat, 03 Dec 2005 17:03:43 +0100
Received: by stargate.galaxy (Postfix, from userid 1000)
        id E63A21807A; Sat,  3 Dec 2005 17:03:42 +0100 (CET)
Date: Sat, 3 Dec 2005 17:03:42 +0100
From: Torsten Landschoff <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Working with swig 1.3.27
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="VrqPEDrXMn8OVzN4"
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
X-Provags-ID: kundenserver.de [EMAIL PROTECTED] 
login:d638a0eb9c9fbc21c426336ab6dfa19b
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-2.5 required=4.0 tests=BAYES_00,RCVD_IN_SORBS 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02


--VrqPEDrXMn8OVzN4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Jeremy,=20

Your sample input

------------------------------------------------------------
%module demo=20
using ::baz;
------------------------------------------------------------

works fine in the current version of swig (which is 1.3.27).

Therefore I am closing this bug.

Greetings

        Torsten

--VrqPEDrXMn8OVzN4
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDkcHedQgHtVUb5EcRAoldAJ4q8VidqT0+J94JxlgMXc+oUVdIxwCdEZN6
EcJj3Y5KW1c8vcdQViN+aYI=
=O5vn
-----END PGP SIGNATURE-----

--VrqPEDrXMn8OVzN4--


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

Reply via email to