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

ZSH-Bug (?): glibc, "double-free or corruption"



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



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