Re: [linux-audio-dev] shared memory problems

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] shared memory problems
From: Reynald Hoskinson (bean_AT_openface.ca)
Date: Sun Nov 11 2001 - 01:58:14 EET


Here's what I get. I'm running 2.4.5 SMP.
cheers,
Reynald

./overlap
attached a segment at 0x5fe00000 - check /proc/25173/maps
  then press any key

$cat /proc/25173/maps
08048000-08049000 r-xp 00000000 00:12 892111
/.autofs/homes/grads1/reynald/overlap
08049000-0804a000 rw-p 00000000 00:12 892111
/.autofs/homes/grads1/reynald/overlap
40000000-40016000 r-xp 00000000 16:01 46701
/lib/ld-2.2.2.so
40016000-40017000 rw-p 00015000 16:01 46701
/lib/ld-2.2.2.so
40017000-40019000 rw-p 00000000 00:00 0
40027000-4014d000 r-xp 00000000 16:01 232450
/lib/i686/libc-2.2.2.so
4014d000-40153000 rw-p 00125000 16:01 232450
/lib/i686/libc-2.2.2.so
40153000-40157000 rw-p 00000000 00:00 0
5fe00000-5ff00000 rw-s 00000000 00:03 1503297537
/SYSV6b8b4567 (deleted)
bfffe000-c0000000 rwxp fffff000 00:00 0

in attached segment, initial data is -17958194
post-attach, in attached segment, initial data is 0
attached a 2nd segment at 0x5fe00000 - check
/proc/25173/maps then press any key

$cat /proc/25173/maps
08048000-08049000 r-xp 00000000 00:12 892111
/.autofs/homes/grads1/reynald/overlap
08049000-0804a000 rw-p 00000000 00:12 892111
/.autofs/homes/grads1/reynald/overlap
40000000-40016000 r-xp 00000000 16:01 46701
/lib/ld-2.2.2.so
40016000-40017000 rw-p 00015000 16:01 46701
/lib/ld-2.2.2.so
40017000-40019000 rw-p 00000000 00:00 0
40027000-4014d000 r-xp 00000000 16:01 232450
/lib/i686/libc-2.2.2.so
4014d000-40153000 rw-p 00125000 16:01 232450
/lib/i686/libc-2.2.2.so
40153000-40157000 rw-p 00000000 00:00 0
5fe00000-5ff00000 rw-s 00000000 00:03 1503330306
/SYSV327b23c6 (deleted)
bfffe000-c0000000 rwxp fffff000 00:00 0

> upon further investigation, even this appears to be wrong. i'd be
> interested if anyone running a kernel above 2.4.4 or in the 2.2 series
> could run this program on their machine and tell me what it does. on
> my machine, shmat(2) will unattach one attached segment if you call it
> twice with the same address. this seems like a kernel error to
> me. compile with "cc -o overlap overlap.c" ....


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sun Nov 11 2001 - 01:59:58 EET