Stack Overflow Question
Robert Babiak <[email protected]> Fri, 25 Sep 2015 10:13:39 -0600
| Newsgroups | gmane.comp.python.stackless |
|---|---|
| Message-ID | <CAEmPv6FwJMydF9ZQwLrnsjVfNe1gcT7mz19DxLsypP6Cs6YrfQ@mail.gmail.com> |
--===============4603213643452221001== Content-Type: multipart/alternative; boundary=047d7bdc14e66da0d2052094a109 --047d7bdc14e66da0d2052094a109 Content-Type: text/plain; charset=UTF-8 I have posted a question over on stack overflow. One guy has commented that my code works for him. He didn't say he used stackless, so it is possible that this is something that might only occurs with stackless. If any of you have a moment to check out the question and chime in, I would be grateful. In short what I am seeing is if my derived class is returned (as a pointer to the base class) from the factory function to python then I get a segmentation fault. Python reports that the returned object is of the class that the factory produced (derived class) but attempts to access the derived classes methods causes the seg fault, but accessing the base class methods works. *Another question, is anyone aware of an issue with exposing polymorphic classes via a factory in an embedded stackless environment? * Factory returning boost exposed python object seg faults http://stackoverflow.com/q/32784954/2446566?sem=2 Thanks Robert. --047d7bdc14e66da0d2052094a109 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>I have posted a question over on stack overflow. One = guy has commented that my code works for him. He didn't say he used sta= ckless, so it is possible that this is something that might only occurs wit= h stackless. If any of you have a moment to check out the question and chim= e in, I would be grateful.=C2=A0</div><div><br></div><div>In short what I a= m seeing is if my derived class is returned (as a pointer to the base class= ) from the factory function to python then I get a segmentation fault. Pyth= on reports that the returned object is of the class that the factory produc= ed (derived class) but attempts to access the derived classes methods cause= s the seg fault, but accessing the base class methods works.=C2=A0<br></div= ><div><br></div><div><b>Another question, is anyone aware of an issue with = exposing polymorphic classes via a factory in an embedded stackless=C2=A0en= vironment?=C2=A0</b></div><div><br></div>Factory returning boost exposed py= thon object seg faults<br><a href=3D"http://stackoverflow.com/q/32784954/24= 46566?sem=3D2">http://stackoverflow.com/q/32784954/2446566?sem=3D2</a><div>= <br></div><div>Thanks Robert.</div></div> --047d7bdc14e66da0d2052094a109-- --===============4603213643452221001== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Stackless mailing list [email protected] http://www.stackless.com/mailman/listinfo/stackless --===============4603213643452221001==--