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

Re: 5.9 core dumps under zleentry->zleread->zlecore



Hi,

just wanted to resurface this, it's still an issue for me. Every now and then, almost every week, I have these crashes. Mainly one my laptop but on my desktop too. Just had three terminals crash on me at once (after interacting with them each). Arch linux, x86, with zsh 5.9-4. The traces are slighly different (unfortunately no debug symbols). More or less the same zsh config as previously. Hope this can shed some light on it and perhaps find a fix (although zsh releases seems scarce nowadays).

Regards
Johan

Message: Process 109202 (zsh) of user 1000 dumped core.

                Stack trace of thread 109202:
                #0  0x00007f815275283c n/a (libc.so.6 + 0x8e83c)
                #1  0x00007f8152702668 raise (libc.so.6 + 0x3e668)
                #2  0x00007f81526ea4b8 abort (libc.so.6 + 0x264b8)
                #3  0x00007f81526eb390 n/a (libc.so.6 + 0x27390)
                #4  0x00007f815275c7b7 n/a (libc.so.6 + 0x987b7)
                #5  0x00007f815275ea74 n/a (libc.so.6 + 0x9aa74)
                #6  0x00007f8152761353 free (libc.so.6 + 0x9d353)
                #7  0x0000560780603848 quotestring (zsh + 0xc5848)
                #8  0x00007f8151e2017d multiquote (complete.so + 0xb17d)
                #9  0x00007f8151e35caf comp_match (complete.so + 0x20caf)
                #10 0x00007f8151e28a78 addmatches (complete.so + 0x13a78)
                #11 0x00007f8151e29aca n/a (complete.so + 0x14aca)
                #12 0x0000560780556163 execbuiltin (zsh + 0x18163)
                #13 0x000056078057d7e6 n/a (zsh + 0x3f7e6)
                #14 0x000056078057e2cf n/a (zsh + 0x402cf)
                #15 0x000056078057e714 n/a (zsh + 0x40714)
                #16 0x0000560780580b5f execlist (zsh + 0x42b5f)
                #17 0x00005607805b499f execif (zsh + 0x7699f)
                #18 0x000056078057c0ed n/a (zsh + 0x3e0ed)
                #19 0x000056078057e2cf n/a (zsh + 0x402cf)
                #20 0x000056078057e714 n/a (zsh + 0x40714)
                #21 0x0000560780580646 execlist (zsh + 0x42646)
                #22 0x00005607805b4657 execwhile (zsh + 0x76657)
                #23 0x000056078057c0ed n/a (zsh + 0x3e0ed)
                #24 0x000056078057e2cf n/a (zsh + 0x402cf)
                #25 0x000056078057e714 n/a (zsh + 0x40714)
                #26 0x0000560780580646 execlist (zsh + 0x42646)
                #27 0x0000560780580e3e execode (zsh + 0x42e3e)
                #28 0x0000560780584799 runshfunc (zsh + 0x46799)
                #29 0x00007f8151e1f92b n/a (complete.so + 0xa92b)
                #30 0x000056078058452d runshfunc (zsh + 0x4652d)
                #31 0x0000560780584eda doshfunc (zsh + 0x46eda)
                #32 0x00005607805865b4 n/a (zsh + 0x485b4)
                #33 0x000056078057dc70 n/a (zsh + 0x3fc70)
                #34 0x000056078057e2cf n/a (zsh + 0x402cf)
                #35 0x000056078057e714 n/a (zsh + 0x40714)
                #36 0x0000560780580b5f execlist (zsh + 0x42b5f)
                #37 0x00005607805b4657 execwhile (zsh + 0x76657)
                #38 0x000056078057c0ed n/a (zsh + 0x3e0ed)
                #39 0x000056078057e2cf n/a (zsh + 0x402cf)
                #40 0x000056078057e714 n/a (zsh + 0x40714)
                #41 0x0000560780580646 execlist (zsh + 0x42646)
                #42 0x0000560780580e3e execode (zsh + 0x42e3e)
                #43 0x0000560780584799 runshfunc (zsh + 0x46799)
                #44 0x00007f8151e1f92b n/a (complete.so + 0xa92b)
                #45 0x000056078058452d runshfunc (zsh + 0x4652d)
                #46 0x0000560780584eda doshfunc (zsh + 0x46eda)
                #47 0x00005607805865b4 n/a (zsh + 0x485b4)
                #48 0x000056078057dc70 n/a (zsh + 0x3fc70)
                #49 0x000056078057e2cf n/a (zsh + 0x402cf)
                #50 0x000056078057e714 n/a (zsh + 0x40714)
                #51 0x0000560780580b5f execlist (zsh + 0x42b5f)
                #52 0x00005607805b499f execif (zsh + 0x7699f)
                #53 0x000056078057c0ed n/a (zsh + 0x3e0ed)
                #54 0x000056078057e2cf n/a (zsh + 0x402cf)
                #55 0x000056078057e714 n/a (zsh + 0x40714)
                #56 0x0000560780580646 execlist (zsh + 0x42646)
                #57 0x0000560780580e3e execode (zsh + 0x42e3e)
                #58 0x0000560780584799 runshfunc (zsh + 0x46799)
                #59 0x00007f8151e1f92b n/a (complete.so + 0xa92b)
                #60 0x000056078058452d runshfunc (zsh + 0x4652d)
                #61 0x0000560780584eda doshfunc (zsh + 0x46eda)
                #62 0x00005607805865b4 n/a (zsh + 0x485b4)
                #63 0x000056078057dc70 n/a (zsh + 0x3fc70)
                ELF object binary architecture: AMD x86-64


 Message: Process 156250 (zsh) of user 1000 dumped core.

                Stack trace of thread 156250:
                #0  0x00007f8f41e8783c n/a (libc.so.6 + 0x8e83c)
                #1  0x00007f8f41e37668 raise (libc.so.6 + 0x3e668)
                #2  0x00007f8f41e1f4b8 abort (libc.so.6 + 0x264b8)
                #3  0x00007f8f41e20390 n/a (libc.so.6 + 0x27390)
                #4  0x00007f8f41e917b7 n/a (libc.so.6 + 0x987b7)
                #5  0x00007f8f41e9580c n/a (libc.so.6 + 0x9c80c)
                #6  0x00007f8f41e96776 realloc (libc.so.6 + 0x9d776)
                #7  0x00007f8f415a36dc sizeline (zle.so + 0x316dc)
                #8  0x00007f8f415a452f spaceinline (zle.so + 0x3252f)
                #9  0x00007f8f415a4783 inststrlen (zle.so + 0x32783)
                #10 0x00007f8f41560681 n/a (complete.so + 0x16681)
                #11 0x00007f8f41562e87 unambig_data (complete.so + 0x18e87)
                #12 0x000055890ea3ce76 getstrvalue (zsh + 0x85e76)
                #13 0x000055890ea3d44b n/a (zsh + 0x8644b)
                #14 0x000055890ea3d791 paramvalarr (zsh + 0x86791)
                #15 0x000055890ea42b56 n/a (zsh + 0x8bb56)
                #16 0x000055890ea42d25 getarrvalue (zsh + 0x8bd25)
                #17 0x000055890ea6af9a n/a (zsh + 0xb3f9a)
                #18 0x000055890ea6262b n/a (zsh + 0xab62b)
                #19 0x000055890ea63701 prefork (zsh + 0xac701)
                #20 0x000055890e9f1101 n/a (zsh + 0x3a101)
                #21 0x000055890e9f49b2 n/a (zsh + 0x3d9b2)
                #22 0x000055890e9f72cf n/a (zsh + 0x402cf)
                #23 0x000055890e9f7714 n/a (zsh + 0x40714)
                #24 0x000055890e9f9646 execlist (zsh + 0x42646)
                #25 0x000055890e9f9e3e execode (zsh + 0x42e3e)
                #26 0x000055890e9fd799 runshfunc (zsh + 0x46799)
                #27 0x00007f8f4155492b n/a (complete.so + 0xa92b)
                #28 0x000055890e9fd52d runshfunc (zsh + 0x4652d)
                #29 0x000055890e9fdeda doshfunc (zsh + 0x46eda)
                #30 0x00007f8f4155a07f do_completion (complete.so + 0x1007f)
                #31 0x00007f8f415abfbe n/a (zle.so + 0x39fbe)
                #32 0x00007f8f415a3074 completecall (zle.so + 0x31074)
                #33 0x00007f8f4159070f execzlefunc (zle.so + 0x1e70f)
                #34 0x00007f8f41592831 zlecore (zle.so + 0x20831)
                #35 0x00007f8f415935c4 zleread (zle.so + 0x215c4)
                #36 0x000055890ea1de34 zleentry (zsh + 0x66e34)
                #37 0x000055890ea1e6a6 ingetc (zsh + 0x676a6)
                #38 0x000055890ea114b4 n/a (zsh + 0x5a4b4)
                #39 0x000055890ea2c28f n/a (zsh + 0x7528f)
                #40 0x000055890ea4f0a8 parse_event (zsh + 0x980a8)
                #41 0x000055890ea179b6 loop (zsh + 0x609b6)
                #42 0x000055890ea1fe05 zsh_main (zsh + 0x68e05)
                #43 0x000055890e9ce0de main (zsh + 0x170de)
                #44 0x00007f8f41e20cd0 n/a (libc.so.6 + 0x27cd0)
                #45 0x00007f8f41e20d8a __libc_start_main (libc.so.6 + 0x27d8a)
                #46 0x000055890e9ce105 _start (zsh + 0x17105)
                ELF object binary architecture: AMD x86-64


       Message: Process 43282 (zsh) of user 1000 dumped core.

                Stack trace of thread 43282:
                #0  0x00007f807cfc583c n/a (libc.so.6 + 0x8e83c)
                #1  0x00007f807cf75668 raise (libc.so.6 + 0x3e668)
                #2  0x00007f807cf5d4b8 abort (libc.so.6 + 0x264b8)
                #3  0x00007f807cf5e390 n/a (libc.so.6 + 0x27390)
                #4  0x00007f807cfcf7b7 n/a (libc.so.6 + 0x987b7)
                #5  0x00007f807cfd1ad4 n/a (libc.so.6 + 0x9aad4)
                #6  0x00007f807cfd4353 free (libc.so.6 + 0x9d353)
                #7  0x0000563b939cf2b1 setunderscore (zsh + 0x382b1)
                #8  0x0000563b939d26b2 n/a (zsh + 0x3b6b2)
                #9  0x0000563b939d72cf n/a (zsh + 0x402cf)
                #10 0x0000563b939d7714 n/a (zsh + 0x40714)
                #11 0x0000563b939d9646 execlist (zsh + 0x42646)
                #12 0x0000563b93a0d99f execif (zsh + 0x7699f)
                #13 0x0000563b939d50ed n/a (zsh + 0x3e0ed)
                #14 0x0000563b939d72cf n/a (zsh + 0x402cf)
                #15 0x0000563b939d7714 n/a (zsh + 0x40714)
                #16 0x0000563b939d9646 execlist (zsh + 0x42646)
                #17 0x0000563b939d9e3e execode (zsh + 0x42e3e)
                #18 0x0000563b939dd799 runshfunc (zsh + 0x46799)
                #19 0x00007f807c69292b n/a (complete.so + 0xa92b)
                #20 0x0000563b939dd52d runshfunc (zsh + 0x4652d)
                #21 0x0000563b939ddeda doshfunc (zsh + 0x46eda)
                #22 0x0000563b939df5b4 n/a (zsh + 0x485b4)
                #23 0x0000563b939d6c70 n/a (zsh + 0x3fc70)
                #24 0x0000563b939d72cf n/a (zsh + 0x402cf)
                #25 0x0000563b939d7714 n/a (zsh + 0x40714)
                #26 0x0000563b939d9646 execlist (zsh + 0x42646)
                #27 0x0000563b93a0d904 execif (zsh + 0x76904)
                #28 0x0000563b939d50ed n/a (zsh + 0x3e0ed)
                #29 0x0000563b939d72cf n/a (zsh + 0x402cf)
                #30 0x0000563b939d7714 n/a (zsh + 0x40714)
                #31 0x0000563b939d9646 execlist (zsh + 0x42646)
                #32 0x0000563b93a13bbd execfor (zsh + 0x7cbbd)
                #33 0x0000563b939d50ed n/a (zsh + 0x3e0ed)
                #34 0x0000563b939d72cf n/a (zsh + 0x402cf)
                #35 0x0000563b939d7714 n/a (zsh + 0x40714)
                #36 0x0000563b939d9646 execlist (zsh + 0x42646)
                #37 0x0000563b93a13bbd execfor (zsh + 0x7cbbd)
                #38 0x0000563b939d50ed n/a (zsh + 0x3e0ed)
                #39 0x0000563b939d72cf n/a (zsh + 0x402cf)
                #40 0x0000563b939d7714 n/a (zsh + 0x40714)
                #41 0x0000563b939d9646 execlist (zsh + 0x42646)
                #42 0x0000563b93a0dad4 exectry (zsh + 0x76ad4)
                #43 0x0000563b939d50ed n/a (zsh + 0x3e0ed)
                #44 0x0000563b939d72cf n/a (zsh + 0x402cf)
                #45 0x0000563b939d7714 n/a (zsh + 0x40714)
                #46 0x0000563b939d9646 execlist (zsh + 0x42646)
                #47 0x0000563b939d9e3e execode (zsh + 0x42e3e)
                #48 0x0000563b939dd799 runshfunc (zsh + 0x46799)
                #49 0x00007f807c69292b n/a (complete.so + 0xa92b)
                #50 0x0000563b939dd52d runshfunc (zsh + 0x4652d)
                #51 0x0000563b939ddeda doshfunc (zsh + 0x46eda)
                #52 0x00007f807c69807f do_completion (complete.so + 0x1007f)
                #53 0x00007f807c6e9fbe n/a (zle.so + 0x39fbe)
                #54 0x00007f807c6e1074 completecall (zle.so + 0x31074)
                #55 0x00007f807c6ce70f execzlefunc (zle.so + 0x1e70f)
                #56 0x00007f807c6d0831 zlecore (zle.so + 0x20831)
                #57 0x00007f807c6d15c4 zleread (zle.so + 0x215c4)
                #58 0x0000563b939fde34 zleentry (zsh + 0x66e34)
                #59 0x0000563b939fe6a6 ingetc (zsh + 0x676a6)
                #60 0x0000563b939f14b4 n/a (zsh + 0x5a4b4)
                #61 0x0000563b93a0c28f n/a (zsh + 0x7528f)
                #62 0x0000563b93a2f0a8 parse_event (zsh + 0x980a8)
                #63 0x0000563b939f79b6 loop (zsh + 0x609b6)
                ELF object binary architecture: AMD x86-64


On 2022-06-04 22:06, Bart Schaefer wrote:
On Sat, Jun 4, 2022 at 12:39 AM Johan Ström <johan@xxxxxxxxxxx> wrote:
Hm, I had cases where terminals have been on the same virtual desktop,
with no re-arranging going on at the moment, or since last being used
(basically only resuming work in existing windows).
Not sure if SIGWINCH would be sent by just switching virtual desktop (sway).
One reason I'm speculating about this is because of this from your
previous stack trace:

                  #9  0x000055ff7ab040f8 zalloc (zsh + 0x730f8)
                  #10 0x00007fb08a549417 calclist (complete.so + 0x1b417)
                  #11 0x00007fb08a54b040 ilistmatches (complete.so + 0x1d040)

There's only one zalloc() in calclist:

             ws = g->widths = (int *) zalloc(zterm_columns * sizeof(int));

If zterm_columns has somehow become messed up, this might run you out of memory.

Then in the other trace you have:

                  #10 0x000055d4aa005493 zhandler (zsh + 0xa8493)
                  #11 0x00007f2f935388e0 n/a (libc.so.6 + 0x3e8e0)
                  #12 0x00007f2f935fbef2 read (libc.so.6 + 0x101ef2)

That definitely means a signal was received, and SIGWINCH is
explicitly unblocked around that read() call, but it goes straight on
to:

                  #9  0x000055d4a9fc3874 zleentry (zsh + 0x66874)

The only way to get to that from a signal handler is when a
user-defined trap is run:

     /*
      * If zle was running while the trap was executed, see if we
      * need to restore the display.
      */
     if (zleactive && resetneeded)
         zleentry(ZLE_CMD_REFRESH);

However (I suspect) the compiler has optimized out a couple of
intervening function calls, which is why I hope you can get this to
reoccur with a debug build.

In /etc/zsh, only zprofile:
https://github.com/archlinux/svntogit-packages/blob/packages/zsh/trunk/zprofile
Which references this:
https://github.com/archlinux/svntogit-packages/blob/packages/filesystem/trunk/profile
Yes, which does
   emulate sh -c 'source /etc/profile'
though it seems unlikely that anything too weird is coming in that way.




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