<!--
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Wed May 22 02:56:21 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.couchbase.com/issues/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+10049+AND+labels+%3D+%22view%22&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.couchbase.com/issues/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Couchbase</title>
        <link>http://www.couchbase.com/issues/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+10049+AND+labels+%3D+%22view%22</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="1" total="1"/>
                <build-info>
            <version>5.2.4</version>
            <build-number>845</build-number>
            <build-date>26-12-2012</build-date>
        </build-info>
<item>
            <title>[PCBC-76] Segfaults on view loading</title>
                <link>http://www.couchbase.com/issues/browse/PCBC-76</link>
                <project id="10049" key="PCBC">Couchbase PHP client library</project>
                        <description>Problem Description:&lt;br/&gt;
--------------------&lt;br/&gt;
The given PHP script was expected to run perfectly fine, instead segfaults.&lt;br/&gt;
&lt;br/&gt;
Version in Use:&lt;br/&gt;
---------------&lt;br/&gt;
Couchbase Server 2.0 (You are running version 2.0.0 community edition (build-722)) - latest DP release&lt;br/&gt;
php-ext-couchbase 1.1.0-dp2&lt;br/&gt;
libcouchbase 1.1.0dp6-85 throgh deb repo&lt;br/&gt;
&lt;br/&gt;
The View:&lt;br/&gt;
---------&lt;br/&gt;
function (doc) {&lt;br/&gt;
&amp;nbsp;&amp;nbsp;if(doc.type == &amp;#39;session&amp;#39;) {&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;emit(doc._id, null);&lt;br/&gt;
&amp;nbsp;&amp;nbsp;}&lt;br/&gt;
}&lt;br/&gt;
&lt;br/&gt;
Calling PHP Script:&lt;br/&gt;
-------------------&lt;br/&gt;
&amp;lt;?php&lt;br/&gt;
$cb = new Couchbase(&amp;#39;127.0.0.1:8091&amp;#39;, &amp;#39;default&amp;#39;);&lt;br/&gt;
$cb-&amp;gt;view(&amp;#39;dev_sessions&amp;#39;, &amp;#39;active&amp;#39;);&lt;br/&gt;
?&amp;gt;&lt;br/&gt;
&lt;br/&gt;
Error Message:&lt;br/&gt;
--------------&lt;br/&gt;
php: contrib/http_parser/http_parser.c:422: parse_url_char: Assertion `!((*__ctype_b_loc ())[(int) ((ch))] &amp;amp; (unsigned short int) _ISspace)&amp;#39; failed.&lt;br/&gt;
Aborted (core dumped)&lt;br/&gt;
&lt;br/&gt;
GDB Backtrace:&lt;br/&gt;
--------------&lt;br/&gt;
&lt;br/&gt;
#0  0xb7fdd424 in __kernel_vsyscall ()&lt;br/&gt;
#1  0xb78041ef in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64&lt;br/&gt;
#2  0xb7807835 in __GI_abort () at abort.c:91&lt;br/&gt;
#3  0xb77fd095 in __assert_fail_base (fmt=0xb79368b8 &amp;quot;%s%s%s:%u: %s%sAssertion `%s&amp;#39; failed.\n%n&amp;quot;, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;assertion=0xb7042710 &amp;quot;!((*__ctype_b_loc ())[(int) ((ch))] &amp;amp; (unsigned short int) _ISspace)&amp;quot;, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;file=0xb70426ec &amp;quot;contrib/http_parser/http_parser.c&amp;quot;, line=422, function=0xb7042f60 &amp;quot;parse_url_char&amp;quot;) at assert.c:94&lt;br/&gt;
#4  0xb77fd147 in __GI___assert_fail (assertion=0xb7042710 &amp;quot;!((*__ctype_b_loc ())[(int) ((ch))] &amp;amp; (unsigned short int) _ISspace)&amp;quot;, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;file=0xb70426ec &amp;quot;contrib/http_parser/http_parser.c&amp;quot;, line=422, function=0xb7042f60 &amp;quot;parse_url_char&amp;quot;) at assert.c:103&lt;br/&gt;
#5  0xb703e97f in ?? () from /usr/lib/libcouchbase.so.1&lt;br/&gt;
#6  0xb7041015 in ?? () from /usr/lib/libcouchbase.so.1&lt;br/&gt;
#7  0xb70337da in libcouchbase_make_couch_request () from /usr/lib/libcouchbase.so.1&lt;br/&gt;
#8  0xb73bcb45 in php_couchbase_view_impl (ht=&amp;lt;optimized out&amp;gt;, return_value=0xb779563c, this_ptr=0xb7798e70, oo=1, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return_value_ptr=&amp;lt;optimized out&amp;gt;, return_value_used=&amp;lt;optimized out&amp;gt;)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at /home/michael/Downloads/php-ext-couchbase/couchbase.c:2563&lt;br/&gt;
#9  0x083d2a85 in execute_internal (execute_data_ptr=0xb741c883, return_value_used=-1216896628)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at /build/buildd/php5-5.4.4/Zend/zend_execute.c:1480&lt;br/&gt;
#10 0xb741c883 in xdebug_execute_internal (current_execute_data=0xb777a18c, return_value_used=1)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at /build/buildd/xdebug-2.2.0/build-php5/xdebug.c:1482&lt;br/&gt;
#11 0x083d1898 in zend_do_fcall_common_helper_SPEC (execute_data=0xb777a18c) at /build/buildd/php5-5.4.4/Zend/zend_vm_execute.h:644&lt;br/&gt;
#12 0x0838d605 in execute (op_array=0xb741c491) at /build/buildd/php5-5.4.4/Zend/zend_vm_execute.h:410&lt;br/&gt;
#13 0xb741c491 in xdebug_execute (op_array=0xb77991fc) at /build/buildd/xdebug-2.2.0/build-php5/xdebug.c:1390&lt;br/&gt;
#14 0x083d1be2 in zend_do_fcall_common_helper_SPEC (execute_data=0xb777a030) at /build/buildd/php5-5.4.4/Zend/zend_vm_execute.h:669&lt;br/&gt;
#15 0x0838d605 in execute (op_array=0xb741c491) at /build/buildd/php5-5.4.4/Zend/zend_vm_execute.h:410&lt;br/&gt;
#16 0xb741c491 in xdebug_execute (op_array=0xb7794adc) at /build/buildd/xdebug-2.2.0/build-php5/xdebug.c:1390&lt;br/&gt;
#17 0x083244b9 in zend_execute_scripts (type=0, retval=0xbfffe124, file_count=0) at /build/buildd/php5-5.4.4/Zend/zend.c:1279&lt;br/&gt;
#18 0x082bda3e in php_execute_script (primary_file=0xbfffe124) at /build/buildd/php5-5.4.4/main/main.c:2473&lt;br/&gt;
#19 0x083d4593 in do_cli (argc=0, argv=0xbffff4c5) at /build/buildd/php5-5.4.4/sapi/cli/php_cli.c:988&lt;br/&gt;
#20 0x0806aefe in main (argc=2, argv=0xbffff344) at /build/buildd/php5-5.4.4/sapi/cli/php_cli.c:1361</description>
                <environment>Couchbase Server 2.0 (You are running version 2.0.0 community edition (build-722)) - latest DP release&lt;br/&gt;
php-ext-couchbase 1.1.0-dp2&lt;br/&gt;
libcouchbase 1.1.0dp6-85 throgh deb repo&lt;br/&gt;
&lt;br/&gt;
Running Ubuntu 12.04</environment>
            <key id="17988">PCBC-76</key>
            <summary>Segfaults on view loading</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10011">Public</security>
                        <assignee username="trond">Trond Norbye</assignee>
                                <reporter username="daschl">Michael Nitschinger</reporter>
                        <labels>
                        <label>view</label>
                    </labels>
                <created>Mon, 25 Jun 2012 04:01:46 -0500</created>
                <updated>Tue, 12 Mar 2013 09:09:02 -0500</updated>
                    <resolved>Tue, 12 Mar 2013 09:09:02 -0500</resolved>
                            <version>1.1.0-dp2</version>
                                                <component>library</component>
                                <votes>0</votes>
                        <watches>1</watches>
                                                    <comments>
                    <comment id="31759" author="ingenthr" created="Mon, 2 Jul 2012 13:45:23 -0500"  >Laruence: Can you have a quick look at this?  Is this something simple?</comment>
                    <comment id="31761" author="ingenthr" created="Mon, 2 Jul 2012 14:13:11 -0500"  >Another note from a user:&lt;br/&gt;
i&amp;#39;m gonna guess that&amp;#39;s what&amp;#39;s really happening is a buffer overrun somewhere else which then clobbers&amp;#39; http_parser&amp;#39;s internal state &lt;br/&gt;
because i&amp;#39;ve been using http_parser for a long time and i&amp;#39;ve never seen it crap like that</comment>
                    <comment id="34676" author="daschl" created="Fri, 3 Aug 2012 01:09:52 -0500"  >I think this can be closed, it works with a recent build of php-ext-couchbase with the latest libcouchbase (also, this ticket was opened against the unstable branch and it will be fixed for the final relase).</comment>
                    <comment id="52508" author="avsej" created="Tue, 12 Mar 2013 08:49:19 -0500"  >Looks like it still relevant&lt;br/&gt;
&lt;br/&gt;
&amp;lt;jgillmanjr&amp;gt; Greetings. I&amp;#39;m not sure if this would be the place to get further information, but when trying to make a view call using the PHP client, I get this as an error: php: contrib/http_parser/http_parser.c:422: parse_url_char: Assertion `!((*__ctype_b_loc ())[(int) ((ch))] &amp;amp; (unsigned short int) _ISspace)&amp;#39; failed.&lt;br/&gt;
&amp;lt;jgillmanjr&amp;gt; Googling only shows a bug thread that indicates this has been resolved. I&amp;#39;m running the 2.0.4 version of the library and just recompiled the latest source version of the php client&lt;br/&gt;
&lt;br/&gt;
&amp;quot;php -i&amp;quot; output (&lt;a href=&quot;http://dpaste.org/WGcNG/raw/&quot;&gt;http://dpaste.org/WGcNG/raw/&lt;/a&gt;)&lt;br/&gt;
couchbase&lt;br/&gt;
&lt;br/&gt;
couchbase support =&amp;gt; enabled&lt;br/&gt;
version =&amp;gt; 1.1.2&lt;br/&gt;
json support =&amp;gt; yes&lt;br/&gt;
fastlz support =&amp;gt; yes&lt;br/&gt;
zlib support =&amp;gt; yes&lt;br/&gt;
&lt;br/&gt;
Directive =&amp;gt; Local Value =&amp;gt; Master Value&lt;br/&gt;
couchbase.compression_factor =&amp;gt; 1.3 =&amp;gt; 1.3&lt;br/&gt;
couchbase.compression_threshold =&amp;gt; 2000 =&amp;gt; 2000&lt;br/&gt;
couchbase.compressor =&amp;gt; none =&amp;gt; none&lt;br/&gt;
couchbase.durability_default_poll_interval =&amp;gt; 100000 =&amp;gt; 100000&lt;br/&gt;
couchbase.durability_default_timeout =&amp;gt; 40000000 =&amp;gt; 40000000&lt;br/&gt;
couchbase.serializer =&amp;gt; php =&amp;gt; php&lt;br/&gt;
couchbase.view_timeout =&amp;gt; 75 =&amp;gt; 75&lt;br/&gt;
&lt;br/&gt;
php code (&lt;a href=&quot;http://dpaste.org/WCs3Z/raw/&quot;&gt;http://dpaste.org/WCs3Z/raw/&lt;/a&gt;)&lt;br/&gt;
&amp;lt;?php   &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$cb = new Couchbase(&amp;quot;couchbase1:8091&amp;quot;, &amp;quot;customer_mrc&amp;quot;, &amp;quot;customer_mrc&amp;quot;, &amp;quot;customer_mrc&amp;quot;);&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$view = $cb-&amp;gt;view(&amp;quot;mrc&amp;quot;, &amp;quot;Index Latest MRC&amp;quot;);&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print_r($view);&lt;br/&gt;
?&amp;gt;</comment>
                    <comment id="52510" author="avsej" created="Tue, 12 Mar 2013 08:49:47 -0500"  >I think it because view named with spaces &amp;quot;Index Latest MRC&amp;quot;</comment>
                    <comment id="52511" author="avsej" created="Tue, 12 Mar 2013 09:09:02 -0500"  >closing this back. I&amp;#39;ve created another ticket PCBC-211</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                    <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>9331</customfieldvalue>
                </customfieldvalues>
            </customfield>
                                                                                    <customfield id="customfield_10181" key="com.atlassian.jira.ext.charting:timeinstatus">
                <customfieldname>Time In Status</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                </customfields>
    </item>
</channel>
</rss>