Test: /ext/curl/tests/bug54798.phpt - Version 5.4.0RC8        

Bug #54798 Segfault when CURLOPT_STDERR file pointer is closed before calling curl_exec
Submitted: 2011-05-17 16:25:32 Modified: 2011-09-12 09:19:17
From: shein Assigned: bjori
Status: Closed Package: cURL related
PHP Version: trunk-SVN-2011-05-17 (SVN) OS: Ubuntu Linux 11.04 x86

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
003+ * Trying 192.168.1.22... * connected
004+ * Connected to 192.168.1.22 (192.168.1.22) port 80 (#0)
005+ > GET / HTTP/1.1
006+ Host: 192.168.1.22
007+ Accept: */*
003- * Closing connection #%d
004- Ok for CURLOPT_STDERR
009+ < HTTP/1.1 200 OK
010+ < Server: nginx/1.0.4
011+ < Date: Sat, 18 Feb 2012 17:32:11 GMT
012+ < Content-Type: text/html; charset=UTF-8
013+ < Transfer-Encoding: chunked
014+ < Connection: keep-alive
015+ < X-Powered-By: PHP/5.3.9
016+ < X-Pingback: http://wp.srsbiz.pl/xmlrpc.php
017+ <
018+ * Connection #0 to host 192.168.1.22 left intact
019+ * Closing connection #0
020+ Ok for CURLOPT_STDERR
021+
011- Ok for CURLOPT_FILE
012-
013- Warning: curl_exec(): CURLOPT_INFILE resource has gone away, resetting to default in %sbug54798.php on line %d
014- Ok for CURLOPT_INFILE
027+ <!--[if IE 6]>
028+ <html id="ie6" dir="ltr" lang="en-US">
029+ <![endif]-->
030+ <!--[if IE 7]>
031+ <html id="ie7" dir="ltr" lang="en-US">
032+ <![endif]-->
033+ <!--[if IE 8]>
034+ <html id="ie8" dir="ltr" lang="en-US">
035+ <![endif]-->
036+ <!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
037+ <html dir="ltr" lang="en-US">
038+ <!--<![endif]-->
039+ <head>
040+ <meta charset="UTF-8" />
041+ <meta name="viewport" content="width=device-width" />
042+ <title>Serious Business | Just another WordPress site</title>
043+ <link rel="profile" href="http://gmpg.org/xfn/11" />
044+ <link rel="stylesheet" type="text/css" media="all" href="http://wp.srsbiz.pl/wp-content/themes/twentyeleven/style.css" />
045+ <link rel="pingback" href="http://wp.srsbiz.pl/xmlrpc.php" />
046+ <!--[if lt IE 9]>
047+ <script src="http://wp.srsbiz.pl/wp-content/themes/twentyeleven/js/html5.js" type="text/javascript"></script>
048+ <![endif]-->
049+ <meta name='robots' content='noindex,nofollow' />
050+ <link rel="alternate" type="application/rss+xml" title="Serious Business &raquo; Feed" href="http://wp.srsbiz.pl/feed/" />
051+ <link rel="alternate" type="application/rss+xml" title="Serious Business &raquo; Comments Feed" href="http://wp.srsbiz.pl/comments/feed/" />
052+ <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://wp.srsbiz.pl/xmlrpc.php?rsd" />
053+ <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://wp.srsbiz.pl/wp-includes/wlwmanifest.xml" />
054+ <meta name="generator" content="WordPress 3.3" />
055+ </head>
056+
057+ <body class="home blog single-author two-column right-sidebar">
058+ <div id="page" class="hfeed">
059+ <header id="branding" role="banner">
060+ <hgroup>
061+ <h1 id="site-title"><span><a href="http://wp.srsbiz.pl/" title="Serious Business" rel="home">Serious Business</a></span></h1>
062+ <h2 id="site-description">Just another WordPress site</h2>
063+ </hgroup>
064+
065+ <a href="http://wp.srsbiz.pl/">
066+ <img src="http://wp.srsbiz.pl/wp-content/themes/twentyeleven/images/headers/lanterns.jpg" width="1000" height="288" alt="" />
067+ </a>
068+
069+ <form method="get" id="searchform" action="http://wp.srsbiz.pl/">
070+ <label for="s" class="assistive-text">Search</label>
071+ <input type="text" class="field" name="s" id="s" placeholder="Search" />
072+ <input type="submit" class="submit" name="submit" id="searchsubmit" value="Search" />
073+ </form>
074+
075+ <nav id="access" role="navigation">
076+ <h3 class="assistive-text">Main menu</h3>
077+ <div class="skip-link"><a class="assistive-text" href="#content" title="Skip to primary content">Skip to primary content</a></div>
078+ <div class="skip-link"><a class="assistive-text" href="#secondary" title="Skip to secondary content">Skip to secondary content</a></div>
079+ <div class="menu"><ul><li class="current_page_item"><a href="http://wp.srsbiz.pl/" title="Home">Home</a></li><li class="page_item page-item-6"><a href="http://wp.srsbiz.pl/about-me/">About Me</a></li><li class="page_item page-item-2"><a href="http://wp.srsbiz.pl/sample-page/">Sample Page</a></li></ul></div>
080+ </nav><!-- #access -->
081+ </header><!-- #branding -->
082+
083+
084+ <div id="main">
085+ <div id="primary">
086+ <div id="content" role="main">
087+
088+
089+
090+
091+
092+ <article id="post-4" class="post-4 post type-post status-publish format-standard hentry category-uncategorized">
093+ <header class="entry-header">
094+ <h1 class="entry-title"><a href="http://wp.srsbiz.pl/2011/06/18/pink-robot-is-pink/" title="Permalink to Pink robot is pink." rel="bookmark">Pink robot is pink.</a></h1>
095+
096+ <div class="entry-meta">
097+ <span class="sep">Posted on </span><a href="http://wp.srsbiz.pl/2011/06/18/pink-robot-is-pink/" title="15:32:08" rel="bookmark"><time class="entry-date" datetime="2011-06-18T15:32:08+00:00" pubdate>2011-06-18</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://wp.srsbiz.pl/author/srsbiz/" title="View all posts by srsbiz" rel="author">srsbiz</a></span></span> </div><!-- .entry-meta -->
098+
099+ <div class="comments-link">
100+ <a href="http://wp.srsbiz.pl/2011/06/18/pink-robot-is-pink/#respond" title="Comment on Pink robot is pink."><span class="leave-reply">Reply</span></a> </div>
101+ </header><!-- .entry-header -->
102+
103+ <div class="entry-content">
104+ <div id="attachment_5" class="wp-caption alignleft" style="width: 262px"><a href="http://wp.srsbiz.pl/wp-content/uploads/2011/06/innybg.jpg"><img class="size-medium wp-image-5" title="Pink Robot" src="http://wp.srsbiz.pl/wp-content/uploads/2011/06/innybg-252x300.jpg" alt="Pink Robot" width="252" height="300" /></a><p class="wp-caption-text">Pink Robot</p></div>
105+ </div><!-- .entry-content -->
106+
107+ <footer class="entry-meta">
108+ <span class="cat-links">
109+ <span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> <a href="http://wp.srsbiz.pl/category/uncategorized/" title="View all posts in Uncategorized" rel="category tag">Uncategorized</a> </span>
110+
111+ <span class="sep"> | </span>
112+ <span class="comments-link"><a href="http://wp.srsbiz.pl/2011/06/18/pink-robot-is-pink/#respond" title="Comment on Pink robot is pink."><span class="leave-reply">Leave a reply</span></a></span>
113+
114+ </footer><!-- #entry-meta -->
115+ </article><!-- #post-4 -->
116+
117+
118+
119+ <article id="post-1" class="post-1 post type-post status-publish format-standard hentry category-uncategorized">
120+ <header class="entry-header">
121+ <h1 class="entry-title"><a href="http://wp.srsbiz.pl/2011/06/14/hello-world/" title="Permalink to Hello world!" rel="bookmark">Hello world!</a></h1>
122+
123+ <div class="entry-meta">
124+ <span class="sep">Posted on </span><a href="http://wp.srsbiz.pl/2011/06/14/hello-world/" title="15:58:36" rel="bookmark"><time class="entry-date" datetime="2011-06-14T15:58:36+00:00" pubdate>2011-06-14</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://wp.srsbiz.pl/author/srsbiz/" title="View all posts by srsbiz" rel="author">srsbiz</a></span></span> </div><!-- .entry-meta -->
125+
126+ <div class="comments-link">
127+ <a href="http://wp.srsbiz.pl/2011/06/14/hello-world/#comments" title="Comment on Hello world!">1</a> </div>
128+ </header><!-- .entry-header -->
129+
130+ <div class="entry-content">
131+ <p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
132+ </div><!-- .entry-content -->
133+
134+ <footer class="entry-meta">
135+ <span class="cat-links">
136+ <span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> <a href="http://wp.srsbiz.pl/category/uncategorized/" title="View all posts in Uncategorized" rel="category tag">Uncategorized</a> </span>
137+
138+ <span class="sep"> | </span>
139+ <span class="comments-link"><a href="http://wp.srsbiz.pl/2011/06/14/hello-world/#comments" title="Comment on Hello world!"><b>1</b> Reply</a></span>
140+
141+ </footer><!-- #entry-meta -->
142+ </article><!-- #post-1 -->
143+
144+
145+
146+
147+ </div><!-- #content -->
148+ </div><!-- #primary -->
149+
150+ <div id="secondary" class="widget-area" role="complementary">
151+
152+ <aside id="archives" class="widget">
153+ <h3 class="widget-title">Archives</h3>
154+ <ul>
155+ <li><a href='http://wp.srsbiz.pl/2011/06/' title='June 2011'>June 2011</a></li>
156+ </ul>
157+ </aside>
158+
159+ <aside id="meta" class="widget">
160+ <h3 class="widget-title">Meta</h3>
161+ <ul>
162+ <li><a href="http://wp.srsbiz.pl/wp-login.php">Log in</a></li>
163+ </ul>
164+ </aside>
165+
166+ </div><!-- #secondary .widget-area -->
167+
168+ </div><!-- #main -->
169+
170+ <footer id="colophon" role="contentinfo">
171+
172+
173+
174+ <div id="site-generator">
175+ <a href="http://wordpress.org/" title="Semantic Personal Publishing Platform" rel="generator">Proudly powered by WordPress</a>
176+ </div>
177+ </footer><!-- #colophon -->
178+ </div><!-- #page -->
179+
180+
181+ </body>
182+ </html>Ok for CURLOPT_FILE
183+
184+ Warning: curl_exec(): CURLOPT_INFILE resource has gone away, resetting to default in %s/bug54798.php on line 24
185+ Ok for CURLOPT_INFILE