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

dump_stack() system call returning only zeros #292

Open
kpgriesser opened this issue Jun 21, 2024 · 0 comments
Open

dump_stack() system call returning only zeros #292

kpgriesser opened this issue Jun 21, 2024 · 0 comments
Assignees

Comments

@kpgriesser
Copy link
Collaborator

Describe the bug
When instrumenting a test with dump_stack() to debug a stack corruption problem it appears that only zeros are output for memory locations which have non-zero data.

To Reproduce
Observed this on the latest rev hash 05c8987 running on MacOS.
The behavior is observed in the test case already available in test/syscalls/mem_dump_syscalls.exe

Expected behavior
stack dump should match values observed in trace has having been written

Trace
The trace shows memory location 0x9fffeb is writing with data here.
RevCPU[cpu:Render:2000]: Core 0; Hart 0; Thread 1; *I 0x1120a:e022 c.sdsp s0, 0(sp) 0x9fffeb<-sp 0x12d48<-s0 [0x9fffeb,8]<-0x0000000000012d48

There are no further writes to this address.

The stack_dump() produces this

RevCPU[cpu:ECALL_dump_stack:35500]: ECALL: dump_stack called
0x00000000009fffeb: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0x00000000009ffffb: 00 00 00 00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants