zsh-workers
 help / color / mirror / code / Atom feed
* zsh 5.0.2 dumps core on AIX 6.1 when running compinit.
@ 2013-12-16 14:04 Dirk Heinrichs
  2013-12-16 15:29 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Dirk Heinrichs @ 2013-12-16 14:04 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 820 bytes --]

Hi,

as the subject says: When I try to use compinit in zsh 5.0.2 on AIX 6.1,
I get a segfault:

$ uname -a
AIX he-aix-build 1 6 00F8991A4C00
$ zsh --version
zsh 5.0.2 (powerpc-ibm-aix5.1.0.0)
$ cat .zshrc
# Created by newuser for 5.0.2
$ zsh -f
he-aix-build% autoload -Uz compinit
he-aix-build% compinit
Segmentation fault (core dumped)

zsh has been installed using a package from http://www.perzl.org/aix/.

Bug in zsh or problem with the package?

Bye...

    Dirk
<http://www.perzl.org/aix/>
-- 

*Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 1596666 (Ansage) 1149
*Email*: dhs@recommind.com <mailto:dhs@recommind.com>
*Skype*: dirk.heinrichs.recommind
www.recommind.com <http://www.recommind.com>



http://www.recommind.com

[-- Attachment #2.1: Type: text/html, Size: 1417 bytes --]

[-- Attachment #2.2: Logo.gif --]
[-- Type: image/gif, Size: 1537 bytes --]

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

* Re: zsh 5.0.2 dumps core on AIX 6.1 when running compinit.
  2013-12-16 14:04 zsh 5.0.2 dumps core on AIX 6.1 when running compinit Dirk Heinrichs
@ 2013-12-16 15:29 ` Bart Schaefer
  2013-12-18  9:08   ` Dirk Heinrichs
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2013-12-16 15:29 UTC (permalink / raw)
  To: Dirk Heinrichs, zsh-workers

On Dec 16,  3:04pm, Dirk Heinrichs wrote:
} 
} as the subject says: When I try to use compinit in zsh 5.0.2 on AIX 6.1,
} I get a segfault

zsh 5.0.3 was just released.  Is it possible for you to re-confirm the
bug with that version?  If not, or if the problem is still present in
5.0.3, please send a stack trace from the crash you experienced.


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

* Re: zsh 5.0.2 dumps core on AIX 6.1 when running compinit.
  2013-12-16 15:29 ` Bart Schaefer
@ 2013-12-18  9:08   ` Dirk Heinrichs
  2013-12-18 16:42     ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Dirk Heinrichs @ 2013-12-18  9:08 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 1149 bytes --]

Am 16.12.2013 16:29, schrieb Bart Schaefer:

> zsh 5.0.3 was just released.  Is it possible for you to re-confirm the
> bug with that version?  If not, or if the problem is still present in
> 5.0.3, please send a stack trace from the crash you experienced.

I recompiled both zsh 5.0.2 and 5.0.3 myself, using gcc (the package
from perzl.org was compiled with the native AIX compiler). Both
self-compiled versions work fine, so it seams to be an issue with the
package from perzl.org. I'll see if I can address this with Michael Perzl.

There's one small issue with 5.0.3. It prints the following message:
# /tmp/zsh/bin/zsh -f
he-aix-main-61# autoload -Uz compinit
he-aix-main-61# compinit
compaudit:zstat:102: /proc/8781864/exe: a file or directory in the path
name does not exist.

5.0.2 doesn't do this.

Bye...

    Dirk
-- 

*Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 1596666 (Ansage) 1149
*Email*: dhs@recommind.com <mailto:dhs@recommind.com>
*Skype*: dirk.heinrichs.recommind
www.recommind.com <http://www.recommind.com>



http://www.recommind.com

[-- Attachment #2.1: Type: text/html, Size: 1852 bytes --]

[-- Attachment #2.2: Logo.gif --]
[-- Type: image/gif, Size: 1537 bytes --]

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

* Re: zsh 5.0.2 dumps core on AIX 6.1 when running compinit.
  2013-12-18  9:08   ` Dirk Heinrichs
@ 2013-12-18 16:42     ` Bart Schaefer
  0 siblings, 0 replies; 4+ messages in thread
From: Bart Schaefer @ 2013-12-18 16:42 UTC (permalink / raw)
  To: Dirk Heinrichs, zsh-workers

On Dec 18, 10:08am, Dirk Heinrichs wrote:
}
} I recompiled both zsh 5.0.2 and 5.0.3 myself, using gcc (the package
} from perzl.org was compiled with the native AIX compiler). Both
} self-compiled versions work fine, so it seams to be an issue with the
} package from perzl.org. I'll see if I can address this with Michael
} Perzl.

Could be a difference of the AIX compiler as well.

} he-aix-main-61# compinit
} compaudit:zstat:102: /proc/8781864/exe: a file or directory in the path
} name does not exist.

That was a silly one.

diff --git a/Completion/compaudit b/Completion/compaudit
index 75742a0..00125e4 100644
--- a/Completion/compaudit
+++ b/Completion/compaudit
@@ -101,7 +101,7 @@ for _i_exe in $_i_exes; do
   if [[ -e $_i_exe ]] ;then
     if zmodload -F zsh/stat b:zstat 2>/dev/null; then
       local -A _i_stathash
-      if zstat -H _i_stathash /proc/$$/exe &&
+      if zstat -H _i_stathash $_i_exe &&
 	[[ $_i_stathash[uid] -ne 0 ]]; then
 	_i_owners+="u${_i_stathash[uid]}"
       fi


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

end of thread, other threads:[~2013-12-18 16:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-16 14:04 zsh 5.0.2 dumps core on AIX 6.1 when running compinit Dirk Heinrichs
2013-12-16 15:29 ` Bart Schaefer
2013-12-18  9:08   ` Dirk Heinrichs
2013-12-18 16:42     ` 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).