Strange stack-traces in crash reports

Alexey Lebedeff <[email protected]> Fri, 5 Aug 2016 14:45:49 +0300
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <CADOt_n8QNhhxxE26JgaFZPgY5+fOgqkDehKA2wnkfhQFKRkWow@mail.gmail.com>
--===============9213517143856966635==
Content-Type: multipart/alternative; boundary=089e01176495a3594d0539519bdb

--089e01176495a3594d0539519bdb
Content-Type: text/plain; charset=UTF-8

Hi folks,

In sasl logs I'm observing some stack-traces that I can't explain, on
Erlang 18.1 + actively using HiPE compilation. Looks like those are
stack-traces of 2 different processes somehow merged together.

Here are some examples:

** {function_clause,[{gb_trees,delete_1,2,[]},
                     {gb_trees,delete,2,[]},
                     {mirrored_supervisor,init,1,[]},
                     {gen_server2,handle_msg,2,[]},
                     {mirrored_supervisor,init,1,[]}]}

mirrored_supervisor:init/1 is
https://github.com/rabbitmq/rabbitmq-common/blob/stable/src/mirrored_supervisor.erl#L276
But there is no way it can call:
- itself recursively
- gen_server2:handle_msg/2
- gb_trees:delete/1


** {function_clause,[{rabbit_channel,handle_info,2,[]},
                     {gen_server2,handle_msg,2,[]},
                     {ssl_config,module_info,1,[]}]}

And according to this trace, `ssl_config:module_info/1` somehow started
process of message handling in generic server, which doesn't make any
sense. And this `module_info` happens with a lot of different modules, both
built-in and application specific.


Is this something known? Can it be related to HiPE? I was not able to find
anything related to stacktraces in release notes of every 18 and 19 release.


Best,
Alexey

--089e01176495a3594d0539519bdb
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div>Hi folks,<br><br></div><div>In sasl logs I&#39;m=
 observing some stack-traces that I can&#39;t explain, on Erlang 18.1 + act=
ively using HiPE compilation. Looks like those are stack-traces of 2 differ=
ent processes somehow merged together.<br><br></div><div>Here are some exam=
ples:<br></div><div><br>** {function_clause,[{gb_trees,delete_1,2,[]},<br>=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {gb_trees,delete,2,[]},<br>=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {mirrored_supervisor,init,1,[=
]},<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {gen_server2,handle_=
msg,2,[]},<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {mirrored_supe=
rvisor,init,1,[]}]}<br></div><div><br>mirrored_supervisor:init/1 is<br><a h=
ref=3D"https://github.com/rabbitmq/rabbitmq-common/blob/stable/src/mirrored=
_supervisor.erl#L276">https://github.com/rabbitmq/rabbitmq-common/blob/stab=
le/src/mirrored_supervisor.erl#L276</a><br></div><div>But there is no way i=
t can call:<br></div><div>- itself recursively<br></div><div>-  gen_server2=
:handle_msg/2<br></div><div>- gb_trees:delete/1<br></div><div><br></div><di=
v><br></div><div>** {function_clause,[{rabbit_channel,handle_info,2,[]},<br=
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {gen_server2,handle_msg,2,=
[]},<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {ssl_config,module_i=
nfo,1,[]}]}<br></div><div><br>And according to this trace, `ssl_config:modu=
le_info/1` somehow started process of message handling in generic server, w=
hich doesn&#39;t make any sense. And this `module_info` happens with a lot =
of different modules, both built-in and application specific.<br></div><div=
><br><br></div><div>Is this something known? Can it be related to HiPE? I w=
as not able to find anything related to stacktraces in release notes of eve=
ry 18 and 19 release.<br></div><div><br><br></div>Best,<br></div>Alexey<br>=
</div>

--089e01176495a3594d0539519bdb--

--===============9213517143856966635==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs

--===============9213517143856966635==--