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

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



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



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