[erlang-bugs] port_info crashes when called concurrently by two processes

Heinz Nikolaus Gies heinz@REDACTED
Wed Mar 11 16:53:00 CET 2015


Hi there is a problem with port_info it segfaults the erlang VM when two processes are executing it in parallel. We’ve been tracking this for the last two days and condensed the a crashing test down to this:

https://gist.github.com/Licenser/41a7ffe5ca52f57a169c <https://gist.github.com/Licenser/41a7ffe5ca52f57a169c>

Ryan has some crash dumps:

fffffd7ff6406670 collect_heap_frags.isra.7+0x90()
fffffd7ff6406ba0 erts_garbage_collect+0x28f()
fffffd7ff6406bd0 erts_gc_after_bif_call+0xa4()
fffffd7ff6406f10 process_main+0x45da()
fffffd7ff6406f70 sched_thread_func+0xef()
fffffd7ff6406fb0 thr_wrapper+0x73()
fffffd7ff6406fe0 libc.so.1`_thrp_setup+0x8a(fffffd7ffd2a5a40)
fffffd7ff6406ff0 libc.so.1`_lwp_start()
fffffd7ff6207af0 copy_struct+0xb5()
fffffd7ff6207ba0 erts_port_info+0x292()
fffffd7ff6207bd0 erts_internal_port_info_1+0xeb()
fffffd7ff6207f10 process_main+0x45a9()
fffffd7ff6207f70 sched_thread_func+0xef()
fffffd7ff6207fb0 thr_wrapper+0x73()
fffffd7ff6207fe0 libc.so.1`_thrp_setup+0x8a(fffffd7ffd2a6240)
fffffd7ff6207ff0 libc.so.1`_lwp_start()
fffffd7ff73fe670 sweep_one_area+0x58()
fffffd7ff73feba0 erts_garbage_collect+0x985()
fffffd7ff73febd0 erts_gc_after_bif_call+0xa4()
fffffd7ff73fef10 process_main+0x45da()
fffffd7ff73fef70 sched_thread_func+0xef()
fffffd7ff73fefb0 thr_wrapper+0x73()
fffffd7ff73fefe0 libc.so.1`_thrp_setup+0x8a(fffffd7ffd2a1a40)
fffffd7ff73feff0 libc.so.1`_lwp_start()
```

rzezeski <https://lucera.slack.com/team/rzezeski>[14:46]

this produces a segfault instantly after running arg:run(2) tested with:

R16B02 (SmartOS)
R16B03 (OS X)
R17B03 (by Darach)

---
Cheers,
Heinz Nikolaus Gies
heinz@REDACTED



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20150311/0a2a9c5f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20150311/0a2a9c5f/attachment.bin>


More information about the erlang-bugs mailing list