port_info crashes when called concurrently by two processes

Heinz Nikolaus Gies <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <[email protected]>
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
[email protected]

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
signature.asc (application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJVAGTcAAoJEKM5c9dFK2+Yun8QAJXJMr+/+fPq4m4hU2A9ydoa
mjvaeLhQCA+FUSXRlZqOtQ3YlA23D2aitSwoXNPbWp1DaWkXYShggtt7KfEu88rb
Bmu3tH7vlSGBIfElTUVkiLL+gUz+xqUaYmqKXLqC33r1reLHhudL3X+N6H8S+xgd
rnZIeH6E2JvTwhfhGB9MQmOMfn5V9Y+LHl2jKA4QvIUu11Jfui0RTsiqZMyJKoOQ
Y3xPnEsFttnrKf1Tz+F4CQHPNJ8RG+yFlQib0iUm3gUZkL9N614wW0WrGdbsRTqP
hYf9jVoddoyj+iO+N/WMpStHqax85BdzCj3MNU3zxJ4x1fGRMyhc9b/irp1vwFs/
yH6D3UNswIeADV230X3xLyNuUnIujG3jIM41K3LCCpL6l8/evPM/fEyyhP2z6lmf
4QCyeRgED6ZDNmLfGluY64ZaVM47WtUXVFfDefXJYHwWAVPpfNPY+5cLeWMG6V6r
SRUHO0KoqKdxQq1xAesembWbsKReHPkqkcA5pU2j5TIt5/pq89Lb+7exhwhFuyak
vKeQZX05CB7b/rHmb8Q9qky733rwwABF3PW3QRdl6q25n+PTQhLI/rNcQMV657i5
7xp1qd6dKupRgipiLTJQ1dthKTq1SAfP0PaFBAex1n9MmrdMu+IL39q3wLMOAZRh
jdfr7QqN0di4e3nPfn7P
=+OAs
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.