[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
segv on bash -c time
From: |
Dylan Alex Simon |
Subject: |
segv on bash -c time |
Date: |
Wed, 27 Oct 2004 21:39:15 -0700 |
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu'
-DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/local/bash-3.0/share/locale'
-DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I/usr/src/bash-3.0/src
-I/usr/src/bash-3.0/src/include -I/usr/src/bash-3.0/src/lib -g -O2
uname output: Linux datura.dylex.net 2.6.9 #5 Sat Oct 23 13:36:23 PDT 2004
x86_64 unknown unknown GNU/Linux
Machine Type: x86_64-unknown-linux-gnu
Bash Version: 3.0
Patch Level: 0
Release Status: release
Description:
Executing the builtin "time" without arguments as the first command in
the shell causes a segfault.
Happens on all systems I've tried: x86_64-linux, i686-linux, and
3.00.13(0)-release i386-portbld-freebsd5.2.1
Here's the stack trace:
#0 0x0000002a95b810b0 in strlen () at _itoa.h:84
#1 0x0000000000422eb4 in execute_command_internal (command=0x621e48,
asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x621e28) at
/usr/src/bash-3.0/src/execute_cmd.c:2705
#2 0x0000000000424c2e in time_command (command=0x621e48,
asynchronous=0, pipe_in=-1073745488, pipe_out=-1073744848,
fds_to_close=0x7fbffff3f0) at /usr/src/bash-3.0/src/execute_cmd.c:1098
#3 0x00000000004230f7 in execute_command_internal (command=0x621e48,
asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x621e28) at
/usr/src/bash-3.0/src/execute_cmd.c:589
#4 0x000000000045402c in parse_and_execute (string=0x621e28 " ",
from_file=0x468271 "-c", flags=4) at
/usr/src/bash-3.0/src/builtins/evalstring.c:267
#5 0x0000000000414081 in run_one_command (command=0x7fbffffb36 "time")
at /usr/src/bash-3.0/src/shell.c:1259
#6 0x0000000000415ccb in main (argc=3, argv=0x7fbffff908,
env=0x7fbffff928) at /usr/src/bash-3.0/src/shell.c:643
Or, if you prefer, on i686:
#0 0x556314a3 in strlen () from /lib/libc.so.6
#1 0x0806afa2 in execute_command_internal (command=0x80efc68,
asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x80efca8) at
/usr/src/bash-3.0/src/execute_cmd.c:2705
#2 0x0806cd66 in time_command (command=0x80efc68, asynchronous=0,
pipe_in=0, pipe_out=0, fds_to_close=0x0) at
/usr/src/bash-3.0/src/execute_cmd.c:1098
#3 0x0806b1cf in execute_command_internal (command=0x80efc68,
asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x80efca8) at
/usr/src/bash-3.0/src/execute_cmd.c:589
#4 0x0809df22 in parse_and_execute (string=0x80efca8 " ",
from_file=0x0, flags=0) at /usr/src/bash-3.0/src/builtins/evalstring.c:267
#5 0x0805bac8 in run_one_command (command=0xffffdb19 "time") at
/usr/src/bash-3.0/src/shell.c:1259
#6 0x0805d949 in main (argc=3, argv=0xffffd9e4, env=0xffffd9f4) at
/usr/src/bash-3.0/src/shell.c:643
Repeat-By:
> bash -c time
or
> bash
bash-3.00$ time
However:
> bash -c 'time ls'
and
> bash -c 'ls ; time'
both work fine.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- segv on bash -c time,
Dylan Alex Simon <=