tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Porting Corosync/Pacemaker - Help needed with gdb
I suspect that there is something wrong with the stack. According to pmap, and that seems to apply to all processes on NetBSD 6.0 amd64, the corosync process has the following stack regions:
00007f7ff8001000-00007f7ff8001fff 4k 0000000000000000 ---p+ (rwx) 1/0/0 00:00 0 - [ stack ]
00007f7ff8002000-00007f7ff800ffff 56k 0000000000000000 rw-p+ (rwx) 1/0/0 00:00 0 - [ stack ]
00007f7ff8010000-00007f7ffffdffff 130880k 0000000000000000 rw-p+ (rwx) 1/0/0 00:00 0 - [ stack ]
00007f7ffffe0000-00007f7fffffffff 128k 0000000000000000 rw-p- (rwx) 1/0/0 00:00 0 - [ stack ]
Our pointer points to 0x7f7ffffffffe, which resides in the last region - so it should be valid. But when using gdb, I can read the adresses up to 0x7f7ffffffffc while d, e and f are inaccessible:
(gdb) x 0x7f7ffffffffc
0x7f7ffffffffc: 0xfffffe81
(gdb) x 0x7f7ffffffffd
0x7f7ffffffffd: Cannot access memory at address 0x7f7ffffffffd
(gdb) x 0x7f7ffffffffe
0x7f7ffffffffe: Cannot access memory at address 0x7f7ffffffffe
(gdb) x 0x7f7fffffffff
0x7f7fffffffff: Cannot access memory at address 0x7f7fffffffff
It seems that this applies to all processes. Also forwarding this to tech-kern.
I hope someone can help.
Regards,
Stephan
Home |
Main Index |
Thread Index |
Old Index