Date: Fri, 07 Aug 2015 07:45:08 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 202152] xargs -PN either crashes or always returns an error Message-ID: <bug-202152-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202152 Bug ID: 202152 Summary: xargs -PN either crashes or always returns an error Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Keywords: regression Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: lifanov@mail.lifanov.com Blocks: 199976 Created attachment 159633 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=159633&action=edit v0 Looking under tests/ directory there're none for -P option, so not surprising based 286289 regressed it. The issue appears to be improper rebase against base r285552. $ getconf CHILD_MAX 100 $ printf 'a\nb\nc\n' | xargs -P0 echo xargs: -P 0: too small # -O2 build (default) $ printf 'a\nb\nc\n' | xargs -P2 echo Segmentation fault # -O0 build $ printf 'a\nb\nc\n' | xargs -P2 echo xargs: invalid number for -P option $ lldb ./xargs --core /path/to/xargs.core (lldb) target create "./xargs" --core "/path/to/xargs.core" Core file '/path/to/xargs.core' (x86_64) was loaded. Process 0 stopped * thread #1: tid = 0, 0x00000000004019aa xargs`main + 570, name = 'xargs', stop reason = signal SIGSEGV frame #0: 0x00000000004019aa xargs`main + 570 -> 0x4019aa <main+570>: cmpb $0x0, (%rax) 0x4019ad <main+573>: jne 0x402426 ; main + 3254 0x4019b3 <main+579>: movslq 0x201d06(%rip), %rcx ; maxprocs 0x4019ba <main+586>: testq %rcx, %rcx (lldb) bt * thread #1: tid = 0, 0x00000000004019aa xargs`main + 570, name = 'xargs', stop reason = signal SIGSEGV * frame #0: 0x00000000004019aa xargs`main + 570 frame #1: 0x000000000040168f xargs`_start + 367 -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202152-8>