* Re: Bug#251378: zsh: segfaults when globing includes too many files [not found] ` <20040706184752.GC1881@alcor.net> @ 2004-07-06 18:59 ` Clint Adams 2004-07-06 19:22 ` Clint Adams 2004-07-07 11:01 ` Peter Stephenson 0 siblings, 2 replies; 9+ messages in thread From: Clint Adams @ 2004-07-06 18:59 UTC (permalink / raw) To: zsh-workers; +Cc: Matt Zimmerman, 251378-forwarded, 251378-submitter I can't reproduce this yet, but some people are experiencing segfaults when globbing in /usr/share/doc. The source shown below includes 19920. This also happens with HEAD, I think. > Starting program: /tmp/zsh-4.2.0/obj/Src/zsh > Detaching after fork from child process 20721. > Detaching after fork from child process 20722. > Detaching after fork from child process 20727. > mizar% pwd > /usr/share/doc > mizar% echo */NEWS.Debian.gz > > Program received signal SIGSEGV, Segmentation fault. > 0x08083bf5 in zhalloc (size=24) at ../../Src/mem.c:353 > 353 ? fheap : heaps); > (gdb) bt full > #0 0x08083bf5 in zhalloc (size=24) at ../../Src/mem.c:353 > h = 0x0 > n = 134760347 > #1 0x0809e1e3 in dyncat (s1=0x80f8c68 "libxaw7/", > s2=0x4033b284 "NEWS.Debian.gz") at ../../Src/string.c:100 > #2 0x080697ac in insert (s=0x4033b284 "NEWS.Debian.gz", checked=0) > at ../../Src/glob.c:354 > mode = 0 > buf = {st_dev = 18446743983515238399, __pad1 = 0, __st_ino = 0, > st_mode = 0, st_nlink = 0, st_uid = 0, st_gid = 0, st_rdev = 0, __pad2 = 0, > st_size = 580668550020314216, st_blksize = 135197432, > st_blocks = 578791539786904216, st_atim = {tv_sec = 0, tv_nsec = 16773484}, > st_mtim = {tv_sec = 1074462924, tv_nsec = -1073745600}, st_ctim = { > tv_sec = 1073773132, tv_nsec = 1074516176}, st_ino = 134548048} > buf2 = {st_dev = 18446744070491746320, __pad1 = 61560, > __st_ino = 134757276, st_mode = 0, st_nlink = 32768, st_uid = 3, > st_gid = 34, st_rdev = 4294967295, __pad2 = 0, > st_size = 4626375562493952255, st_blksize = 1077162000, > st_blocks = 578789229094498904, st_atim = {tv_sec = 1077161984, > tv_nsec = 16384}, st_mtim = {tv_sec = 15704, tv_nsec = 0}, st_ctim = { > tv_sec = 0, tv_nsec = 180}, st_ino = 544426120} > bp = (struct stat *) 0x40343000 > news = 0x4033b284 "NEWS.Debian.gz" > statted = 1 > #3 0x08069bae in scanner (q=0x4033b298) at ../../Src/glob.c:514 > err = 23 > str = 0x4033b284 "NEWS.Debian.gz" > l = -16777216 > p = 0x4033b260 > closure = 0 > pbcwdsav = 0 > errssofar = 0 > ds = {dirfd = -1, level = -1, dirname = 0x0, dev = 0, ino = 0} > #4 0x08069f63 in scanner (q=0x4033b250) at ../../Src/glob.c:615 > oppos = 0 > fn = 0x40347037 "libart2" > dirs = 1 > lock = (DIR *) 0x80f9c70 > subdirs = 0x40347010 "libxft2" > subdirlen = 27779 > p = 0x4033b220 > closure = 0 > pbcwdsav = 0 > errssofar = 0 > ds = {dirfd = -1, level = -1, dirname = 0x0, dev = 0, ino = 0} > #5 0x0806b1e4 in zglob (list=0x4033b1c8, np=0x4033b250, nountok=0) > at ../../Src/glob.c:1575 > qfirst = (struct qual *) 0x17 > qlast = (struct qual *) 0x404 > islast = 16 > qorhead = (struct qual *) 0x8 > qortail = (struct qual *) 0x0 > newquals = (struct qual *) 0x0 > s = 0x40386798 "\234�\002" > data = 1077129808 > sdata = 0x0 > newcolonmod = 0x0 > func = (int (*)(char *, Statptr, off_t, char *)) 0x10 > sense = 0 > paren = 1077161984 > qo = (struct qual *) 0x0 > qn = (struct qual *) 0x0 > ql = (struct qual *) 0x0 > node = 0x4033b1d0 > str = 0x4033b208 "\207/NEWS.Debian.gz" > q = 0x4033b250 > ostr = 0x4033b1f0 "\207/NEWS.Debian.gz" > first = 0 > end = -1 > saved = {gd_pathpos = 0, gd_pathbuf = 0x0, gd_matchsz = 0, > gd_matchct = 0, gd_pathbufsz = 0, gd_pathbufcwd = 0, gd_matchbuf = 0x0, > gd_matchptr = 0x0, gd_colonmod = 0x0, gd_quals = 0x0, gd_qualct = 0, > gd_qualorct = 0, gd_range = 0, gd_amc = 0, gd_units = 0, gd_gf_nullglob = 0, > gd_gf_markdirs = 0, gd_gf_noglobdots = 0, gd_gf_listtypes = 0, > gd_gf_numsort = 0, gd_gf_follow = 0, gd_gf_sorts = 0, gd_gf_nsorts = 0, > gd_gf_sortlist = {0 <repeats 11 times>}, gd_glob_pre = 0x0, > gd_glob_suf = 0x0} > nobareglob = 0 > #6 0x0809ee32 in globlist (list=0x4033b1c8, nountok=0) > at ../../Src/subst.c:243 > node = 0x17 > next = 0x0 > #7 0x08065136 in execcmd (state=0xbffff730, input=0, output=0, how=18, > last1=2) at ../../Src/exec.c:2163 > pid = -1073744568 > synch = {-1073744384, 18} > dummy = -1 '�' > hn = 0x80b70b0 > node = 0x0 > fn = 0x0 > mfds = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0} > text = 0x80c2aa0 "echo */NEWS.Debian.gz" > save = {-2, -2, -2, -2, -2, -2, -2, -2, -2, -2} > fil = 1077129672 > dfil = 0 > is_cursh = 1077129672 > type = 6 > do_exec = 0 > i = 0 > htok = 1 > nullexec = 0 > assign = 0 > forked = 0 > is_shfunc = 0 > is_builtin = 1 > is_exec = 0 > use_defpath = 0 > cflags = 0 > checked = 1077129672 > oautocont = 0 > redir = 0x0 > code = 4278190080 > beg = 0x4033b19c > varspc = 0x0 > oxtrerr = (FILE *) 0x401dce80 > #8 0x08062efd in execpline2 (state=0xbffff730, pcode=195, how=18, input=0, > output=0, last1=0) at ../../Src/exec.c:1276 > pid = 195 > pipes = {1, 1075723964} > #9 0x08062591 in execpline (state=0xbffff730, slcode=4098, how=18, last1=0) > at ../../Src/exec.c:1066 > ipipe = {0, 0} > opipe = {0, 0} > pj = 0 > newjob = 1 > old_simple_pline = 0 > slflags = 0 > code = 195 > lastwj = 0 > lpforked = 0 > #10 0x08062300 in execlist (state=0xbffff730, dont_change_job=0, exiting=0) > at ../../Src/exec.c:872 > errreturn = -16777216 > donetrap = 0 > next = 0x4033b1a8 > code = 1077161984 > ret = 0 > cj = 0 > csp = 0 > ltype = 18 > old_pline_level = 0 > old_list_pipe = 0 > oldlineno = 3 > oldnoerrexit = 0 > #11 0x08061dbc in execode (p=0x4033b168, dont_change_job=23, exiting=23) > at ../../Src/exec.c:773 > s = {prog = 0x4033b168, pc = 0x4033b1a8, strs = 0x4033b1ac "echo"} > #12 0x080747f6 in loop (toplevel=1, justonce=0) at ../../Src/init.c:165 > toksav = 1 > preprog = 0x80cc760 > prog = 0x4033b168 > #13 0x080770a2 in zsh_main (argc=1, argv=0xbffff854) at ../../Src/init.c:1274 > arg0 = 0x3e8 <Address 0x3e8 out of bounds> > t = (char **) 0x3e8 > t0 = -16777216 > #14 0x080522fb in main (argc=23, argv=0x17) at ../../Src/main.c:37 > No locals. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug#251378: zsh: segfaults when globing includes too many files 2004-07-06 18:59 ` Bug#251378: zsh: segfaults when globing includes too many files Clint Adams @ 2004-07-06 19:22 ` Clint Adams 2004-07-13 11:06 ` Peter Stephenson 2004-07-07 11:01 ` Peter Stephenson 1 sibling, 1 reply; 9+ messages in thread From: Clint Adams @ 2004-07-06 19:22 UTC (permalink / raw) To: zsh-workers; +Cc: Matt Zimmerman, 251378, 251378-submitter > I can't reproduce this yet, but some people are experiencing segfaults > when globbing in /usr/share/doc. The source shown below includes 19920. > This also happens with HEAD, I think. Also this. So h->next is getting corrupted somewhere? --Fwd-- (gdb) list 348 #endif 349 350 /* find a heap with enough free space */ 351 352 for (h = ((fheap && ARENA_SIZEOF(fheap) >= (size + fheap->used)) 353 ? fheap : heaps); 354 h; h = h->next) { 355 if (ARENA_SIZEOF(h) >= (n = size + h->used)) { 356 void *ret; 357 (gdb) print fheap $8 = 0x40343000 (gdb) print fheap->used Cannot access memory at address 0x40343008 (gdb) --Fwd-- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug#251378: zsh: segfaults when globing includes too many files 2004-07-06 19:22 ` Clint Adams @ 2004-07-13 11:06 ` Peter Stephenson 2004-07-16 17:56 ` Clint Adams 0 siblings, 1 reply; 9+ messages in thread From: Peter Stephenson @ 2004-07-13 11:06 UTC (permalink / raw) To: zsh-workers, 251378 Clint Adams wrote: > > I can't reproduce this yet, but some people are experiencing segfaults > > when globbing in /usr/share/doc. The source shown below includes 19920. > > This also happens with HEAD, I think. > > Also this. So h->next is getting corrupted somewhere? I just tried a huge `print -l /usr/**/*' where zsh swallowed up 40 Mbytes. This worked and the shell successfully freed the memory afterwards. So it doesn't look this is simple problem with the heap allocator. I don't have zsh's malloc compiled in (as it screws up valgrind), so that might be a problem. Otherwise, it may be triggering some unpleasant corner case. Adding more detailed debugging checks to mem.c might help for that. -- Peter Stephenson <pws@csr.com> Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug#251378: zsh: segfaults when globing includes too many files 2004-07-13 11:06 ` Peter Stephenson @ 2004-07-16 17:56 ` Clint Adams 2004-07-16 19:46 ` Clint Adams 2004-07-17 19:20 ` PATCH: " Peter Stephenson 0 siblings, 2 replies; 9+ messages in thread From: Clint Adams @ 2004-07-16 17:56 UTC (permalink / raw) To: zsh-workers; +Cc: 251378, 259768-forwarded, 259768-submitter, mdz [-- Attachment #1: Type: text/plain, Size: 323 bytes --] > I just tried a huge `print -l /usr/**/*' where zsh swallowed up 40 Mbytes. > This worked and the shell successfully freed the memory afterwards. So > it doesn't look this is simple problem with the heap allocator. Attached is a script from Peter Palfrader which seems to trigger the same type of segfault in zhalloc(). [-- Attachment #2: zshsegv --] [-- Type: text/plain, Size: 25203 bytes --] #!/bin/zsh # setup phase DIR=zsh-segfault-$$ mkdir $DIR cd $DIR for i in \ .Maillists.Debian.channel-cvs.2004.01 \ .Maillists.Debian.channel-cvs.2004.02 \ .Maillists.Debian.channel-cvs.2004.03 \ .Maillists.Debian.channel-cvs.2004.04 \ .Maillists.Debian.channel-cvs.2004.05 \ .Maillists.Debian.channel-cvs.2004.06 \ .Maillists.Debian.channel.2004.01 \ .Maillists.Debian.channel.2004.03 \ .Maillists.Debian.channel.2004.04 \ .Maillists.Debian.debian-amd64.2004.01 \ .Maillists.Debian.debian-amd64.2004.02 \ .Maillists.Debian.debian-amd64.2004.03 \ .Maillists.Debian.debian-amd64.2004.04 \ .Maillists.Debian.debian-amd64.2004.05 \ .Maillists.Debian.debian-amd64.2004.06 \ .Maillists.Debian.debian-arm.2004.01 \ .Maillists.Debian.debian-arm.2004.02 \ .Maillists.Debian.debian-arm.2004.03 \ .Maillists.Debian.debian-arm.2004.04 \ .Maillists.Debian.debian-arm.2004.05 \ .Maillists.Debian.debian-arm.2004.06 \ .Maillists.Debian.debian-at.2004.01 \ .Maillists.Debian.debian-at.2004.02 \ .Maillists.Debian.debian-at.2004.03 \ .Maillists.Debian.debian-at.2004.04 \ .Maillists.Debian.debian-at.2004.05 \ .Maillists.Debian.debian-bad.2004.01 \ .Maillists.Debian.debian-bad.2004.02 \ .Maillists.Debian.debian-bad.2004.03 \ .Maillists.Debian.debian-bad.2004.04 \ .Maillists.Debian.debian-bad.2004.05 \ .Maillists.Debian.debian-bad.2004.06 \ .Maillists.Debian.debian-boot.2004.01 \ .Maillists.Debian.debian-boot.2004.02 \ .Maillists.Debian.debian-boot.2004.03 \ .Maillists.Debian.debian-boot.2004.04 \ .Maillists.Debian.debian-boot.2004.05 \ .Maillists.Debian.debian-boot.2004.06 \ .Maillists.Debian.debian-bsd.2004.01 \ .Maillists.Debian.debian-bsd.2004.02 \ .Maillists.Debian.debian-bsd.2004.03 \ .Maillists.Debian.debian-bsd.2004.04 \ .Maillists.Debian.debian-bsd.2004.05 \ .Maillists.Debian.debian-bsd.2004.06 \ .Maillists.Debian.debian-bugs-closed.2004.01 \ .Maillists.Debian.debian-bugs-closed.2004.02 \ .Maillists.Debian.debian-bugs-closed.2004.03 \ .Maillists.Debian.debian-bugs-closed.2004.04 \ .Maillists.Debian.debian-bugs-closed.2004.05 \ .Maillists.Debian.debian-bugs-closed.2004.06 \ .Maillists.Debian.debian-bugs-dist.2004.01 \ .Maillists.Debian.debian-bugs-dist.2004.02 \ .Maillists.Debian.debian-bugs-dist.2004.03 \ .Maillists.Debian.debian-bugs-dist.2004.04 \ .Maillists.Debian.debian-bugs-dist.2004.05 \ .Maillists.Debian.debian-bugs-dist.2004.06 \ .Maillists.Debian.debian-bugs-forwarded.2004.01 \ .Maillists.Debian.debian-bugs-forwarded.2004.02 \ .Maillists.Debian.debian-bugs-forwarded.2004.03 \ .Maillists.Debian.debian-bugs-forwarded.2004.04 \ .Maillists.Debian.debian-bugs-forwarded.2004.05 \ .Maillists.Debian.debian-bugs-forwarded.2004.06 \ .Maillists.Debian.debian-cd.2004.01 \ .Maillists.Debian.debian-cd.2004.02 \ .Maillists.Debian.debian-cd.2004.03 \ .Maillists.Debian.debian-cd.2004.04 \ .Maillists.Debian.debian-cd.2004.05 \ .Maillists.Debian.debian-cd.2004.06 \ .Maillists.Debian.debian-changes.2004.01 \ .Maillists.Debian.debian-changes.2004.02 \ .Maillists.Debian.debian-changes.2004.03 \ .Maillists.Debian.debian-changes.2004.04 \ .Maillists.Debian.debian-changes.2004.05 \ .Maillists.Debian.debian-changes.2004.06 \ .Maillists.Debian.debian-ctte.2004.03 \ .Maillists.Debian.debian-ctte.2004.04 \ .Maillists.Debian.debian-ctte.2004.05 \ .Maillists.Debian.debian-ctte.2004.06 \ .Maillists.Debian.debian-curiosa.2004.01 \ .Maillists.Debian.debian-curiosa.2004.02 \ .Maillists.Debian.debian-curiosa.2004.03 \ .Maillists.Debian.debian-curiosa.2004.04 \ .Maillists.Debian.debian-curiosa.2004.05 \ .Maillists.Debian.debian-curiosa.2004.06 \ .Maillists.Debian.debian-debbugs.2004.01 \ .Maillists.Debian.debian-debbugs.2004.02 \ .Maillists.Debian.debian-debbugs.2004.03 \ .Maillists.Debian.debian-debbugs.2004.04 \ .Maillists.Debian.debian-debbugs.2004.05 \ .Maillists.Debian.debian-debbugs.2004.06 \ .Maillists.Debian.debian-devel-announce.2004.01 \ .Maillists.Debian.debian-devel-announce.2004.02 \ .Maillists.Debian.debian-devel-announce.2004.03 \ .Maillists.Debian.debian-devel-announce.2004.04 \ .Maillists.Debian.debian-devel-announce.2004.05 \ .Maillists.Debian.debian-devel-announce.2004.06 \ .Maillists.Debian.debian-devel-changes.2004.01 \ .Maillists.Debian.debian-devel-changes.2004.02 \ .Maillists.Debian.debian-devel-changes.2004.03 \ .Maillists.Debian.debian-devel-changes.2004.04 \ .Maillists.Debian.debian-devel-changes.2004.05 \ .Maillists.Debian.debian-devel-changes.2004.06 \ .Maillists.Debian.debian-devel.2004.01 \ .Maillists.Debian.debian-devel.2004.02 \ .Maillists.Debian.debian-devel.2004.03 \ .Maillists.Debian.debian-devel.2004.04 \ .Maillists.Debian.debian-devel.2004.05 \ .Maillists.Debian.debian-devel.2004.06 \ .Maillists.Debian.debian-doc.2004.01 \ .Maillists.Debian.debian-doc.2004.02 \ .Maillists.Debian.debian-doc.2004.03 \ .Maillists.Debian.debian-doc.2004.04 \ .Maillists.Debian.debian-doc.2004.05 \ .Maillists.Debian.debian-doc.2004.06 \ .Maillists.Debian.debian-dpkg.2004.01 \ .Maillists.Debian.debian-dpkg.2004.02 \ .Maillists.Debian.debian-dpkg.2004.03 \ .Maillists.Debian.debian-dpkg.2004.04 \ .Maillists.Debian.debian-dpkg.2004.05 \ .Maillists.Debian.debian-dpkg.2004.06 \ .Maillists.Debian.debian-edu.2004.01 \ .Maillists.Debian.debian-edu.2004.02 \ .Maillists.Debian.debian-edu.2004.03 \ .Maillists.Debian.debian-edu.2004.04 \ .Maillists.Debian.debian-edu.2004.05 \ .Maillists.Debian.debian-edu.2004.06 \ .Maillists.Debian.debian-email.2004.01 \ .Maillists.Debian.debian-email.2004.02 \ .Maillists.Debian.debian-email.2004.03 \ .Maillists.Debian.debian-email.2004.04 \ .Maillists.Debian.debian-email.2004.06 \ .Maillists.Debian.debian-events-eu.2004.01 \ .Maillists.Debian.debian-events-eu.2004.02 \ .Maillists.Debian.debian-events-eu.2004.03 \ .Maillists.Debian.debian-events-eu.2004.04 \ .Maillists.Debian.debian-events-eu.2004.05 \ .Maillists.Debian.debian-events-eu.2004.06 \ .Maillists.Debian.debian-events-na.2004.01 \ .Maillists.Debian.debian-events-na.2004.02 \ .Maillists.Debian.debian-events-na.2004.03 \ .Maillists.Debian.debian-events-na.2004.05 \ .Maillists.Debian.debian-events-na.2004.06 \ .Maillists.Debian.debian-firewall.2004.01 \ .Maillists.Debian.debian-firewall.2004.02 \ .Maillists.Debian.debian-firewall.2004.03 \ .Maillists.Debian.debian-firewall.2004.04 \ .Maillists.Debian.debian-firewall.2004.05 \ .Maillists.Debian.debian-firewall.2004.06 \ .Maillists.Debian.debian-gcc.2004.01 \ .Maillists.Debian.debian-gcc.2004.02 \ .Maillists.Debian.debian-gcc.2004.03 \ .Maillists.Debian.debian-gcc.2004.04 \ .Maillists.Debian.debian-gcc.2004.05 \ .Maillists.Debian.debian-gcc.2004.06 \ .Maillists.Debian.debian-glibc.2004.01 \ .Maillists.Debian.debian-glibc.2004.02 \ .Maillists.Debian.debian-glibc.2004.03 \ .Maillists.Debian.debian-glibc.2004.04 \ .Maillists.Debian.debian-glibc.2004.05 \ .Maillists.Debian.debian-glibc.2004.06 \ .Maillists.Debian.debian-gtk-gnome.2004.01 \ .Maillists.Debian.debian-gtk-gnome.2004.02 \ .Maillists.Debian.debian-gtk-gnome.2004.03 \ .Maillists.Debian.debian-gtk-gnome.2004.04 \ .Maillists.Debian.debian-gtk-gnome.2004.05 \ .Maillists.Debian.debian-gtk-gnome.2004.06 \ .Maillists.Debian.debian-handheld.2004.01 \ .Maillists.Debian.debian-handheld.2004.02 \ .Maillists.Debian.debian-handheld.2004.03 \ .Maillists.Debian.debian-handheld.2004.04 \ .Maillists.Debian.debian-handheld.2004.05 \ .Maillists.Debian.debian-handheld.2004.06 \ .Maillists.Debian.debian-hurd.2004.01 \ .Maillists.Debian.debian-hurd.2004.02 \ .Maillists.Debian.debian-hurd.2004.03 \ .Maillists.Debian.debian-hurd.2004.04 \ .Maillists.Debian.debian-hurd.2004.05 \ .Maillists.Debian.debian-hurd.2004.06 \ .Maillists.Debian.debian-ipv6.2004.01 \ .Maillists.Debian.debian-ipv6.2004.02 \ .Maillists.Debian.debian-ipv6.2004.03 \ .Maillists.Debian.debian-ipv6.2004.04 \ .Maillists.Debian.debian-ipv6.2004.05 \ .Maillists.Debian.debian-ipv6.2004.06 \ .Maillists.Debian.debian-isp.2004.01 \ .Maillists.Debian.debian-isp.2004.02 \ .Maillists.Debian.debian-isp.2004.03 \ .Maillists.Debian.debian-isp.2004.04 \ .Maillists.Debian.debian-isp.2004.05 \ .Maillists.Debian.debian-isp.2004.06 \ .Maillists.Debian.debian-java.2004.01 \ .Maillists.Debian.debian-java.2004.02 \ .Maillists.Debian.debian-java.2004.03 \ .Maillists.Debian.debian-java.2004.04 \ .Maillists.Debian.debian-jr.2004.01 \ .Maillists.Debian.debian-jr.2004.02 \ .Maillists.Debian.debian-jr.2004.03 \ .Maillists.Debian.debian-jr.2004.04 \ .Maillists.Debian.debian-jr.2004.05 \ .Maillists.Debian.debian-jr.2004.06 \ .Maillists.Debian.debian-kde.2004.01 \ .Maillists.Debian.debian-kde.2004.02 \ .Maillists.Debian.debian-kde.2004.03 \ .Maillists.Debian.debian-kde.2004.04 \ .Maillists.Debian.debian-kde.2004.05 \ .Maillists.Debian.debian-kde.2004.06 \ .Maillists.Debian.debian-laptop.2004.01 \ .Maillists.Debian.debian-laptop.2004.02 \ .Maillists.Debian.debian-laptop.2004.03 \ .Maillists.Debian.debian-laptop.2004.04 \ .Maillists.Debian.debian-laptop.2004.05 \ .Maillists.Debian.debian-laptop.2004.06 \ .Maillists.Debian.debian-legal.2004.01 \ .Maillists.Debian.debian-legal.2004.02 \ .Maillists.Debian.debian-legal.2004.03 \ .Maillists.Debian.debian-legal.2004.04 \ .Maillists.Debian.debian-legal.2004.05 \ .Maillists.Debian.debian-legal.2004.06 \ .Maillists.Debian.debian-lint-maint.2004.01 \ .Maillists.Debian.debian-lint-maint.2004.02 \ .Maillists.Debian.debian-lint-maint.2004.03 \ .Maillists.Debian.debian-lint-maint.2004.04 \ .Maillists.Debian.debian-lint-maint.2004.05 \ .Maillists.Debian.debian-lint-maint.2004.06 \ .Maillists.Debian.debian-mentors.2004.01 \ .Maillists.Debian.debian-mentors.2004.02 \ .Maillists.Debian.debian-mentors.2004.03 \ .Maillists.Debian.debian-mentors.2004.04 \ .Maillists.Debian.debian-mentors.2004.05 \ .Maillists.Debian.debian-mentors.2004.06 \ .Maillists.Debian.debian-muc.2004.02 \ .Maillists.Debian.debian-muc.2004.03 \ .Maillists.Debian.debian-muc.2004.04 \ .Maillists.Debian.debian-muc.2004.05 \ .Maillists.Debian.debian-muc.2004.06 \ .Maillists.Debian.debian-newmaint.2004.01 \ .Maillists.Debian.debian-newmaint.2004.02 \ .Maillists.Debian.debian-newmaint.2004.03 \ .Maillists.Debian.debian-newmaint.2004.04 \ .Maillists.Debian.debian-newmaint.2004.05 \ .Maillists.Debian.debian-newmaint.2004.06 \ .Maillists.Debian.debian-news.2004.01 \ .Maillists.Debian.debian-news.2004.02 \ .Maillists.Debian.debian-news.2004.03 \ .Maillists.Debian.debian-news.2004.04 \ .Maillists.Debian.debian-news.2004.05 \ .Maillists.Debian.debian-ocaml-maint.2004.03 \ .Maillists.Debian.debian-ocaml-maint.2004.04 \ .Maillists.Debian.debian-ocaml-maint.2004.05 \ .Maillists.Debian.debian-ocaml-maint.2004.06 \ .Maillists.Debian.debian-openoffice.2004.01 \ .Maillists.Debian.debian-openoffice.2004.02 \ .Maillists.Debian.debian-openoffice.2004.03 \ .Maillists.Debian.debian-openoffice.2004.04 \ .Maillists.Debian.debian-openoffice.2004.05 \ .Maillists.Debian.debian-openoffice.2004.06 \ .Maillists.Debian.debian-perl.2004.01 \ .Maillists.Debian.debian-perl.2004.02 \ .Maillists.Debian.debian-perl.2004.03 \ .Maillists.Debian.debian-perl.2004.04 \ .Maillists.Debian.debian-perl.2004.05 \ .Maillists.Debian.debian-perl.2004.06 \ .Maillists.Debian.debian-policy.2004.01 \ .Maillists.Debian.debian-policy.2004.02 \ .Maillists.Debian.debian-policy.2004.03 \ .Maillists.Debian.debian-policy.2004.04 \ .Maillists.Debian.debian-policy.2004.05 \ .Maillists.Debian.debian-policy.2004.06 \ .Maillists.Debian.debian-powerpc.2004.01 \ .Maillists.Debian.debian-powerpc.2004.02 \ .Maillists.Debian.debian-powerpc.2004.03 \ .Maillists.Debian.debian-powerpc.2004.04 \ .Maillists.Debian.debian-powerpc.2004.05 \ .Maillists.Debian.debian-powerpc.2004.06 \ .Maillists.Debian.debian-private.2004.01 \ .Maillists.Debian.debian-private.2004.02 \ .Maillists.Debian.debian-private.2004.03 \ .Maillists.Debian.debian-private.2004.04 \ .Maillists.Debian.debian-private.2004.05 \ .Maillists.Debian.debian-private.2004.06 \ .Maillists.Debian.debian-project.2004.01 \ .Maillists.Debian.debian-project.2004.02 \ .Maillists.Debian.debian-project.2004.03 \ .Maillists.Debian.debian-project.2004.04 \ .Maillists.Debian.debian-project.2004.05 \ .Maillists.Debian.debian-project.2004.06 \ .Maillists.Debian.debian-qa-packages.2004.01 \ .Maillists.Debian.debian-qa-packages.2004.02 \ .Maillists.Debian.debian-qa-packages.2004.03 \ .Maillists.Debian.debian-qa-packages.2004.04 \ .Maillists.Debian.debian-qa-packages.2004.05 \ .Maillists.Debian.debian-qa-packages.2004.06 \ .Maillists.Debian.debian-qa.2004.01 \ .Maillists.Debian.debian-qa.2004.02 \ .Maillists.Debian.debian-qa.2004.03 \ .Maillists.Debian.debian-qa.2004.04 \ .Maillists.Debian.debian-qa.2004.05 \ .Maillists.Debian.debian-qa.2004.06 \ .Maillists.Debian.debian-qa.cvs.2004.01 \ .Maillists.Debian.debian-qa.cvs.2004.02 \ .Maillists.Debian.debian-qa.cvs.2004.03 \ .Maillists.Debian.debian-qa.cvs.2004.04 \ .Maillists.Debian.debian-qa.cvs.2004.05 \ .Maillists.Debian.debian-qa.mia.2004.01 \ .Maillists.Debian.debian-qa.mia.2004.02 \ .Maillists.Debian.debian-qa.mia.2004.03 \ .Maillists.Debian.debian-qa.mia.2004.04 \ .Maillists.Debian.debian-qa.mia.2004.05 \ .Maillists.Debian.debian-qa.mia.2004.06 \ .Maillists.Debian.debian-release.2004.01 \ .Maillists.Debian.debian-release.2004.02 \ .Maillists.Debian.debian-release.2004.03 \ .Maillists.Debian.debian-release.2004.04 \ .Maillists.Debian.debian-release.2004.05 \ .Maillists.Debian.debian-release.2004.06 \ .Maillists.Debian.debian-security-announce.2004.01 \ .Maillists.Debian.debian-security-announce.2004.02 \ .Maillists.Debian.debian-security-announce.2004.03 \ .Maillists.Debian.debian-security-announce.2004.04 \ .Maillists.Debian.debian-security-announce.2004.05 \ .Maillists.Debian.debian-security-announce.2004.06 \ .Maillists.Debian.debian-security.2004.01 \ .Maillists.Debian.debian-security.2004.02 \ .Maillists.Debian.debian-security.2004.03 \ .Maillists.Debian.debian-security.2004.04 \ .Maillists.Debian.debian-security.2004.05 \ .Maillists.Debian.debian-security.2004.06 \ .Maillists.Debian.debian-testing.2004.01 \ .Maillists.Debian.debian-testing.2004.02 \ .Maillists.Debian.debian-testing.2004.03 \ .Maillists.Debian.debian-testing.2004.04 \ .Maillists.Debian.debian-testing.2004.05 \ .Maillists.Debian.debian-testing.2004.06 \ .Maillists.Debian.debian-user-german.2004.01 \ .Maillists.Debian.debian-user-german.2004.02 \ .Maillists.Debian.debian-user-german.2004.03 \ .Maillists.Debian.debian-user-german.2004.04 \ .Maillists.Debian.debian-user-german.2004.05 \ .Maillists.Debian.debian-user-german.2004.06 \ .Maillists.Debian.debian-user.2004.01 \ .Maillists.Debian.debian-user.2004.02 \ .Maillists.Debian.debian-user.2004.03 \ .Maillists.Debian.debian-user.2004.04 \ .Maillists.Debian.debian-user.2004.05 \ .Maillists.Debian.debian-user.2004.06 \ .Maillists.Debian.debian-vote.2004.01 \ .Maillists.Debian.debian-vote.2004.02 \ .Maillists.Debian.debian-vote.2004.03 \ .Maillists.Debian.debian-vote.2004.04 \ .Maillists.Debian.debian-vote.2004.05 \ .Maillists.Debian.debian-vote.2004.06 \ .Maillists.Debian.debian-wnpp.2004.01 \ .Maillists.Debian.debian-wnpp.2004.02 \ .Maillists.Debian.debian-wnpp.2004.03 \ .Maillists.Debian.debian-wnpp.2004.04 \ .Maillists.Debian.debian-wnpp.2004.05 \ .Maillists.Debian.debian-wnpp.2004.06 \ .Maillists.Debian.debian-www.2004.01 \ .Maillists.Debian.debian-www.2004.02 \ .Maillists.Debian.debian-www.2004.03 \ .Maillists.Debian.debian-www.2004.04 \ .Maillists.Debian.debian-www.2004.05 \ .Maillists.Debian.debian-www.2004.06 \ .Maillists.Debian.debian-x.2004.01 \ .Maillists.Debian.debian-x.2004.02 \ .Maillists.Debian.debian-x.2004.03 \ .Maillists.Debian.debian-x.2004.04 \ .Maillists.Debian.debian-x.2004.05 \ .Maillists.Debian.debian-x.2004.06 \ .Maillists.Debian.pts.cabot.2004.03 \ .Maillists.Debian.pts.cabot.2004.04 \ .Maillists.Debian.pts.cabot.2004.05 \ .Maillists.Debian.pts.gnupg.2004.01 \ .Maillists.Debian.pts.gnupg.2004.02 \ .Maillists.Debian.pts.gnupg.2004.03 \ .Maillists.Debian.pts.gnupg.2004.04 \ .Maillists.Debian.pts.gnupg.2004.05 \ .Maillists.Debian.pts.gnupg.2004.06 \ .Maillists.Debian.pts.lincvs.2004.01 \ .Maillists.Debian.pts.lincvs.2004.02 \ .Maillists.Debian.pts.lincvs.2004.03 \ .Maillists.Debian.pts.lincvs.2004.04 \ .Maillists.Debian.pts.lincvs.2004.05 \ .Maillists.Debian.pts.tsocks.2004.03 \ .Maillists.Debian.pts.tsocks.2004.04 \ .Maillists.Debian.pts.tsocks.2004.05 \ .Maillists.Debian.sks.2004.01 \ .Maillists.Debian.sks.2004.03 \ .Maillists.Debian.sks.2004.04 \ .Maillists.aach.2004.02 \ .Maillists.aach.2004.03 \ .Maillists.aach.2004.05 \ .Maillists.aacg.2004.01 \ .Maillists.aacg.2004.02 \ .Maillists.aacg.2004.03 \ .Maillists.aacg.2004.04 \ .Maillists.aacg.2004.05 \ .Maillists.aacg.2004.06 \ .Maillists.aacf.2004.01 \ .Maillists.aacf.2004.02 \ .Maillists.aacf.2004.03 \ .Maillists.aacf.2004.04 \ .Maillists.aacf.2004.05 \ .Maillists.aacf.2004.06 \ .Maillists.aace.2004.01 \ .Maillists.aace.2004.02 \ .Maillists.aace.2004.03 \ .Maillists.aace.2004.04 \ .Maillists.aace.2004.05 \ .Maillists.aace.2004.06 \ .Maillists.aacd.2004.01 \ .Maillists.aacd.2004.02 \ .Maillists.aacd.2004.03 \ .Maillists.aacd.2004.04 \ .Maillists.aacd.2004.05 \ .Maillists.aacc.2004.01 \ .Maillists.aacc.2004.02 \ .Maillists.aacc.2004.03 \ .Maillists.aacc.2004.04 \ .Maillists.aacc.2004.05 \ .Maillists.aacc.2004.06 \ .Maillists.aacb.2004.01 \ .Maillists.aacb.2004.02 \ .Maillists.aacb.2004.03 \ .Maillists.aacb.2004.04 \ .Maillists.aacb.2004.05 \ .Maillists.aacb.2004.06 \ .Maillists.aaca.2004.01 \ .Maillists.aaca.2004.02 \ .Maillists.aaca.2004.03 \ .Maillists.aaca.2004.04 \ .Maillists.aaca.2004.05 \ .Maillists.aaca.2004.06 \ .Maillists.aabz.2004.01 \ .Maillists.aabz.2004.02 \ .Maillists.aabz.2004.03 \ .Maillists.aabz.2004.04 \ .Maillists.aabz.2004.05 \ .Maillists.aabz.2004.06 \ .Maillists.aaby.2004.01 \ .Maillists.aaby.2004.02 \ .Maillists.aaby.2004.03 \ .Maillists.aaby.2004.04 \ .Maillists.aaby.2004.05 \ .Maillists.aaby.2004.06 \ .Maillists.aabx.2004.02 \ .Maillists.aabw.2004.01 \ .Maillists.aabw.2004.02 \ .Maillists.aabw.2004.03 \ .Maillists.aabw.2004.04 \ .Maillists.aabw.2004.05 \ .Maillists.aabw.2004.06 \ .Maillists.aabv.2004.01 \ .Maillists.aabv.2004.02 \ .Maillists.aabv.2004.03 \ .Maillists.aabv.2004.04 \ .Maillists.aabv.2004.05 \ .Maillists.aabv.2004.06 \ .Maillists.aabu.2004.01 \ .Maillists.aabu.2004.02 \ .Maillists.aabu.2004.03 \ .Maillists.aabu.2004.04 \ .Maillists.aabu.2004.05 \ .Maillists.aabt.2004.01 \ .Maillists.aabt.2004.02 \ .Maillists.aabt.2004.03 \ .Maillists.aabt.2004.04 \ .Maillists.aabt.2004.05 \ .Maillists.aabt.2004.06 \ .Maillists.aabs.2004.01 \ .Maillists.aabs.2004.02 \ .Maillists.aabs.2004.03 \ .Maillists.aabs.2004.05 \ .Maillists.aabs.2004.06 \ .Maillists.aabr.2004.01 \ .Maillists.aabr.2004.02 \ .Maillists.aabr.2004.03 \ .Maillists.aabr.2004.04 \ .Maillists.aabr.2004.05 \ .Maillists.aabr.2004.06 \ .Maillists.aabq.2004.01 \ .Maillists.aabq.2004.02 \ .Maillists.aabq.2004.03 \ .Maillists.aabq.2004.04 \ .Maillists.aabq.2004.05 \ .Maillists.aabq.2004.06 \ .Maillists.aabp.2004.03 \ .Maillists.aabp.2004.04 \ .Maillists.aabp.2004.05 \ .Maillists.aabp.2004.06 \ .Maillists.aabo.2004.01 \ .Maillists.aabo.2004.02 \ .Maillists.aabo.2004.03 \ .Maillists.aabn.2004.01 \ .Maillists.aabn.2004.02 \ .Maillists.aabn.2004.03 \ .Maillists.aabn.2004.04 \ .Maillists.aabn.2004.05 \ .Maillists.aabn.2004.06 \ .Maillists.aabm.2004.01 \ .Maillists.aabm.2004.04 \ .Maillists.aabm.2004.05 \ .Maillists.aabm.2004.06 \ .Maillists.aabl.2004.01 \ .Maillists.aabl.2004.02 \ .Maillists.aabl.2004.03 \ .Maillists.aabl.2004.04 \ .Maillists.aabl.2004.05 \ .Maillists.aabl.2004.06 \ .Maillists.aabk.2004.04 \ .Maillists.aabk.2004.06 \ .Maillists.aabj.2004.01 \ .Maillists.aabj.2004.02 \ .Maillists.aabj.2004.03 \ .Maillists.aabj.2004.04 \ .Maillists.aabj.2004.05 \ .Maillists.aabj.2004.06 \ .Maillists.aabi.2004.01 \ .Maillists.aabi.2004.02 \ .Maillists.aabi.2004.03 \ .Maillists.aabi.2004.04 \ .Maillists.aabi.2004.05 \ .Maillists.aabi.2004.06 \ .Maillists.aabh.2004.01 \ .Maillists.aabh.2004.02 \ .Maillists.aabh.2004.03 \ .Maillists.aabh.2004.04 \ .Maillists.aabh.2004.05 \ .Maillists.aabh.2004.06 \ .Maillists.aabg.2004.01 \ .Maillists.aabg.2004.02 \ .Maillists.aabg.2004.03 \ .Maillists.aabg.2004.04 \ .Maillists.aabg.2004.05 \ .Maillists.aabg.2004.06 \ .Maillists.aabf.2004.01 \ .Maillists.aabf.2004.02 \ .Maillists.aabf.2004.03 \ .Maillists.aabf.2004.04 \ .Maillists.aabf.2004.05 \ .Maillists.aabf.2004.06 \ .Maillists.aabe.2004.01 \ .Maillists.aabe.2004.02 \ .Maillists.aabe.2004.03 \ .Maillists.aabe.2004.04 \ .Maillists.aabe.2004.05 \ .Maillists.aabe.2004.06 \ .Maillists.aabd.2004.04 \ .Maillists.aabd.2004.05 \ .Maillists.aabd.2004.06 \ .Maillists.aabc.2004.01 \ .Maillists.aabc.2004.02 \ .Maillists.aabc.2004.03 \ .Maillists.aabc.2004.04 \ .Maillists.aabc.2004.05 \ .Maillists.aabc.2004.06 \ .Maillists.aabb.2004.01 \ .Maillists.aabb.2004.02 \ .Maillists.aabb.2004.03 \ .Maillists.aabb.2004.04 \ .Maillists.aabb.2004.05 \ .Maillists.aabb.2004.06 \ .Maillists.aaba.2004.01 \ .Maillists.aaba.2004.02 \ .Maillists.aaba.2004.03 \ .Maillists.aaba.2004.04 \ .Maillists.aaba.2004.05 \ .Maillists.aaba.2004.06 \ .Maillists.aaaz.2004.01 \ .Maillists.aaaz.2004.02 \ .Maillists.aaaz.2004.03 \ .Maillists.aaaz.2004.04 \ .Maillists.aaaz.2004.05 \ .Maillists.aaaz.2004.06 \ .Maillists.aaay.2004.01 \ .Maillists.aaay.2004.02 \ .Maillists.aaay.2004.03 \ .Maillists.aaay.2004.04 \ .Maillists.aaay.2004.05 \ .Maillists.aaay.2004.06 \ .Maillists.aaax.2004.02 \ .Maillists.aaaw.2004.01 \ .Maillists.aaaw.2004.02 \ .Maillists.aaaw.2004.03 \ .Maillists.aaaw.2004.04 \ .Maillists.aaaw.2004.05 \ .Maillists.aaav.2004.01 \ .Maillists.aaav.2004.02 \ .Maillists.aaav.2004.03 \ .Maillists.aaav.2004.04 \ .Maillists.aaav.2004.05 \ .Maillists.aaau.2004.01 \ .Maillists.aaau.2004.02 \ .Maillists.aaau.2004.03 \ .Maillists.aaat.2004.04 \ .Maillists.aaas.2004.04 \ .Maillists.aaar.2004.05 \ .Maillists.aaaq.2004.01 \ .Maillists.aaaq.2004.06 \ .Maillists.aaap.2004.03 \ .Maillists.aaap.2004.04 \ .Maillists.aaap.2004.05 \ .Maillists.aaap.2004.06 \ .Maillists.aaao.2004.01 \ .Maillists.aaao.2004.02 \ .Maillists.aaao.2004.03 \ .Maillists.aaao.2004.04 \ .Maillists.aaao.2004.05 \ .Maillists.aaao.2004.06 \ .Maillists.aaan.2004.01 \ .Maillists.aaan.2004.02 \ .Maillists.aaan.2004.03 \ .Maillists.aaan.2004.04 \ .Maillists.aaan.2004.05 \ .Maillists.aaan.2004.06 \ .Maillists.aaam.2004.01 \ .Maillists.aaam.2004.02 \ .Maillists.aaam.2004.03 \ .Maillists.aaam.2004.04 \ .Maillists.aaam.2004.05 \ .Maillists.aaam.2004.06 \ .Maillists.aaal.2004.01 \ .Maillists.aaal.2004.02 \ .Maillists.aaal.2004.03 \ .Maillists.aaal.2004.04 \ .Maillists.aaal.2004.05 \ .Maillists.aaal.2004.06 \ .Maillists.aaak.2004.01 \ .Maillists.aaak.2004.02 \ .Maillists.aaak.2004.03 \ .Maillists.aaak.2004.04 \ .Maillists.aaak.2004.05 \ .Maillists.aaak.2004.06 \ .Maillists.aaaj.2004.01 \ .Maillists.aaaj.2004.02 \ .Maillists.aaaj.2004.03 \ .Maillists.aaaj.2004.04 \ .Maillists.aaaj.2004.05 \ .Maillists.aaaj.2004.06 \ .Maillists.aaai.2004.01 \ .Maillists.aaai.2004.02 \ .Maillists.aaai.2004.03 \ .Maillists.aaai.2004.04 \ .Maillists.aaai.2004.05 \ .Maillists.aaai.2004.06 \ .Maillists.aaah.2004.01 \ .Maillists.aaah.2004.02 \ .Maillists.aaah.2004.03 \ .Maillists.aaah.2004.04 \ .Maillists.aaah.2004.05 \ .Maillists.aaah.2004.06 \ .Maillists.aaag.2004.01 \ .Maillists.aaag.2004.02 \ .Maillists.aaag.2004.03 \ .Maillists.aaag.2004.04 \ .Maillists.aaag.2004.05 \ .Maillists.aaag.2004.06 \ .Maillists.aaaf.2004.01 \ .Maillists.aaaf.2004.02 \ .Maillists.aaaf.2004.03 \ .Maillists.aaaf.2004.04 \ .Maillists.aaaf.2004.05 \ .Maillists.aaaf.2004.06 \ .Maillists.subversion-dev.2004.01 \ .Maillists.subversion-dev.2004.02 \ .Maillists.subversion-dev.2004.03 \ .Maillists.subversion-dev.2004.04 \ .Maillists.subversion-dev.2004.05 \ .Maillists.subversion-dev.2004.06 \ .Maillists.aaae.2004.01 \ .Maillists.aaae.2004.02 \ .Maillists.aaae.2004.03 \ .Maillists.aaae.2004.04 \ .Maillists.aaae.2004.05 \ .Maillists.aaae.2004.06 \ .Maillists.aaad.2004.01 \ .Maillists.aaad.2004.02 \ .Maillists.aaad.2004.03 \ .Maillists.aaad.2004.05 \ .Maillists.aaac.2004.01 \ .Maillists.aaac.2004.02 \ .Maillists.aaac.2004.03 \ .Maillists.aaac.2004.04 \ .Maillists.aaac.2004.05 \ .Maillists.aaac.2004.06 \ .Maillists.aaab.2004.01 \ .Maillists.aaab.2004.02 \ .Maillists.aaab.2004.03 \ .Maillists.aaab.2004.04 \ .Maillists.aaab.2004.05 \ .Maillists.aaab.2004.06 \ .Maillists.aaaa.2004.01 \ .Maillists.aaaa.2004.02 \ .Maillists.aaaa.2004.03 \ .Maillists.aaaa.2004.04 \ .Maillists.aaaa.2004.05 \ .Maillists.aaaa.2004.06 do mkdir $i done # crash phase: echo .Maillists*.2004.0?/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug#251378: zsh: segfaults when globing includes too many files 2004-07-16 17:56 ` Clint Adams @ 2004-07-16 19:46 ` Clint Adams 2004-07-17 19:06 ` Peter Stephenson 2004-07-17 19:20 ` PATCH: " Peter Stephenson 1 sibling, 1 reply; 9+ messages in thread From: Clint Adams @ 2004-07-16 19:46 UTC (permalink / raw) To: zsh-workers; +Cc: 251378, 259768, 251378-submitter, 259768-submitter, mdz > Attached is a script from Peter Palfrader which seems to trigger the > same type of segfault in zhalloc(). This is HEAD with the mremap patch, which seems to be irrelevant. Should dyncat(s,"") just duplicate s, or should that be avoided earlier? #0 0x0007cb78 in zhalloc (size=32) at /home/clint/tmp/zsh/Src/mem.c:353 #1 0x000b2bd0 in dyncat (s1=0x10de88 ".Maillists.aaaa.2004.06/", s2=0x7001e1cc "") at /home/clint/tmp/zsh/Src/string.c:100 #2 0x00046644 in insert (s=0x7001e1cc "", checked=0) at /home/clint/tmp/zsh/Src/glob.c:352 #3 0x0004720c in scanner (q=0x7001e1d0) at /home/clint/tmp/zsh/Src/glob.c:514 #4 0x000478e0 in scanner (q=0x7001e198) at /home/clint/tmp/zsh/Src/glob.c:615 #5 0x0004b428 in zglob (list=0x7001e0f0, np=0x7001e104, nountok=0) at /home/clint/tmp/zsh/Src/glob.c:1578 #6 0x000b48b8 in globlist (list=0x7001e0f0, nountok=0) at /home/clint/tmp/zsh/Src/subst.c:273 #7 0x0003dd1c in execcmd (state=0xeffffae8, input=0, output=0, how=18, last1=2) at /home/clint/tmp/zsh/Src/exec.c:2161 #8 0x00039e54 in execpline2 (state=0xeffffae8, pcode=45699, how=18, input=0, output=0, last1=0) at /home/clint/tmp/zsh/Src/exec.c:1274 #9 0x00038c30 in execpline (state=0xeffffae8, slcode=4098, how=18, last1=0) at /home/clint/tmp/zsh/Src/exec.c:1064 #10 0x000380a0 in execlist (state=0xeffffae8, dont_change_job=0, exiting=0) at /home/clint/tmp/zsh/Src/exec.c:870 #11 0x00037bc8 in execode (p=0x7001e090, dont_change_job=0, exiting=0) at /home/clint/tmp/zsh/Src/exec.c:771 #12 0x0005da74 in loop (toplevel=1, justonce=0) at /home/clint/tmp/zsh/Src/init.c:165 #13 0x00061c78 in zsh_main (argc=3, argv=0xeffffd34) at /home/clint/tmp/zsh/Src/init.c:1274 #14 0x00019d90 in main (argc=3, argv=0xeffffd34) at /home/clint/tmp/zsh/Src/main.c:93 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug#251378: zsh: segfaults when globing includes too many files 2004-07-16 19:46 ` Clint Adams @ 2004-07-17 19:06 ` Peter Stephenson 0 siblings, 0 replies; 9+ messages in thread From: Peter Stephenson @ 2004-07-17 19:06 UTC (permalink / raw) To: zsh-workers; +Cc: 251378, 259768, 251378-submitter, 259768-submitter, mdz Clint Adams wrote: > > Attached is a script from Peter Palfrader which seems to trigger the > > same type of segfault in zhalloc(). Yep, does that for me too (no use of mremap), so this should be very useful. > This is HEAD with the mremap patch, which seems to be irrelevant. > Should dyncat(s,"") just duplicate s, or should that be avoided earlier? > > #0 0x0007cb78 in zhalloc (size=32) at /home/clint/tmp/zsh/Src/mem.c:353 > #1 0x000b2bd0 in dyncat (s1=0x10de88 ".Maillists.aaaa.2004.06/", s2=0x7001e1 > cc "") > at /home/clint/tmp/zsh/Src/string.c:100 That certainly shouldn't be a problem, as long as it's a valid pointer, which it seems to be. -- Peter Stephenson <pws@pwstephenson.fsnet.co.uk> Work: pws@csr.com Web: http://www.pwstephenson.fsnet.co.uk ^ permalink raw reply [flat|nested] 9+ messages in thread
* PATCH: Re: Bug#251378: zsh: segfaults when globing includes too many files 2004-07-16 17:56 ` Clint Adams 2004-07-16 19:46 ` Clint Adams @ 2004-07-17 19:20 ` Peter Stephenson 1 sibling, 0 replies; 9+ messages in thread From: Peter Stephenson @ 2004-07-17 19:20 UTC (permalink / raw) To: zsh-workers; +Cc: 251378, 259768-forwarded, 259768-submitter, mdz This seems to fix it. It was actually fairly obvious, since there was only one case of reallocationg a heap where fheap wasn't set to NULL. However, the script focussed my mind wonderfully. Index: Src/mem.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/mem.c,v retrieving revision 1.11 diff -u -r1.11 mem.c --- Src/mem.c 2 Jun 2004 22:14:26 -0000 1.11 +++ Src/mem.c 17 Jul 2004 19:18:10 -0000 @@ -491,6 +491,7 @@ */ size_t n = (new + sizeof(*h) + HEAPSIZE); n -= n % HEAPSIZE; + fheap = NULL; #ifdef USE_MMAP { -- Peter Stephenson <pws@pwstephenson.fsnet.co.uk> Work: pws@csr.com Web: http://www.pwstephenson.fsnet.co.uk ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug#251378: zsh: segfaults when globing includes too many files 2004-07-06 18:59 ` Bug#251378: zsh: segfaults when globing includes too many files Clint Adams 2004-07-06 19:22 ` Clint Adams @ 2004-07-07 11:01 ` Peter Stephenson 2004-07-07 12:36 ` Clint Adams 1 sibling, 1 reply; 9+ messages in thread From: Peter Stephenson @ 2004-07-07 11:01 UTC (permalink / raw) To: zsh-workers, 251378-forwarded Clint Adams wrote: > I can't reproduce this yet, but some people are experiencing segfaults > when globbing in /usr/share/doc. The source shown below includes 19920. > This also happens with HEAD, I think. So this happens with both 4.2.0 and the latest, and therefore isn't (directly) related to the mmap reorganisation of heap allocation? Is it possible a memory allocator is returning 0? It could be another case where the shell is trying to allocate way too much memory, not getting it, and not handling the failure gracefully. -- Peter Stephenson <pws@csr.com> Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug#251378: zsh: segfaults when globing includes too many files 2004-07-07 11:01 ` Peter Stephenson @ 2004-07-07 12:36 ` Clint Adams 0 siblings, 0 replies; 9+ messages in thread From: Clint Adams @ 2004-07-07 12:36 UTC (permalink / raw) To: Peter Stephenson; +Cc: zsh-workers, 251378, mdz > > when globbing in /usr/share/doc. The source shown below includes 19920. > > So this happens with both 4.2.0 and the latest, and therefore isn't > (directly) related to the mmap reorganisation of heap allocation? No, 19920 is the heap allocation patch. I don't know if this happens without it. > Is it possible a memory allocator is returning 0? It could be another > case where the shell is trying to allocate way too much memory, not > getting it, and not handling the failure gracefully. Guys, are you using a non-default overcommit_memory setting on Linux? ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-07-17 19:21 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <20040528125647.GA21000@scowler.net> [not found] ` <20040528131425.GC2289@via.ecp.fr> [not found] ` <20040528135026.GA21637@scowler.net> [not found] ` <20040528135729.GD2289@via.ecp.fr> [not found] ` <20040528141431.GA30024@scowler.net> [not found] ` <20040528142505.GE2289@via.ecp.fr> [not found] ` <20040528174021.GA5975@scowler.net> [not found] ` <20040528190653.GA2661@via.ecp.fr> [not found] ` <20040706181235.GA32727@scowler.net> [not found] ` <20040706184752.GC1881@alcor.net> 2004-07-06 18:59 ` Bug#251378: zsh: segfaults when globing includes too many files Clint Adams 2004-07-06 19:22 ` Clint Adams 2004-07-13 11:06 ` Peter Stephenson 2004-07-16 17:56 ` Clint Adams 2004-07-16 19:46 ` Clint Adams 2004-07-17 19:06 ` Peter Stephenson 2004-07-17 19:20 ` PATCH: " Peter Stephenson 2004-07-07 11:01 ` Peter Stephenson 2004-07-07 12:36 ` Clint Adams
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).