Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tprof:restart() can fail with {badmap, all} #8472

Open
mkuratczyk opened this issue May 10, 2024 · 0 comments · May be fixed by #8541
Open

tprof:restart() can fail with {badmap, all} #8472

mkuratczyk opened this issue May 10, 2024 · 0 comments · May be fixed by #8541
Assignees
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM

Comments

@mkuratczyk
Copy link
Contributor

Describe the bug
As I was playing around with tprof, I got this error upon tprof:restart().

** exception exit: {{{badmap,all},
                     [{maps,foreach,
                            [#Fun<tprof.18.95854980>,all],
                            [{file,"maps.erl"},
                             {line,1262},
                             {error_info,#{module => erl_stdlib_errors}}]},
                      {tprof,handle_call,3,[{file,"tprof.erl"},{line,973}]},
                      {gen_server,try_handle_call,4,
                                  [{file,"gen_server.erl"},{line,2209}]},
                      {gen_server,handle_msg,6,
                                  [{file,"gen_server.erl"},{line,2238}]},
                      {proc_lib,init_p_do_apply,3,
                                [{file,"proc_lib.erl"},{line,329}]}]},
                    {gen_server,call,[tprof,restart,infinity]}}
     in function  gen_server:call/3 (gen_server.erl, line 1126)

To Reproduce
So far I failed to find a simple test case to reproduce it but I guess it can be fixed even without one.

Affected versions
master built on May 9th 2024

@mkuratczyk mkuratczyk added the bug Issue is reported as a bug label May 10, 2024
@IngelaAndin IngelaAndin added the team:VM Assigned to OTP team VM label May 14, 2024
garazdawi added a commit to garazdawi/otp that referenced this issue Jun 3, 2024
When running in server mode and profiling all, the function pause/restart/continue
would crash as they received the atom 'all' as an interator.

closes erlang#8472
garazdawi added a commit to garazdawi/otp that referenced this issue Jun 3, 2024
When running in server mode and profiling all, the function pause/restart/continue
would crash as they received the atom 'all' as an interator.

closes erlang#8472
garazdawi added a commit to garazdawi/otp that referenced this issue Jun 3, 2024
When running in server mode and profiling all, the function pause/restart/continue
would crash as they received the atom 'all' as an interator.

closes erlang#8472
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants