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

Re: Modules on HP-UX (Re: D07multibyte.ztst failure on HP-UX 11.11)



On Fri, 08 May 2009 07:20:04 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On May 8,  9:34am, Peter Stephenson wrote:
> } Subject: Re: Modules on HP-UX (Re: D07multibyte.ztst failure on HP-UX 11.1
> }
> } On Thu, 07 May 2009 16:30:27 -0700
> } Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> } > schaefer<501> zmodload -u $(zmodload)
> } > zmodload: module zsh/complete is in use by another module and cannot be unloaded
> } > zmodload: module zsh/zle is in use by another module and cannot be unloaded
> } > schaefer<502> zmodload -u $(zmodload)
> } > Program received signal SIGSEGV, Segmentation fault.
> } > 0x081284c7 in resetvideo () at ../../../zsh-4.0/Src/Zle/zle_refresh.c:739
> } > 739             if (nbuf[ln]) {
> } 
> } Does this help?
> 
> It moves the segfault somewhere else, at least; now it craps out when
> referencing the value of $COLUMNS in my precmd.  (Read more below the
> stack trace.)
> 
> (gdb) where
> #0  0x00462ed0 in _int_malloc () from /lib/tls/libc.so.6
> #1  0x00464aa1 in malloc () from /lib/tls/libc.so.6
> #2  0x0808ee3d in zshcalloc (size=48) at ../../zsh-4.0/Src/mem.c:601
> #3  0x080973fb in createparam (name=0xb7cd63d8 "colno", flags=2097152)
>     at ../../zsh-4.0/Src/params.c:841
>...
> (gdb) where
> #0  0x00462ed0 in _int_malloc () from /lib/tls/libc.so.6
> #1  0x00464aa1 in malloc () from /lib/tls/libc.so.6
> #2  0x0808eccb in zalloc (size=44) at ../../zsh-4.0/Src/mem.c:583
> #3  0x0813654f in mkundoent () at ../../../zsh-4.0/Src/Zle/zle_utils.c:1072

Looks to me like some basic memory corruption:  is it worth running
valgrind?

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



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