Don't output memory map in crash report for ASAN
ASAN maps a large amount of memory, which makes the memory map section massive.
This commit is contained in:
parent
ca2d19d4e5
commit
2da70aac25
Notes:
git
2024-12-12 19:08:14 +00:00
@ -1212,6 +1212,7 @@ rb_vm_bugreport(const void *ctx, FILE *errout)
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
#ifndef RUBY_ASAN_ENABLED
|
||||||
# ifdef PROC_MAPS_NAME
|
# ifdef PROC_MAPS_NAME
|
||||||
{
|
{
|
||||||
FILE *fp = fopen(PROC_MAPS_NAME, "r");
|
FILE *fp = fopen(PROC_MAPS_NAME, "r");
|
||||||
@ -1285,6 +1286,7 @@ rb_vm_bugreport(const void *ctx, FILE *errout)
|
|||||||
addr += size;
|
addr += size;
|
||||||
size = 0;
|
size = 0;
|
||||||
}
|
}
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user