Created attachment 1637 [details] libunwind 20070224 straced.
Created attachment 1638 [details] libunwind 0.98.5 straced.
It seems as though this bug has to do with caching. The logs show that reads are done when no ptrace-continue has occurred and the maps should still be valid. <cagney> ptrace(PTRACE_PEEKUSER, 24688, 4*EIP, [0x56c402]) = 0 <cagney> open("/proc/24688/maps", O_RDONLY) = 3 <cagney> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f15000 <cagney> read(3, "0056c000-0056d000 r-xp 0056c000 "..., 4096) = 4060 <cagney> read(3, "b7fb6000-b7fb7000 -w-p b7fb6000 "..., 4096) = 1574 <cagney> read(3, "", 4096) = 0 <cagney> close(3) = 0 <cagney> munmap(0xb7f15000, 4096) = 0 <cagney> rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0 <cagney> open("/proc/24688/maps", O_RDONLY) = 3 <cagney> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f15000 <cagney> read(3, "0056c000-0056d000 r-xp 0056c000 "..., 4096) = 4060 <cagney> read(3, "b0aec000-b0aed000 -w-p b0aec000 "..., 4096) = 4059
upstream bug: https://savannah.nongnu.org/bugs/index.php?19365