zsh-workers
 help / color / mirror / code / Atom feed
* ZSH-Bug (?): glibc, "double-free or corruption"
@ 2005-12-26 23:40 Jonas Kramer
  2006-01-06 11:13 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Jonas Kramer @ 2005-12-26 23:40 UTC (permalink / raw)
  To: zsh-workers

Hi,

I think I found a bug here. I'm just writing a CGI page in ZSH script 
and the server (lighttpd 1.4.7) kills my script and logs messages like 
the followings to the error log file:

(\M-x^M^HH($\M-3init.z:13: no matches found: ()
*** glibc detected *** double free or corruption (!prev): 0x080df4f8 ***
2005-12-27 00:16:55: (mod_cgi.c.553) cgi died, pid: 10981
\M-T^M^HHx\M-/\M-%init.z:13: no matches found: ()
*** glibc detected *** double free or corruption (!prev): 0x080dd168 ***
2005-12-27 00:21:25: (mod_cgi.c.553) cgi died, pid: 30457
\M-(*^N^HH\M-(\M-C\M-/init.z:13: no matches found: ()
*** glibc detected *** double free or corruption (!prev): 0x080e8478 ***
2005-12-27 00:23:16: (mod_cgi.c.553) cgi died, pid: 10287
\M-b^M^HHX5\M-"init.z:13: no matches found: ()
*** glibc detected *** double free or corruption (!prev): 0x080ddf68 ***
2005-12-27 00:23:44: (mod_cgi.c.553) cgi died, pid: 21509
\M-h]^N^HHx\M--\M-)init.z:13: no matches found: ()
*** glibc detected *** double free or corruption (!prev): 0x080e5ab8 ***
2005-12-27 00:25:17: (mod_cgi.c.553) cgi died, pid: 19649
x\M-4^M^HH\M-8\M-B\M-)init.z:13: no matches found: ()
*** glibc detected *** double free or corruption (!prev): 0x080db148 ***
2005-12-27 00:25:24: (mod_cgi.c.553) cgi died, pid: 27245
(\M-[^M^HHXQ\M-&init.z:13: no matches found: ()
*** glibc detected *** double free or corruption (!prev): 0x080dd7f8 ***
2005-12-27 00:26:13: (mod_cgi.c.553) cgi died, pid: 30891

The relevant source in init.z is the following:

typeset -A POST
if [ $CONTENT_LENGTH -gt 0 ]; then
  read -n 0 -k $CONTENT_LENGTH BUF
  IFS="\r\n"
  for LINE in ($(print $BUF)); do
    IFS="="
    X=($(print $LINE))
                print "$X[1] -> $X[2]<br>"
  done
fi

I'd be grateful for any ideas to avoid this behaviour until the bug is 
fixed. :)

Greetings,

Jonas


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

end of thread, other threads:[~2006-01-06 11:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-26 23:40 ZSH-Bug (?): glibc, "double-free or corruption" Jonas Kramer
2006-01-06 11:13 ` Peter Stephenson

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).