From: SourceForge.net <no...@so...> - 2007-04-15 21:45:10
|
Bugs item #1700788, was opened at 2007-04-14 22:40 Message generated for change (Comment added) made by olly You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1700788&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: php Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Monty Taylor (sdirector) >Assigned to: Olly Betts (olly) >Summary: php5 segfault on %extend method when making proxy classes Initial Comment: I ran swig on a file that works nicely in other languages, and swig segfaulted. I found that if I ran with -noproxy I no longer got the segfault. I'm attaching a testcase with the swig files and copies of the necessary headers. If you run "build.sh", you should get the segfault. Please let me know if there is anything further I can do to help. ---------------------------------------------------------------------- >Comment By: Olly Betts (olly) Date: 2007-04-15 22:45 Message: Logged In: YES user_id=14972 Originator: NO I've had a quick look - I think the problem is caused by the extend method, which AIUI is implemented by SWIG as a non-method in the C++ wrapper code. I simply didn't consider this case when I wrote the code to generate PHP5 wrappers, so it assumes it has a class node to play with. The segfault is easy to fix, but making it actually do the correct thing may be a little more involved. I'll take a look. ---------------------------------------------------------------------- Comment By: Monty Taylor (sdirector) Date: 2007-04-15 09:34 Message: Logged In: YES user_id=43580 Originator: YES Here you go - a very small test case. Two classes. One extended method. File Added: testcasesmall.tgz ---------------------------------------------------------------------- Comment By: Monty Taylor (sdirector) Date: 2007-04-15 09:18 Message: Logged In: YES user_id=43580 Originator: YES Yes. I'll see if I can track down which class it is... I've actually tried with 1.3.31 and with latest SVN. No difference :( ---------------------------------------------------------------------- Comment By: John Lenz (wuzzeb) Date: 2007-04-15 08:19 Message: Logged In: YES user_id=153408 Originator: NO If you could, can you try and get the crash to happen on a single small example file? Try and find which class is causing the problem. Also, which version of SWIG are you using? The latest SVN or 1.3.31? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1700788&group_id=1645 |