mmap'ed memory in core files ?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>, <libdc1394-devel@...>
Date: Tuesday, July 1, 2008 - 9:21 am

Hello everybody,

I develop video acquisition software using the video1394 interface.
The images grabbed by the camera and iee1394 bus are kept in kernel
memory and made available to the user program through a mmap call done
in the libdc1394 library :

dma_ring_buffer= mmap(0, vmmap.nb_buffers * vmmap.buf_size,
		PROT_READ|PROT_WRITE,MAP_SHARED, craw->capture.dma_fd, 0);

Sometimes, my program crashes and produces a core file :)  It seems to
me that the core file does not contain the mmap'ed memory and hence
I cannot replay my program with the same image for debugging purpose.

Is it possible to configure the kernel through /proc, or through the mmap
system call to have that mmapped segment in the core file, or do I need
to modify the kernel itself to obtain the behaviour I want ?  If I
need to modify the kernel, can some kind soul provide me some pointers ?

Best regards

Philippe
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
mmap'ed memory in core files ?, Philippe De Muyter, (Tue Jul 1, 9:21 am)
Re: mmap'ed memory in core files ?, Michael Kerrisk, (Tue Jul 1, 2:16 pm)
Re: mmap'ed memory in core files ?, Philippe De Muyter, (Wed Jul 2, 7:01 am)
Re: mmap'ed memory in core files ?, Philippe De Muyter, (Wed Jul 2, 6:50 am)
Re: mmap'ed memory in core files ?, Christoph Hellwig, (Wed Jul 2, 9:30 am)
Re: mmap'ed memory in core files ?, Michael Kerrisk, (Wed Jul 2, 6:58 am)
Re: mmap'ed memory in core files ?, Hidehiro Kawai, (Wed Jul 2, 11:51 pm)
Re: mmap'ed memory in core files ?, Philippe De Muyter, (Thu Jul 3, 5:37 am)
[PATCH] ieee1394 : dump mmapped video1394 buffers in core fi..., Philippe De Muyter, (Thu Jul 3, 12:52 pm)
Re: [PATCH] ieee1394 : dump mmapped video1394 buffers in cor..., Philippe De Muyter, (Fri Jul 4, 4:49 pm)
Re: mmap'ed memory in core files ?, Philippe De Muyter, (Thu Jul 3, 5:22 am)
Re: mmap'ed memory in core files ?, Hidehiro Kawai, (Fri Jul 4, 1:50 am)
Re: mmap'ed memory in core files ?, Philippe De Muyter, (Fri Jul 4, 7:13 am)
Re: mmap'ed memory in core files ?, Stefan Richter, (Fri Jul 4, 2:33 am)
Re: mmap'ed memory in core files ?, Hugh Dickins, (Fri Jul 4, 10:29 am)
Re: mmap'ed memory in core files ?, Philippe De Muyter, (Fri Jul 4, 7:25 am)
Re: mmap'ed memory in core files ?, Philippe De Muyter, (Wed Jul 2, 7:04 am)
Re: mmap'ed memory in core files ?, Stefan Richter, (Wed Jul 2, 8:24 am)
Re: mmap'ed memory in core files ?, Philippe De Muyter, (Wed Jul 2, 9:16 am)
Re: mmap'ed memory in core files ?, Bron Gondwana, (Tue Jul 1, 5:44 pm)
Re: mmap'ed memory in core files ?, Michael Kerrisk, (Wed Jul 2, 1:14 am)