zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Modules on HP-UX (Re: D07multibyte.ztst failure on HP-UX 11.11)
Date: Thu, 07 May 2009 16:30:27 -0700	[thread overview]
Message-ID: <090507163027.ZM15925@torch.brasslantern.com> (raw)
In-Reply-To: <20090507220819.GA13920@svalbard>

On May 7, 10:08pm, Paul Ackersviller wrote:
} Subject: Re: D07multibyte.ztst failure on HP-UX 11.11
}
} BTW, there's one other thing with HP-UX tests I've been ignoring until
} now, but would like to look at shortly.  They end with:
} 	rm: cannot remove `Modules/zsh/parameter.so': Text file busy
} 	rm: cannot remove `Modules/zsh/zutil.so': Text file busy
} 	rm: cannot remove `Modules/zsh/complete.so': Text file busy
} 	rm: cannot remove `Modules/zsh/complist.so': Text file busy
} 	rm: cannot remove `Modules/zsh/computil.so': Text file busy
} 	rm: cannot remove `Modules/zsh/zle.so': Text file busy

The test script creates a shadow directory with copies of all the
shared objects so that it has a stable module_path for zmodload.
HP-UX does paging for shared objects directly out of their files,
so those files can't be removed while loaded by an application.

It might work to "zmodload -u" the modules before "rm"ing the files.
However:

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]) {

(gdb) where
#0  0x081284c7 in resetvideo () at ../../../zsh-4.0/Src/Zle/zle_refresh.c:739
#1  0x08129087 in zrefresh () at ../../../zsh-4.0/Src/Zle/zle_refresh.c:1123
#2  0x08120c3f in zleread (lp=0x816c9b0, rp=0x0, flags=3, context=0)
    at ../../../zsh-4.0/Src/Zle/zle_main.c:1202
#3  0x08122a34 in zle_main_entry (cmd=1, ap=0xbffb30b4 "À0û¿")
    at ../../../zsh-4.0/Src/Zle/zle_main.c:1866
#4  0x0807dc91 in zleentry (cmd=1) at ../../zsh-4.0/Src/init.c:1247
#5  0x0807e4ef in inputline () at ../../zsh-4.0/Src/input.c:278
#6  0x0807e3a4 in ingetc () at ../../zsh-4.0/Src/input.c:214
#7  0x0807445a in ihgetc () at ../../zsh-4.0/Src/hist.c:263
#8  0x08085c19 in gettok () at ../../zsh-4.0/Src/lex.c:677
#9  0x080854f9 in zshlex () at ../../zsh-4.0/Src/lex.c:364
#10 0x080a012c in parse_event () at ../../zsh-4.0/Src/parse.c:451
#11 0x0807b035 in loop (toplevel=1, justonce=0) at ../../zsh-4.0/Src/init.c:131
#12 0x0807dfed in zsh_main (argc=1, argv=0xbffb3294)
    at ../../zsh-4.0/Src/init.c:1409
#13 0x0804cbea in main (argc=1, argv=0xbffb3294) at ../../zsh-4.0/Src/main.c:93

Apparently zle's cleanup_() routine is not quite comprehensive enough;
maybe some of what's in finish_() needs to be in cleanup_() instead?
Or perhaps it needs to unsetopt ZLE ...

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
zsh/complete
zsh/parameter
zsh/zle
schaefer<503> zmodload -u zsh/complete
schaefer<504> zmodload -u zsh/parameter
schaefer<505> unsetopt zle
schaefer<506> zmodload -u zsh/zle
schaefer<507> setopt zle

Program received signal SIGSEGV, Segmentation fault.
0x081284db in resetvideo () at ../../../zsh-4.0/Src/Zle/zle_refresh.c:739
739             if (nbuf[ln]) {


  reply	other threads:[~2009-05-07 23:30 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-27  3:17 D07multibyte.ztst failure on HP-UX 11.11 Paul Ackersviller
2009-04-27  4:42 ` Andrey Borzenkov
2009-04-27 19:26   ` Paul Ackersviller
2009-04-28  8:48     ` Peter Stephenson
2009-04-28 19:19       ` Paul Ackersviller
2009-04-28 19:48         ` Peter Stephenson
2009-04-30  3:01           ` Paul Ackersviller
2009-04-30  8:41             ` Peter Stephenson
2009-04-30 15:58               ` Paul Ackersviller
2009-04-30 16:03                 ` Peter Stephenson
2009-05-01 14:52                   ` Paul Ackersviller
2009-05-01 15:18                     ` Peter Stephenson
2009-05-05 19:39                       ` Paul Ackersviller
2009-05-06 19:22                         ` Peter Stephenson
2009-05-06 21:50                           ` Paul Ackersviller
2009-05-07 15:38                             ` Peter Stephenson
2009-05-07 16:02                               ` Peter Stephenson
2009-05-07 22:08                                 ` Paul Ackersviller
2009-05-07 23:30                                   ` Bart Schaefer [this message]
2009-05-08  8:34                                     ` Modules on HP-UX (Re: D07multibyte.ztst failure on HP-UX 11.11) Peter Stephenson
2009-05-08 14:20                                       ` Bart Schaefer
2009-05-08 14:29                                         ` Peter Stephenson
     [not found]                                           ` <090508084125.ZM17697@torch.brasslantern.com>
2009-05-11  8:52                                             ` Peter Stephenson
2009-05-08 18:42                                     ` Modules on HP-UX Paul Ackersviller
2009-05-12 20:22                                     ` Modules on HP-UX, with small PATCH Paul Ackersviller
2009-05-08 14:23                                   ` D07multibyte.ztst failure on HP-UX 11.11 Peter Stephenson
2009-05-02  1:00               ` Phil Pennock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=090507163027.ZM15925@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).