Bug #2132

[TMPFS] User space program will not core dump

Added by sepherosa over 3 years ago. Updated about 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

If a user space program opened a file in the tmpfs, then the program
will not core dump upon abort()

This small program could reproduce this:
http://leaf.dragonflybsd.org/~sephe/test.c

./test /tmpfsroot/file
Abort
[No core dump here, the test.core size is 0]

./test /otherfs/file
Abort (core dumped)
[Core dump is correctly generated]

kernel is @a1fa5d8d095e6aa52c4a9ac5d2ab52b03fee54b9

Best Regards,
sephe

tmpfs_patch.diff Magnifier (990 Bytes) Anonymous, 10/22/2011 04:21 PM

History

#1 Updated by Anonymous about 3 years ago

Can you try this patch? – I added tmpfs_vptofh(). With this change I get the
crash dump after the abort() using your test program.

#2 Updated by sepherosa about 3 years ago

On Sun, Oct 23, 2011 at 12:21 AM, Tim (via DragonFly issue tracker)
<> wrote:
>
> Tim <> added the comment:
>
> Can you try this patch? – I added tmpfs_vptofh(). With this change I get the
> crash dump after the abort() using your test program.

Yeah, the patch works. Committed:
190c11cc003788ace94e0e4872427378627c73af

Thank!

Best Regards,
sephe

Also available in: Atom PDF