[erlang-questions] VM segfault on exit with wx

Dan Gudmundsson <>
Wed Oct 20 13:45:31 CEST 2010


I had a quick look at this, and I have an eternal loop there.

Since erlang is going down it kills all processes, the wx thread can't
send an event to a non existing process and it tries to send an error msg to
a non existing process which fails and it tries to send ... sigh

Will fix in next release.

/Dan

On Sat, Oct 2, 2010 at 8:46 PM, Michael Santos <> wrote:
> On Fri, Oct 01, 2010 at 06:46:05PM -0400, Michael Santos wrote:
>> On Tue, Sep 28, 2010 at 01:44:12PM -0400, Mark Scandariato wrote:
>> > Seems like the VM segfaults on exit whenever I run anything that uses wx
>> > (this is a single processor system).
>> >
>> > Let me know if you need any other info (or a core file or whatever).
>> >
>> > Mark.
>> >
>> > :~/otp_src_R14B$ uname -a
>> > Linux ubuntu 2.6.28-19-generic #65-Ubuntu SMP Thu Sep 16 14:14:28 UTC 2010
>> > i686 GNU/Linux
>> > :~/otp_src_R14B$ bin/cerl -debug -smp enable
>> > Erlang R14B (erts-5.8.1) [source] [smp:1:1] [rq:1] [async-threads:0] [hipe]
>> > [kernel-poll:false] [type-assertions] [debug-compiled] [lock-checking]
>> >
>> > Eshell V5.8.1  (abort with ^G)
>> > 1> wx:demo().
>> > {wx_ref,35,wxFrame,<0.34.0>}
>> > 2> q().
>> > ok
>> > 3> Segmentation fault (core dumped)
>>
>> Looks as if beam is crashing printing out an error message. The attached
>> patch seems to fix it.
>
> Wow, had another look and that "fix" doesn't help at all, that was just
> a heisenfix from running in gdb. Sorry for the noise!
>
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
>
>


More information about the erlang-questions mailing list