zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh-workers <zsh-workers@sunsite.dk>
Subject: crash in tabcompleting
Date: Mon, 21 Mar 2005 02:57:10 +0100	[thread overview]
Message-ID: <237967ef05032017571464ae4f@mail.gmail.com> (raw)

I'm using latest cvs (as of 20th march) and I'm getting segfaults when
i tabcomplete some files with utf-8 names. I'm not running in a UTF-8
locale though, and I think this worked earlier. I have in one
directory two files called
"大å¡\232æ\204\233 - 大好ã\201\215ã\201\237ã\202\231ã\202\210ã\200\202.avi"
and
"大å¡\232æ\204\233 - é\207\221é­\232è\212±ç\201«.mpg"
(listed with ls --quoting-style=c)

if i try to tabcomplete in that directory, i get the following backtrace:
If i'm leaving some vital information out, please say so and i will do
my best to help.

Program received signal SIGSEGV, Segmentation fault.
ztrsub (t=0x82ac9fe "", s=0x82d9000 <Address 0x82d9000 out of bounds>)
at utils.c:2992
2992		if (*s++ == Meta) {
(gdb) bt
#0  ztrsub (t=0x82ac9fe "", s=0x82d9000 <Address 0x82d9000 out of
bounds>) at utils.c:2992
#1  0x080c5d2a in pattryrefs (prog=0x811e9b8, string=0x442fc700 "",
stringlen=6, patoffset=0,
    nump=0x0, begp=0x0, endp=0x0) at pattern.c:1567
#2  0x080c6420 in pattry (prog=0x0, string=0x0) at pattern.c:1499
#3  0xb7d7bf94 in do_comp_vars (test=186, na=1, sa=0xb7d29928 "\213",
nb=137021950,
    sb=0xb7d29928 "\213", mod=1) at complete.c:829
#4  0xb7d7c255 in bin_compset (name=0xb7d29928 "\213", argv=0x0,
ops=0xbffee4a0, func=0)
    at complete.c:939
#5  0x08053b54 in execbuiltin (args=0xbffee4a0, bn=0xb7d93ba4) at builtin.c:439
#6  0x08070c8e in execcmd (state=0xbfffdec0, input=0, output=0,
how=18, last1=2) at exec.c:2435
#7  0x08071865 in execpline2 (state=0xbfffdec0, pcode=0, how=18,
input=0, output=0, last1=0)
    at exec.c:1283
#8  0x08071e71 in execpline (state=0xbfffdec0, slcode=1143981824,
how=18, last1=0) at exec.c:1069
#9  0x08073833 in execlist (state=0xbfffdec0, dont_change_job=1,
exiting=0) at exec.c:875
#10 0x0809a6f0 in execif (state=0xbfffdec0, do_exec=0) at loop.c:505
#11 0x08070027 in execcmd (state=0xbfffdec0, input=0, output=0,
how=18, last1=2) at exec.c:2382
#12 0x08071865 in execpline2 (state=0xbfffdec0, pcode=0, how=18,
input=0, output=0, last1=0)
    at exec.c:1283
#13 0x08071e71 in execpline (state=0xbfffdec0, slcode=1143981824,
how=18, last1=0) at exec.c:1069
#14 0x08073833 in execlist (state=0xbfffdec0, dont_change_job=1,
exiting=0) at exec.c:875
#15 0x0809a799 in execif (state=0xbfffdec0, do_exec=0) at loop.c:520
#16 0x08070027 in execcmd (state=0xbfffdec0, input=0, output=0, how=2,
last1=2) at exec.c:2382
#17 0x08071865 in execpline2 (state=0xbfffdec0, pcode=0, how=2,
input=0, output=0, last1=0)
    at exec.c:1283
#18 0x08071e71 in execpline (state=0xbfffdec0, slcode=1143981824,
how=2, last1=0) at exec.c:1069
#19 0x08073833 in execlist (state=0xbfffdec0, dont_change_job=1,
exiting=0) at exec.c:875
#20 0x08073b6a in runshfunc (prog=0x82a7c28, wrap=0x82a7c28,
name=0xb7d28030 "_main_complete")
    at exec.c:775
#21 0xb7d7ccba in comp_wrapper (prog=0x0, w=0x0, name=0x0) at complete.c:1298
---Type <return> to continue, or q <return> to quit---
#22 0x08073f6a in doshfunc (name=0x814b918 "_main_complete",
prog=0x82a7c28, doshargs=0xb7d28030,
    flags=0, noreturnval=0) at exec.c:3692
#23 0xb7d842b6 in makecomplist (s=0x8151d70 "大å¡\203ºæ\203¤\203» -
", incmd=0, lst=0)
    at compcore.c:787
#24 0xb7d85368 in do_completion (dummy=0xb7dc7e74, dat=0x442fc700) at
compcore.c:342
#25 0xb7db7ef4 in docomplete (lst=0) at zle_tricky.c:1845
#26 0xb7db94cf in completeword (args=0x0) at zle_tricky.c:208
#27 0xb7db3a09 in completecall (args=0x442fc700) at zle_tricky.c:184
#28 0xb7da7042 in execzlefunc (func=0xb7dc5330, args=0xb7dc817c) at
zle_main.c:1053
#29 0xb7da7868 in zlecore () at zle_main.c:828
#30 0xb7da829a in zleread (lp=0x810ab90, rp=0x0, flags=0, context=0)
at zle_main.c:982
#31 0x0808ac74 in inputline () at input.c:278
#32 0x0808b31a in ingetc () at input.c:214
#33 0x08081777 in ihgetc () at hist.c:240
#34 0x08097126 in gettok () at lex.c:627
#35 0x08098e86 in yylex () at lex.c:343
#36 0x080bba5a in parse_event () at parse.c:449
#37 0x08087c38 in loop (toplevel=1, justonce=0) at init.c:128
#38 0x0808a854 in zsh_main (argc=1, argv=0xbfffeca4) at init.c:1282
#39 0x080534ce in main (argc=0, argv=0x0) at main.c:93

-- 
Mikael Magnusson


             reply	other threads:[~2005-03-21  1:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-21  1:57 Mikael Magnusson [this message]
2005-03-21 11:06 ` Peter Stephenson
     [not found]   ` <237967ef05032104425384f32b@mail.gmail.com>
2005-03-21 17:12     ` Peter Stephenson
2005-03-21 18:42       ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=237967ef05032017571464ae4f@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).