[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: copcall interpreter segfault possible?
- From: Thijs Schreijer <thijs@...>
- Date: Mon, 10 Jun 2013 15:11:18 +0000
> -----Original Message-----
> From: email@example.com [mailto:firstname.lastname@example.org] On
> Behalf Of Gerhard Lipp
> Sent: woensdag 5 juni 2013 15:15
> To: email@example.com
> Subject: copcall interpreter segfault possible?
> As stated here https://github.com/Olivine-Labs/busted/issues/171, I am
> observing a segmentation fault (Lua 5.1.5) when using copcall where
> pcall should have been used.
> Unfortunately it is a rather complex situation but it is reproducible.
> lua-ev is involved which itself makes some pcall through the lua API.
> copcall and pcall may call each other in this scenario.
> Does this sound dangerous? Are there known scenarios where calling
> copcall instead of pcall can crash the interpreter due to a badly
> behaving C module?
Not sure whether it fixes your problem. But I just submitted a PR  to fix an issue with coxpcall I ran into. You might want to give it a try.