ID: 37061 User updated by: ceo at l-i-e dot com Reported By: ceo at l-i-e dot com -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: FreeBSD 5.3-RELEASE PHP Version: 5.1.2 New Comment:
Jeez, I'm fumbling today. http://acousticdemo.com/info.com/overture/binarytransfer.phps Previous Comments: ------------------------------------------------------------------------ [2006-04-13 00:05:57] [EMAIL PROTECTED] 404 not found... ------------------------------------------------------------------------ [2006-04-12 23:47:48] ceo at l-i-e dot com Errr. To be 100% clear: The $html strings should not be non-zero-terminated. $jpeg makes perfect sense as non-zero-terminated, to me. ------------------------------------------------------------------------ [2006-04-12 23:38:56] ceo at l-i-e dot com Okay. HERE is a short (35 lines) script which will yield: Warning: String is not zero-terminated I don't think the strings involved should have any problem being zero-terminated -- They are just HTML plain-text. This MAY not solve this bug, but it's an easy avenue to explore, and MAY solve the root cause of this bug, if my suspicions are correct. http://acousticdemo.com/binarytransfer.phps NOTE: You'll have to run it from CLI (or CGI) and --enable-debug to get the messages. Note that the strings ONLY get "not zero-terminated" if you do the CURLOPT_BINARYTRANFER part of the script. Comment out that middle section, and warnings go away. Surely this should not behave like this, right? ------------------------------------------------------------------------ [2006-04-12 23:17:22] [EMAIL PROTECTED] No need to install it in the system or use some ports. Just grab the latest valgrind sources and compile them in your own HOME directory. IIRC latest relase compiled on FreeBSD just fine. ------------------------------------------------------------------------ [2006-04-12 23:06:54] ceo at l-i-e dot com Just to keep you readers posted: Compiling --without-zend-memory-manager is easy, and it still terminates prematurely. valgrind, however, will take some time... >From source yields: checking for a supported CPU/OS combination... no (i386-freebsd5.3) configure: error: Valgrind is platform specific. Sorry. Please consider doing a port. It's in the ports tree, but I'm not root, so I've asked for it to get installed. Or maybe I could convince ports tree to install it in my homedir somehow? I'll search for a way to do that. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/37061 -- Edit this bug report at http://bugs.php.net/?id=37061&edit=1