Re: Building Debug version.

Kristján Valur Jónsson <[email protected]> Wed, 27 Aug 2014 09:38:01 +0000
Newsgroups gmane.comp.python.stackless
Message-ID <CAP8kY6am5iG-Tgg+Us6FfMi+hyX+ptOikuQ0dJ=NS_1Ax=ob4Q@mail.gmail.com>
--===============4385396601937637461==
Content-Type: multipart/alternative; boundary=20cf301b69cf1650960501992d5c

--20cf301b69cf1650960501992d5c
Content-Type: text/plain; charset=UTF-8

Is this on a unix-like thingie?
IIRC, it is ./configure --with-pydebug
before running the makefile.  Exactly the same as for regular python
builds.  Look into building CPython for your platform for details.

Errors during PyFinalize usually have to do with two things:
Problems in objects being released late due to reference counting.  These
are propblems you should be able to fix in your app.+
Problems due to threads.  If you are running a python thread (as a daemon)
then PyFinalize will cause, among other things, the GIL to go away and your
other python threads to start doing all kinds of weird stuff.  Either wait
for all your threads, or don't do Py_finalize.  This is a general Python
problem.


On 26 August 2014 19:53, Robert Babiak <[email protected]> wrote:

> Hi I am trying to track down a Seg-Fault in Py_Finalize in my code, I am
> embedding Stackless into my application.
>
> I am trying to figure out where to get symbols/ how to build stackless
> with symbols
>
> I don't see any options on setup,.py for specifying a debug build, and
> google has come up dry.
>
> Is it possible?
>
> - Rob
>
> --
> Life: Bah, I will worry about it when it is over.
>
> _______________________________________________
> Stackless mailing list
> [email protected]
> http://www.stackless.com/mailman/listinfo/stackless
>

--20cf301b69cf1650960501992d5c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Is this on a unix-like thingie?<div>IIRC, it is ./configur=
e --with-pydebug</div><div>before running the makefile. =C2=A0Exactly the s=
ame as for regular python builds. =C2=A0Look into building CPython for your=
 platform for details.</div>
<div><br></div><div>Errors during PyFinalize usually have to do with two th=
ings:</div><div>Problems in objects being released late due to reference co=
unting. =C2=A0These are propblems you should be able to fix in your app.+</=
div>
<div>Problems due to threads. =C2=A0If you are running a python thread (as =
a daemon) then PyFinalize will cause, among other things, the GIL to go awa=
y and your other python threads to start doing all kinds of weird stuff. =
=C2=A0Either wait for all your threads, or don&#39;t do Py_finalize. =C2=A0=
This is a general Python problem.</div>
</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On 26 A=
ugust 2014 19:53, Robert Babiak <span dir=3D"ltr">&lt;<a href=3D"mailto:rba=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<b=
r><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:=
1px #ccc solid;padding-left:1ex">
<div dir=3D"ltr">Hi I am trying to track down a Seg-Fault in Py_Finalize in=
 my code, I am embedding Stackless into my application.<div><br></div><div>=
I am trying to figure out where to get symbols/ how to build stackless with=
 symbols=C2=A0<br>

</div><div><br></div><div>I don&#39;t see any options on setup,.py for spec=
ifying a debug build, and google has come up dry.=C2=A0</div><div><br></div=
><div>Is it possible?</div><div><br></div><div>- Rob</div><span class=3D"HO=
EnZb"><font color=3D"#888888"><div>
<div><br></div>
-- <br>Life: Bah, I will worry about it when it is over.
</div></font></span></div>
<br>_______________________________________________<br>
Stackless mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br>
<a href=3D"http://www.stackless.com/mailman/listinfo/stackless" target=3D"_=
blank">http://www.stackless.com/mailman/listinfo/stackless</a><br></blockqu=
ote></div><br></div>

--20cf301b69cf1650960501992d5c--


--===============4385396601937637461==
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
--===============4385396601937637461==--