shelljs icon indicating copy to clipboard operation
shelljs copied to clipboard

shx cp -rn segfaults on existing files sometimes

Open mikey0000 opened this issue 4 years ago • 3 comments

Node version (or tell us if you're using electron or some other framework):

12.22

ShellJS version (the most recent version/Github branch you see the bug on):

shx 0.3.3

Operating system:

Ubuntu

Description of the bug:

shx cp -rn sometimes segfaults with error 139 when files exist.

Example ShellJS command to reproduce the error:

shx cp -rn somefolder/thing tosomewhere/ //and files exist

mikey0000 avatar Sep 28 '21 09:09 mikey0000

Can you include the error output?

nfischer avatar Dec 08 '21 04:12 nfischer

If you can provide commands to generate test folders, that would be helpful too.

nfischer avatar Dec 08 '21 04:12 nfischer

The command shx cp -rn src/taxi/schemas dist/taxi/ schemas is a folder with x files in it. just create some dummy files using touch sorry I can't spend much time creating a test case for you.

mikey0000 avatar Dec 23 '21 00:12 mikey0000