Project

General

Profile

Actions

Bug #1350

closed

cpdup core dumps if -pX is specified

Added by sepherosa almost 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hi all,

I use following script to dup world building around my boxes:
http://leaf.dragonflybsd.org/~sephe/cpdup_obj.sh

cpdup reproducibly core dumps in the above script. But if '-p10' is
omitted, cpdup will not core dump.

Best Regards,
sephe

Actions #1

Updated by dillon almost 15 years ago

:Hi all,
:
:I use following script to dup world building around my boxes:
:http://leaf.dragonflybsd.org/~sephe/cpdup_obj.sh
:
:cpdup reproducibly core dumps in the above script. But if '-p10' is
:omitted, cpdup will not core dump.
:
:Best Regards,
:sephe
:
:--
:Live Free or Die

Holy cow it took me a while to track this one down.
libc is not allocating a large enough TCB and the allocation is
getting overflowed. It only applies to static-compiled threaded
programs.
cpdup creates and destroys lots of threads, and cpdup is statically
compiled, so it is pretty much the only program that could possibly
ever actually tickle this bug.
Fix committed!
-Matt
Matthew Dillon
<>
Actions #2

Updated by sepherosa almost 15 years ago

fix committed

Actions

Also available in: Atom PDF