diff options
author | Björn-Egil Dahlberg <[email protected]> | 2013-10-21 17:39:24 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2013-10-21 17:39:24 +0200 |
commit | 7cf1ce9d805414d5cb1bf29852d2a5bf48ea4235 (patch) | |
tree | 5cf52df42ab9a6699fede95712c80c826bbe8530 /erts/emulator/beam/break.c | |
parent | f6c8336de4bc28f98db3b8d76cb448afa86e0308 (diff) | |
parent | e25f74afd0705f686d0fc949e4362c73d6da15fa (diff) | |
download | otp-7cf1ce9d805414d5cb1bf29852d2a5bf48ea4235.tar.gz otp-7cf1ce9d805414d5cb1bf29852d2a5bf48ea4235.tar.bz2 otp-7cf1ce9d805414d5cb1bf29852d2a5bf48ea4235.zip |
Merge branch 'egil/fix-crashdump-pointer-crash/OTP-11420' into maint
* egil/fix-crashdump-pointer-crash/OTP-11420:
erts: Fix segfaulting crashdump writing
Diffstat (limited to 'erts/emulator/beam/break.c')
-rw-r--r-- | erts/emulator/beam/break.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/emulator/beam/break.c b/erts/emulator/beam/break.c index ad9a89b642..99604fa3bc 100644 --- a/erts/emulator/beam/break.c +++ b/erts/emulator/beam/break.c @@ -76,7 +76,10 @@ process_info(int to, void *to_arg) for (i = 0; i < max; i++) { Process *p = erts_pix2proc(i); if (p && p->i != ENULL) { - if (!ERTS_PROC_IS_EXITING(p)) + /* Do not include processes with no heap, + * they are most likely just created and has invalid data + */ + if (!ERTS_PROC_IS_EXITING(p) && p->heap != NULL) print_process_info(to, to_arg, p); } } |