zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug - invalid pointer
@ 2018-04-14  2:00 John Ramsden
  2018-04-14  2:16 ` Bart Schaefer
  0 siblings, 1 reply; 11+ messages in thread
From: John Ramsden @ 2018-04-14  2:00 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: zsh-workers

Okay, so I went ahead and recompiled by adding 'options=(debug !strip)' to my PKGBUILD on Arch. That's all I changed so if I need to do something else to get full debugging symbols let me know.

Here's the new core dump:

coredumpctl gdb 15809
           PID: 15809 (zsh)
           UID: 1000 (john)
           GID: 1000 (john)
        Signal: 6 (ABRT)
     Timestamp: Fri 2018-04-13 18:53:35 PDT (1min 44s ago)
  Command Line: /usr/bin/zsh
    Executable: /usr/bin/zsh
 Control Group: /user.slice/user-1000.slice/session-c1.scope
          Unit: session-c1.scope
         Slice: user-1000.slice
       Session: c1
     Owner UID: 1000 (john)
       Boot ID: 529c2cf77df04e549005b8b08ace78d1
    Machine ID: 6f76760fe58f4b6293e0004853517d7d
      Hostname: wooly
       Storage: /var/lib/systemd/coredump/core.zsh.1000.529c2cf77df04e549005b8b08ace78d1.15809.1523670815000000.lz4
       Message: Process 15809 (zsh) of user 1000 dumped core.
                
                Stack trace of thread 15809:
                #0  0x00007f27252fc860 raise (libc.so.6)
                #1  0x00007f27252fdec9 abort (libc.so.6)
                #2  0x00007f272533f437 __libc_message (libc.so.6)
                #3  0x00007f272534578b malloc_printerr (libc.so.6)
                #4  0x00007f272534724c _int_free (libc.so.6)
                #5  0x00007f2724e91e19 singlerefresh (zle.so)
                #6  0x00007f2724e852e6 zleread (zle.so)
                #7  0x0000556344d3a784 zleentry (zsh)
                #8  0x0000556344d3bcb8 inputline (zsh)
                #9  0x0000556344d3356c ihgetc (zsh)
                #10 0x0000556344d4565e gettok (zsh)
                #11 0x0000556344d65437 parse_event (zsh)
                #12 0x0000556344d36ee5 loop (zsh)
                #13 0x0000556344d3adf6 zsh_main (zsh)
                #14 0x00007f27252e8f4a __libc_start_main (libc.so.6)
                #15 0x0000556344d009aa _start (zsh)

GNU gdb (GDB) 8.1
(gdb) bt
#0  0x00007f27252fc860 in raise () from /usr/lib/libc.so.6
#1  0x00007f27252fdec9 in abort () from /usr/lib/libc.so.6
#2  0x00007f272533f437 in __libc_message () from /usr/lib/libc.so.6
#3  0x00007f272534578b in malloc_printerr () from /usr/lib/libc.so.6
#4  0x00007f272534724c in _int_free () from /usr/lib/libc.so.6
#5  0x00007f2724e91e19 in singlerefresh (tmpcs=<optimized out>, tmpll=0, tmpline=0x5563468aebc0 L"") at zle_refresh.c:2656
#6  zrefresh () at zle_refresh.c:1188
#7  0x00007f2724e852e6 in zleread (lp=<optimized out>, rp=<optimized out>, flags=<optimized out>, context=<optimized out>, init=0x7f2724ea3abd "zle-line-init", 
    finish=0x7f2724ea3aad "zle-line-finish") at zle_main.c:1322
#8  0x0000556344d3a784 in zleentry (cmd=cmd@entry=1) at init.c:1602
#9  0x0000556344d3bcb8 in inputline () at input.c:295
#10 ingetc () at input.c:228
#11 0x0000556344d3bedf in ingetc () at input.c:196
#12 0x0000556344d3356c in ihgetc () at hist.c:407
#13 0x0000556344d4565e in gettok () at lex.c:611
#14 zshlex () at lex.c:275
#15 0x0000556344d4639e in zshlex () at lex.c:268
#16 0x0000556344d65437 in parse_event (endtok=endtok@entry=37) at parse.c:581
#17 0x0000556344d36ee5 in loop (toplevel=toplevel@entry=1, justonce=justonce@entry=0) at init.c:146
#18 0x0000556344d3adf6 in zsh_main (argc=<optimized out>, argv=<optimized out>) at init.c:1756
#19 0x00007f27252e8f4a in __libc_start_main () from /usr/lib/libc.so.6
#20 0x0000556344d009aa in _start ()


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Bug - invalid pointer
@ 2018-04-13 21:56 John Ramsden
  2018-04-14  1:29 ` Bart Schaefer
  0 siblings, 1 reply; 11+ messages in thread
From: John Ramsden @ 2018-04-13 21:56 UTC (permalink / raw)
  To: zsh-workers

I would like to report a bug that causes zsh to crash with an invalid pointer.

So far I've only been able to reproduce the bug in dolphin's embedded terminal, an associated bug report can be on KDE bug reports [1].

The message I get upon the crash is:

---

free(): invalid pointer
Warning: Program '/usr/bin/zsh' crashed.

---

This only happens in dolphin, and only upon opening a new dolphin window. If I close and re-open the terminal panel, there is no crash.

Downgrade of zsh (5.5-1 => 5.4.2-2) fixes the issue.

1 - https://bugs.kde.org/show_bug.cgi?id=393058

-- 
  John Ramsden


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-04-14 19:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-14  2:00 Bug - invalid pointer John Ramsden
2018-04-14  2:16 ` Bart Schaefer
2018-04-14  3:19   ` John Ramsden
2018-04-14  3:57     ` Bart Schaefer
2018-04-14  5:34       ` John Ramsden
2018-04-14 10:20         ` Julien Nicoulaud
2018-04-14 19:34           ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
2018-04-13 21:56 John Ramsden
2018-04-14  1:29 ` Bart Schaefer
2018-04-14  1:43   ` John Ramsden
2018-04-14  1:57     ` Bart Schaefer

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