Package: zsh
Version: 4.2.4-6
Severity: normal
Hi,
Zsh crashes when completing certain filenames on my system. Here's a
bt, please tell me what you would need to reproduce the problem.
(FYI, the filenames are generated from UTF-8-MAC into UTF-8 on an OSX
system, and the crash occurs on the Debian system where I copy the
files with translated filenames. I might have made a broken
translation. Here, the problematic name is probably "Bj�rk", and not
something below it, since albums are named "Debut", "Homogenic" and
"Post")
Program received signal SIGSEGV, Segmentation fault.
0x080b1728 in ztrsub (t=0x81e45e3 "",
s=0x8249001 <Address 0x8249001 out of bounds>) at ../../Src/utils.c:2986
2986 if (*s++ == Meta) {
(gdb) bt
#0 0x080b1728 in ztrsub (t=0x81e45e3 "",
s=0x8249001 <Address 0x8249001 out of bounds>) at ../../Src/utils.c:2986
#1 0x0809c5e8 in pattryrefs (prog=0x81d1898,
string=0x81e45c8 "tmp-music/music-utf-8/Bjo�\203", stringlen=27,
patoffset=0, nump=0x0, begp=0x0, endp=0x0) at ../../Src/pattern.c:1567
#2 0x0809c508 in pattry (prog=0x81d1898,
string=0x81e45c8 "tmp-music/music-utf-8/Bjo�\203")
at ../../Src/pattern.c:1499
#3 0x080cf1dc in do_comp_vars (test=0, na=1, sa=0x40392120 "\213", nb=0,
sb=0x40392120 "\213", mod=1) at ../../../Src/Zle/complete.c:829
#4 0x080cf651 in bin_compset (name=0x40392108 "compset", argv=0xbfffe4e0,
ops=0xbfffe520, func=0) at ../../../Src/Zle/complete.c:939
#5 0x08048c1d in execbuiltin (args=0x403920d0, bn=0x81a3e44)
at ../../Src/builtin.c:439
#6 0x0805fc62 in execcmd (state=0xbfffef40, input=0, output=0, how=18,
last1=2) at ../../Src/exec.c:2435
#7 0x0805c5fa in execpline2 (state=0xbfffef40, pcode=3907, how=18, input=0,
output=0, last1=0) at ../../Src/exec.c:1283
#8 0x0805bb1c in execpline (state=0xbfffef40, slcode=6146, how=18, last1=0)
at ../../Src/exec.c:1069
#9 0x0805b469 in execlist (state=0xbfffef40, dont_change_job=1, exiting=0)
at ../../Src/exec.c:875
#10 0x0807fd2c in execif (state=0xbfffef40, do_exec=0) at ../../Src/loop.c:505
#11 0x0805fa0e in execcmd (state=0xbfffef40, input=0, output=0, how=18,
last1=2) at ../../Src/exec.c:2382
#12 0x0805c5fa in execpline2 (state=0xbfffef40, pcode=3907, how=18, input=0,
output=0, last1=0) at ../../Src/exec.c:1283
#13 0x0805bb1c in execpline (state=0xbfffef40, slcode=47106, how=18, last1=0)
at ../../Src/exec.c:1069
#14 0x0805b469 in execlist (state=0xbfffef40, dont_change_job=1, exiting=0)
at ../../Src/exec.c:875
#15 0x0807fdeb in execif (state=0xbfffef40, do_exec=0) at ../../Src/loop.c:520
#16 0x0805fa0e in execcmd (state=0xbfffef40, input=0, output=0, how=2, last1=2)
at ../../Src/exec.c:2382
#17 0x0805c5fa in execpline2 (state=0xbfffef40, pcode=3843, how=2, input=0,
output=0, last1=0) at ../../Src/exec.c:1283
#18 0x0805bb1c in execpline (state=0xbfffef40, slcode=56322, how=2, last1=0)
at ../../Src/exec.c:1069
#19 0x0805b469 in execlist (state=0xbfffef40, dont_change_job=1, exiting=0)
at ../../Src/exec.c:875
#20 0x0805b16c in execode (p=0x81e30a8, dont_change_job=1, exiting=0)
at ../../Src/exec.c:775
#21 0x08062a71 in runshfunc (prog=0x81e30a8, wrap=0x0,
name=0x40391030 "_main_complete") at ../../Src/exec.c:3705
#22 0x080cfe77 in comp_wrapper (prog=0x81e30a8, w=0x0,
name=0x40391030 "_main_complete") at ../../../Src/Zle/complete.c:1298
#23 0x080629fb in runshfunc (prog=0x81e30a8, wrap=0x81a3f00,
name=0x40391030 "_main_complete") at ../../Src/exec.c:3693
#24 0x08062800 in doshfunc (name=0x81d7458 "_main_complete", prog=0x81e30a8,
doshargs=0x0, flags=0, noreturnval=0) at ../../Src/exec.c:3613
#25 0x080d1eab in callcompfunc (
s=0x40200390 "tmp-music/music-utf-8/Bjo�\203�rk",
fn=0x81d7458 "_main_complete") at ../../../Src/Zle/compcore.c:787
#26 0x080d25fa in makecomplist (
s=0x40200390 "tmp-music/music-utf-8/Bjo�\203�rk", incmd=0, lst=0)
at ../../../Src/Zle/compcore.c:938
#27 0x080d0ac6 in do_completion (dummy=0x81a73f4, dat=0xbffff320)
at ../../../Src/Zle/compcore.c:342
#28 0x080887be in runhookdef (h=0x81a73f4, d=0xbffff320)
at ../../Src/module.c:1865
#29 0x0810d9b3 in docompletion (
s=0x82425e8 "tmp-music/music-utf-8/Bjo�\203�rk", lst=0, incmd=0)
at ../../../Src/Zle/zle_tricky.c:1833
#30 0x0810ac36 in docomplete (lst=0) at ../../../Src/Zle/zle_tricky.c:813
#31 0x08109a4d in expandorcomplete (args=0x81bc6fc)
at ../../../Src/Zle/zle_tricky.c:288
#32 0x0810971d in completecall (args=0x81bc6fc)
at ../../../Src/Zle/zle_tricky.c:182
#33 0x080ff227 in execzlefunc (func=0x81a52a8, args=0x81bc6fc)
#34 0x080fe9e6 in zlecore () at ../../../Src/Zle/zle_main.c:709
#35 0x080fef66 in zleread (lp=0x81bebd8, rp=0x0, flags=3, context=0)
at ../../../Src/Zle/zle_main.c:863
#36 0x08074cce in inputline () at ../../Src/input.c:278
#37 0x08074b5e in ingetc () at ../../Src/input.c:214
#38 0x0806bff8 in ihgetc () at ../../Src/hist.c:241
#39 0x0807bcb7 in gettok () at ../../Src/lex.c:631
#40 0x0807b5c0 in yylex () at ../../Src/lex.c:347
#41 0x08092dfb in parse_event () at ../../Src/parse.c:449
#42 0x08071b0f in loop (toplevel=1, justonce=0) at ../../Src/init.c:128
#43 0x080747d0 in zsh_main (argc=1, argv=0xbffffa04) at ../../Src/init.c:1274
#44 0x08048236 in main (argc=1, argv=0xbffffa04) at ../../Src/main.c:93
Regards,
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages zsh depends on:
ii debconf 1.4.46 Debian configuration management sy
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libncurses5 5.4-4 Shared libraries for terminal hand
ii passwd 1:4.0.3-31sarge1 change and administer password and
-- debconf information excluded
--
Lo�c Minier <[EMAIL PROTECTED]>
"Neutral President: I have no strong feelings one way or the other."