Closed MatiasVara closed 1 year ago
Should
name
be printed as%ld
rather than%s
?
Yes, I agree. It should not be dereferenced when the .read_string()
has failed
Would you post a patch with the messages you saw to the crash mailing list [1]? It would be helpful.
Yes, I would. Thanks.
Closing with https://github.com/crash-utility/crash/commit/21139d9456ee41ffc8cec804dc530d6934ddac89. Thanks.
Hello,
I am triggering a segmentation fault at https://github.com/crash-utility/crash/blob/3ed9ec5c8d09cffac9772abbf54214125ade9127/memory.c#L6602 when trying to print
name
. The value of this variable is0xffffffff918c5748
which is not in crash's memory-space. When using gdb, I got:The
pageflag_names
is essentially an array of char*. I was wondering if it is correct to try to print the content of those pointers whenread_string
has failed.Thanks.