On Tue, 3 Jun 2008 12:58:53 +0200, "H.Merijn Brand" <h.m.brand@xs4all.nl> wrote: > On Tue, 3 Jun 2008 11:04:00 +0200, Torsten Foertsch > <torsten.foertsch@gmx.net> wrote: > > > Hi, > > > > I have recently got a bug report about Linux::Smaps. The poster said it'd > > report 2 [vdso] areas and that it can be cured if /proc/self/smaps is opened > > with '<:stdio'. Later on he also found the behavior depends on the kernel > > version, 2.6.25.3 shows 2 vdsos 2.6.23.1-21 only one. > > > > Since I don't have any of these kernels I am asking for help. To all of my > > knowledge multiple vdsos is nonsense. But is it a kernel bug or a bug in the > > perlio layer? > > > > Could you please run the following command on various combinations of linux > > kernel and perlio? > > > > PERLIO="stdio" perl -pe 'BEGIN {my $smaps="/proc/$$/smaps"; > > open STDIN, "<", $smaps or die "$!\n"; system "cat -n $smaps"} > > $_="$.\t$_"' | grep vdso > > > > It should print 2 almost identical lines. If there are more please report. > > > > Here an example: > > > > $ PERLIO="stdio" perl -pe 'BEGIN {my $smaps="/proc/$$/smaps"; open STDIN, "<", $smaps or die "$!\n"; system "cat -n $smaps"} $_="$.\t$_"'|grep vdso > > 321 ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] > > 321 ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] > > > > Keep in mind that /proc/$$/smaps exists only for kernels >=2.6.14. > > 2.6.18.8-0.7-default #1 SMP Tue Oct 2 17:21:08 UTC 2007 i686 i686 i386 GNU/Linux > v5.8.8-dor built for x86_64-linux > $ env PERLIO=stdio perl -pe 'BEGIN {my $smaps="/proc/$$/smaps"; > open STDIN, "<", $smaps or die "$!\n"; system "cat -n $smaps"} > $_="$.\t$_"'|grep vdso perlio 361 ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vdso] 361 ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vdso] unix 361 ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vdso] 361 ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vdso] > 2.6.22.17-0.1-default #1 SMP 2008/02/10 20:01:04 UTC i686 i686 i386 > GNU/Linux > v5.10.0 built for i686-linux-64int perlio 345 ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] 345 ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] unix 345 ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] 345 ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] > 2.6.18.8-0.7-default #1 SMP Tue Oct 2 17:21:08 UTC 2007 i686 i686 i386 GNU/Linux > v5.8.8-dor built for i686-linux-64int perlio 246 b7f93000-b7f94000 r-xp b7f93000 00:00 0 [vdso] 246 b7f93000-b7f94000 r-xp b7f93000 00:00 0 [vdso] unix 246 b7ee9000-b7eea000 r-xp b7ee9000 00:00 0 [vdso] 246 b7ee9000-b7eea000 r-xp b7ee9000 00:00 0 [vdso] > 2.6.16.54-0.2.5-smp #1 SMP Mon Jan 21 13:29:51 UTC 2008 x86_64 x86_64 x86_64 GNU/Linux > v5.8.8-dor built for x86_64-linux perlio 288 ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vdso] unix 288 ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vdso] -- H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/) using & porting perl 5.6.2, 5.8.x, 5.10.x on HP-UX 10.20, 11.00, 11.11, & 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin. http://qa.perl.org http://mirrors.develooper.com/hpux/ http://www.test-smoke.org http://www.goldmark.org/jeff/stupid-disclaimers/Thread Previous