-
Notifications
You must be signed in to change notification settings - Fork 628
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
Enable coredump generation for aarch64
and arm
#2571
base: criu-dev
Are you sure you want to change the base?
Enable coredump generation for aarch64
and arm
#2571
Conversation
6732abe
to
3447504
Compare
@rst0git I am stuck while working on the loongarch64 architecture. The stack of the program does not seem to get saved in the coredump. I am generating the coredump of this program: static void func_2(void) {
int var_2 = 2;
while (1);
}
static void func_1(void) {
int var_1 = 1;
func_2();
}
static void func_0(void) {
int var_0 = 0;
func_1();
}
int main() {
int var_main = -1;
func_0();
return 0;
} and I am compiling it like this when I open this coredump in gdb and execute
the area of the memory where the stack pointer points is all 0s
before dumping this program, I attached gdb to it, and examined the register values, all of the registers matched with the registers in the coredump, but there I could see the full backtrace, and the stack was not all zeroes. what could be the problem here? I suspect it has to do something with the vmas, or is it something else? Edit: also paging @avagin too for help with this issue Thank You |
Add relevant elf header constants and notes for the aarch64 platform to enable coredump generation. Signed-off-by: समीर सिंह Sameer Singh <[email protected]>
3447504
to
8e45ed7
Compare
Add relevant elf header constants and notes for the arm platform to enable coredump generation. Signed-off-by: समीर सिंह Sameer Singh <[email protected]>
@ss141309 Thank you for working on this!
We can limit the scope of this pull request to |
ok, then I should make separate PRs for the other architectures? |
aarch64
and arm
Sure, we can add coredump support for other architectures in a separate pull request. |
@rst0git can you please check this patch? Have I included all the relevant notes and registers? I was using the output of
gcore
to verify which notes need to be added. I will soon add the support for more architectures if this one is alright.Thank you.