--- Begin Message ---
Package: dash
Version: 0.5.3-3
Severity: important
Hi dash maintainer,
I just found this bug which is easily reproductible:
% dash -c 'command -v'
zsh: segmentation fault dash -c 'command -v'
Here's the full backtrace:
#0 0xa7efad18 in strcmp () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#1 0xa7eba19d in bsearch () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#2 0x08051c81 in findstring (s=0x0, array=0x8059bc0, nmemb=16) at
mystring.c:208
No locals.
#3 0x08052a03 in findkwd (s=0x0) at parser.c:1591
No locals.
#4 0x0804c29c in describe_command (out=0x805c618, command=0x0,
verbose=0) at exec.c:763
entry = {cmdtype = 1, u = {index = -1342641372, cmd =
0xaff8eb24, func = 0xaff8eb24}}
cmdp = <value optimized out>
ap = <value optimized out>
path = 0xaff8eb24
"/home/jdanjou/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
#5 0x0804b030 in evalbltin (cmd=0x805a8a0, argc=2, argv=0x805eb24) at
eval.c:922
savecmdname = 0x0
savehandler = (struct jmploc * volatile) 0xaff8d210
jmploc = {loc = {{__jmpbuf = {134605604, -1342641372, 2,
-1342648008, -1342648208, 134524898}, __mask_was_saved = 0,
__saved_mask = {__val = {0, 0, 0, 134608728, 0, 0, 1, 134588576,
134533085, 134605588, 134582336, 0, 0, 0, 0, 0,
134596536, 134605596, 134582339, 2952319288, 134538800,
134605588, 0, 2952319256, 134561297, 0, 134605532, 2952319288,
134561797, 134605508, 134605588, 2952319288}}}}}
i = 0
#6 0x0804b6d9 in evalcommand (cmd=0x805eaf4, flags=0) at eval.c:863
i = <value optimized out>
smark = {stackp = 0x805eac0, stacknxt = 0x805eb04 "command",
stacknleft = 440, marknext = 0xaff8d1e0}
argp = (union node *) 0xaff8eb24
arglist = {list = 0x805eb0c, lastp = 0x805eb1c}
varlist = {list = 0x0, lastp = 0xaff8d18c}
argv = <value optimized out>
argc = 2
sp = <value optimized out>
cmdentry = {cmdtype = 2, u = {index = 134588576, cmd =
0x805a8a0, func = 0x805a8a0}}
jp = <value optimized out>
lastarg = 0x0
path = 0xaff8eb24
"/home/jdanjou/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
spclbltin = 0
execcmd = 0
status = 0
nargv = <value optimized out>
#7 0x0804a879 in evaltree (n=0x805eaf4, flags=0) at eval.c:291
checkexit = 0
evalfn = (void (*)(union node *, int)) 0
isor = <value optimized out>
status = 0
#8 0x0804b7e1 in evalstring (s=0xaff8e5bf "command -v", mask=0) at
eval.c:176
n = (union node *) 0x0
smark = {stackp = 0x805eac0, stacknxt = 0x805eac4 "command",
stacknleft = 504, marknext = 0xaff8d2ac}
skip = 0
#9 0x08050d39 in main (argc=3, argv=0xaff8d354) at main.c:174
shinit = <value optimized out>
state = 4
jmploc = {loc = {{__jmpbuf = {-1476669452, 0, -1476477760,
-1342647608, -1342647808, 134548661}, __mask_was_saved = 0,
__saved_mask = {__val = {2818393456, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0,
0, 0, 2952319744, 2818491640, 134515830, 24641422,
16777216, 0, 0, 0, 0, 0, 2952324502, 2817469806, 2818123913,
2818297844, 2952319656, 134518608, 2818297844, 134595688,
2952319672}}}}}
smark = {stackp = 0x805eac0, stacknxt = 0x805eac4 "command",
stacknleft = 504, marknext = 0x0}
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages dash depends on:
ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries
dash recommends no packages.
-- debconf information:
dash/sh: false
--
Julien Danjou
// Λ̊ <[email protected]> http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD
// Life is life. Lalalalala.
signature.asc
Description: Digital signature
--- End Message ---