Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#251378: zsh: segfaults when globing includes too many files



> 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--



Messages sorted by: Reverse Date, Date, Thread, Author