zsh-workers
 help / color / mirror / code / Atom feed
* Segfault with newer .zwc
@ 2008-01-07 17:39 Jörg Sommer
  2008-01-08  9:53 ` Peter Stephenson
  0 siblings, 1 reply; 13+ messages in thread
From: Jörg Sommer @ 2008-01-07 17:39 UTC (permalink / raw)
  To: zsh-workers

Hi,

I've built a zwc with “zcompile .zshrc” from the zsh-beta package in
Debian (last Changelog entry is 2007-12-27). When using this file with
zsh from the zsh package (last Changelog entry is 2007-12-20) it crashes.
I can start with this file, but accessing an alias defined in this file
the shell segfaults.

Further tests should it is much more tricky. My .zshrc and .zshenv are at
http://www.minet.uni-jena.de/~joergs/zshrc
http://www.minet.uni-jena.de/~joergs/zshenv
Starting zsh-beta as *normal* user compiles the .zshrc.zwc and
.zshenv.zwc. Starting then zsh as *root* and running agi test crashes the
shell.

I think the problem is this part:
    agi()
    {
        local rc=0
        ag install $@ || rc=$?
        check-etc
        deborphan
        return $rc
    }
    alias agi='noglob agi'

While this works don't doing that above, it creates a loop in the above
situation. gdb shows 1526 stack frames and repeats the following:

#1508 0x10027500 in execlist ()
#1509 0x100276cc in execode ()
#1510 0x10027834 in runshfunc ()
#1511 0x10027c70 in doshfunc ()
#1512 0x10025bf0 in ?? ()
#1513 0x10026124 in ?? ()
#1514 0x1002662c in ?? ()
#1515 0x10027500 in execlist ()
#1516 0x100276cc in execode ()
#1517 0x10027834 in runshfunc ()
#1518 0x10027c70 in doshfunc ()
#1519 0x10025bf0 in ?? ()
#1520 0x10026124 in ?? ()
#1521 0x1002662c in ?? ()
#1522 0x10027174 in execlist ()
#1523 0x100276cc in execode ()
#1524 0x1003a4b0 in loop ()
#1525 0x1003b3a4 in zsh_main ()
#1526 0x1000dc10 in main ()

Or is gdb broken?

Bye, Jörg.
-- 
Nichts ist so langweilig, wie die Wiederholung seinerselbst.
                                        (Marcel Reich‐Ranicki)


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

end of thread, other threads:[~2008-02-02  3:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-07 17:39 Segfault with newer .zwc Jörg Sommer
2008-01-08  9:53 ` Peter Stephenson
2008-01-09 19:12   ` Clint Adams
2008-01-10  9:50     ` Peter Stephenson
2008-01-15  2:06       ` Clint Adams
2008-01-15  9:10         ` Peter Stephenson
2008-01-18 17:02           ` ZSH_EXTRAVERSION [was Re: Segfault with newer .zwc] Clint Adams
2008-01-21  1:48             ` Geoff Wing
2008-01-22  1:35               ` Clint Adams
2008-02-01  2:54                 ` ZSH_VERSIONSUFFIX [was Re: ZSH_EXTRAVERSION [was Re: Segfault with newer .zwc]] Clint Adams
2008-02-01 11:22                   ` Peter Stephenson
2008-02-01 11:28                     ` Peter Stephenson
2008-02-02  3:13                     ` 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).