Bug #1031: unlink causes seg fault

From: Date: Tue, 05 Jan 1999 19:21:10 +0000
Subject: Bug #1031: unlink causes seg fault
Groups: php.dev 
Request: Send a blank email to php-dev+get-3292@lists.php.net to get a copy of this message
From: michael@irc.net Operating system: Linux 2.0.36 - Red Hat 5.1 PHP version: 3.0.6 PHP Bug Type: Reproduceable crash Bug description: unlink causes seg fault --pdf.php3-- <? header("Content-type: application/pdf"); $fd = fopen("/tmp/hello.pdf", "w"); $info = PDF_get_info(); PDF_set_info_creator($info, "bleh"); PDF_set_info_title($info, "hello $REMOTE_HOST"); PDF_set_info_subject($info, "hello $REMOTE_HOST"); PDF_set_info_keywords($info, "hello $REMOTE_HOST"); PDF_set_info_author($info, "bleh"); $pdffd = pdf_open($fd, $info); PDF_begin_page($pdffd, 595.0, 842.0); PDF_set_font($pdffd, "Helvetica-Bold", 20.0, winansi); PDF_set_text_pos($pdffd, 50, 700); PDF_show($pdffd, "Hello $REMOTE_HOST!\n"); pdf_show_xy($pdffd, date("l dS of F Y h:i:s A"), 30.0, 400.0); PDF_end_page($pdffd); PDF_close($pdffd); fclose($fd); $pdfdocument = readfile("/tmp/hello.pdf"); echo $pdfdocument; //system("rm /tmp/hello.pdf"); unlink("/tmp/hello.pdf"); ?> --EOF-- ./configure --with-mysql=/usr --with-gd --with-zlib --with-apache=../apache_1.3.3 --enable-track-vars --with-pdflib --/var/log/httpd/error_log-- [Tue Jan 5 11:10:14 1999] [notice] httpd: child pid 7397 exit signal Segmentation fault (11) ---- PHP wouldn't generate a core file..I ran httpd -X as root and did unlimit coredumpsize...find / -name core reports nothing :\ unlink causes the crash, though if i comment unlink out, and use system, it works... -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3292) next »