Re: mmap() problem

2010-07-28 Thread Poul-Henning Kamp
In message <201007281056.43100.hsela...@c2i.net>, Hans Petter Selasky writes: >When is it safe to free memory which has been mmapped to a user-space >application? After close() or during close() or before close() or when the >process/thread terminates? Assuming you mean memory activated via dev

Re: mmap() problem

2010-07-28 Thread Jille Timmermans
From close(3): The close(2) system call does not unmap pages, see munmap(2) for further information. The pages can be freed when the process terminates. -- Jille Op 28-7-2010 10:56, Hans Petter Selasky schreef: Hi, When is it safe to free memory which has been mmapped to a user-spac

Re: mmap problem when resuming while mpg123 is playing

2000-01-23 Thread Matthew Dillon
:The following error shows up in my messages log when mpg123 is playing :songs off a mounted CD ROM when the laptop is suspended and resumed. : :Jan 23 11:21:04 henny /kernel: resumed from suspended mode (slept :00:36:53) :Jan 23 11:21:04 henny /kernel: ata0: resetting devices .. done :Jan 23 11:2

Re: Mmap problem in -current?

1999-06-06 Thread Brian Feldman
On 6 Jun 1999, Joel Ray Holveck wrote: > >> I just noticed (kernel&world from friday) that locate always cores > >> dump: > >> $ locate xxx > >> Segmentation fault (core dumped) > >> The problem disappears if I recompile locate without the -DMMAP > >> option. > > Running on th

Re: Mmap problem in -current?

1999-06-05 Thread Joel Ray Holveck
>> I just noticed (kernel&world from friday) that locate always cores >> dump: >> $ locate xxx >> Segmentation fault (core dumped) >> The problem disappears if I recompile locate without the -DMMAP >> option. > Running on the very latest current, it does not work for me. By 'i

Re: Mmap problem in -current?

1999-06-05 Thread Brian Feldman
On Sun, 6 Jun 1999, Jean-Marc Zucconi wrote: > I just noticed (kernel&world from friday) that locate always cores > dump: > $ locate xxx > Segmentation fault (core dumped) > $ gdb -c locate.core /usr/bin/locate > Program terminated with signal 11, Segmentation fault. > (gdb)