tag 347695 confirmed thanks You can get the 'segmentation fault' message with the command:
seq 0 10000 | while read line; do /bin/echo $line; done >tmpout And here is the stack trace for Debian's bash3.1-2: #0 0x0807b851 in kill_pid () #1 0x0807bdf7 in wait_for () #2 0x0806dcaf in execute_command_internal () #3 0x0806f9b0 in execute_command () #4 0x080700c0 in execute_command () #5 0x0806ce92 in execute_command_internal () #6 0x0806f7c3 in execute_shell_function () #7 0x0806d91d in execute_command_internal () #8 0x08070459 in execute_command () #9 0x0806d036 in execute_command_internal () #10 0x0806f9b0 in execute_command () #11 0x0805e996 in reader_loop () #12 0x0805e4a6 in main () And for 3.1-2 compiled locally: #0 0x0807a741 in cleanup_dead_jobs () at ../bash/jobs.c:816 816 if (jobs[i] && DEADJOB (i) && IS_NOTIFIED (i)) #0 0x0807a741 in cleanup_dead_jobs () at ../bash/jobs.c:816 #1 0x0807acaa in wait_for (pid=23336) at ../bash/jobs.c:2395 #2 0x0806d468 in execute_command_internal (command=0x81894e8, asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x8189468) at ../bash/execute_cmd.c:707 #3 0x0806f086 in execute_command (command=0x81894e8) at ../bash/execute_cmd.c:350 #4 0x0806f7bf in execute_while_or_until (while_command=0x81895a8, type=0) at ../bash/execute_cmd.c:2318 #5 0x0806c684 in execute_command_internal (command=0x81894c8, asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x8189408) at ../bash/execute_cmd.c:2264 #6 0x0806ee7b in execute_in_subshell (command=0x81894c8, asynchronous=0, pipe_in=Variable "pipe_in" is not available. ) at ../bash/execute_cmd.c:1311 #7 0x0806cff7 in execute_command_internal (command=0x81894c8, asynchronous=0, pipe_in=3, pipe_out=-1, fds_to_close=0x8189408) at ../bash/execute_cmd.c:539 #8 0x0806fb4b in execute_connection (command=0x81894c8, asynchronous=0, pipe_in=3, pipe_out=-1, fds_to_close=0x8189408) at ../bash/execute_cmd.c:1433 #9 0x0806c841 in execute_command_internal (command=0x8189448, asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x8189408) at ../bash/execute_cmd.c:819 On Thu, Jan 12, 2006 at 04:45:53PM +1100, Laird Breyer wrote: > Package: bash > Version: 3.1-1 > Severity: normal > > The following command segfaults at line 4097: > > % seq 0 10000 | while read line; do /bin/echo $line ; done | tail -2 > 4095 > 4096 > > The seq, echo and tail commands are for illustration only, they are > not related to the bug. I originally discovered the bug with completely > different commands, but the above is the simplest illustration of the bug. > > The segfault appears when the input reaches line 4097, and when an > external command is invoked. > If you use the builtin echo, the bug doesn't appear: > > % seq 0 10000 | while read line; do echo $line ; done | tail -2 > 9999 > 10000 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]