Re: Segmentation fault in 2.7.8 on Ubuntu while 2.7.2 works fine
Kristján Valur Jónsson <[email protected]> Mon, 18 Sep 2017 14:15:14 +0000
| Newsgroups | gmane.comp.python.stackless |
|---|---|
| Message-ID | <CAP8kY6Y8D+WrYdm-hRzBA8CVUqZCOiFVqzZGdEUVW0s4SvgrJw@mail.gmail.com> |
--===============8784931141016204819== Content-Type: multipart/alternative; boundary="001a114123421b50070559775f0e" --001a114123421b50070559775f0e Content-Type: text/plain; charset="UTF-8" Hi there Andreas. What kind of socket solution are you using? I.e. I'm assuming that you are using "tasklet blocking" to juggle IO over sockets. What modules are you using? On Linux, that ultimatyly is achieved by using select()/poll() system calls. It is possible that something changed on the lower level causing unexpected behaviour. Possibly there are unexpected wakeups happening, i.e. the process thinks there are data to be read from the socket (because of some select/poll notifiation) but when it tries to get it, there is nothing. If you can distill some dummy code to demonstrate the problem, i.e. without all your "game" stuff, perhaps only listening on a socket, or something, that would be helpful. Cheers! K On 15 September 2017 at 22:30, Andreas Olsson <[email protected]> wrote: > Hello > > Not sure if this mail list is still active, but I need a nudge in the > right direction, so I give it a try. :-) > > I have developed a small game using stackless + pygame. For the > development, I am switching between Windows, Ubuntu, and Mac OS. Most of > the time, this works pretty well. > > Ever since my Macbook Pro upgraded to MacOS Sierra, I have had problems > with Stackless. When running activities that involves sockets and stackless > tasklets everything becomes extremely slow, and the CPU load of the Python > pocess goes up to between 120 and 130 %. This also happens when running > without Pygame. I have tried to download the latest installer, and build > from source, but no luck. The same Python source code runs fine on Windows > and Ubuntu. > > I am completely lost, it would be very grateful if anyone could nudge me > in the right direction for what this could be :-) > > Thank you in advance and best regards, > > Andreas > > > > > PS > > The game got invited to IndieCade as a "Festival 2017 Selection", which I > am rather exited about as this is our first game (jeromegames.com). This > is also the reason I am trying to fix this, as I need to bring a few > laptops to the festival. > > > > > _______________________________________________ > Stackless mailing list > [email protected] > http://www.stackless.com/mailman/listinfo/stackless > --001a114123421b50070559775f0e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi there Andreas.<div>What kind of socket solution are you= using?=C2=A0 I.e. I'm assuming that you are using "tasklet blocki= ng" to juggle IO over sockets.=C2=A0 What modules are you using?</div>= <div>On Linux, that ultimatyly is achieved by using select()/poll() system = calls.=C2=A0 It is possible that something changed on the lower level causi= ng unexpected behaviour.=C2=A0 Possibly there are unexpected wakeups happen= ing, i.e. the process thinks there are data to be read from the socket (bec= ause of some select/poll notifiation) but when it tries to get it, there is= nothing.</div><div><br></div><div>If you can distill some dummy code to de= monstrate the problem, i.e. without all your "game" stuff, perhap= s only listening on a socket, or something, that would be helpful.</div><di= v>Cheers!</div><div><br></div><div>K</div><div><br></div><div><br></div></d= iv><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On 15 Septembe= r 2017 at 22:30, Andreas Olsson <span dir=3D"ltr"><<a href=3D"mailto:and= [email protected]" target=3D"_blank">[email protected]</a>&g= t;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0= .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Hello<d= iv><br></div><div class=3D"gmail_extra"><div class=3D"gmail_quote">Not sure= if this mail list is still active, but I need a nudge in the right directi= on, so I give it a try. :-)</div><div class=3D"gmail_quote"><br></div><div = class=3D"gmail_quote">I have developed a small game using stackless + pygam= e. For the development, I am switching between Windows, Ubuntu, and Mac OS.= Most of the time, this works pretty well.</div><div class=3D"gmail_quote">= <br></div><div class=3D"gmail_quote">Ever since my Macbook Pro upgraded to = MacOS Sierra, I have had problems with Stackless. When running activities t= hat involves sockets and stackless tasklets everything becomes extremely sl= ow, and the CPU load of the Python pocess goes up to between 120 and 130 %.= This also happens when running without Pygame. I have tried to download th= e latest installer, and build from source, but no luck. The same Python sou= rce code runs fine on Windows and Ubuntu.</div><div class=3D"gmail_quote"><= br></div><div class=3D"gmail_quote">I am completely lost, it would be very = grateful if anyone could nudge me in the right direction for what this coul= d be :-)</div><div class=3D"gmail_quote"><br></div><div class=3D"gmail_quot= e">Thank you in advance and best regards,</div><div class=3D"gmail_quote"><= br></div><div class=3D"gmail_quote">Andreas</div><div class=3D"gmail_quote"= ><br></div><div class=3D"gmail_quote"><br></div><div class=3D"gmail_quote">= <br></div><div class=3D"gmail_quote"><br></div><div class=3D"gmail_quote">P= S</div><div class=3D"gmail_quote"><br></div><div class=3D"gmail_quote">The = game got invited to IndieCade as a "Festival 2017 Selection", whi= ch I am rather exited about as this is our first game (<a href=3D"http://je= romegames.com" target=3D"_blank">jeromegames.com</a>). This is also the rea= son I am trying to fix this, as I need to bring a few laptops to the festiv= al.<br></div><div class=3D"gmail_quote"><br></div><div class=3D"gmail_quote= "><br></div><div class=3D"gmail_quote"><br></div></div></div> <br>______________________________<wbr>_________________<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" rel=3D"nore= ferrer" target=3D"_blank">http://www.stackless.com/<wbr>mailman/listinfo/st= ackless</a><br></blockquote></div><br></div> --001a114123421b50070559775f0e-- --===============8784931141016204819== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KU3RhY2tsZXNz IG1haWxpbmcgbGlzdApTdGFja2xlc3NAc3RhY2tsZXNzLmNvbQpodHRwOi8vd3d3LnN0YWNrbGVz cy5jb20vbWFpbG1hbi9saXN0aW5mby9zdGFja2xlc3M= --===============8784931141016204819==--