<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Tue May 21 19:50:48 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/si/jira.issueviews:issue-xml/RCBC-33/RCBC-33.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Couchbase</title>
    <link>http://www.couchbase.com/issues</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.4</version>
        <build-number>845</build-number>
        <build-date>26-12-2012</build-date>
    </build-info>

<item>
            <title>[RCBC-33] Crash caused by libc detecting buffer overflow</title>
                <link>http://www.couchbase.com/issues/browse/RCBC-33</link>
                <project id="10048" key="RCBC">Couchbase Ruby client library</project>
                        <description>While trying to understand issue in &lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-4493&quot; title=&quot;Couchbase give different set of buckets list for url ending with &amp;#39;/&amp;#39;&quot;&gt;&lt;strike&gt;MB-4493&lt;/strike&gt;&lt;/a&gt; (caused by our unusual auth behavior, which could be client &amp;quot;bug&amp;quot; as well) I tried the following from irb and here&amp;#39;s what I got:&lt;br/&gt;
&lt;br/&gt;
&amp;gt;&amp;gt; Couchbase.new(:hostname =&amp;gt; &amp;quot;localhost&amp;quot;, :port =&amp;gt; 9000, :bucket =&amp;gt; &amp;quot;pwprotected&amp;quot;, :username =&amp;gt;&amp;quot;Administrator&amp;quot;, :password=&amp;gt;&amp;quot;asdasd&amp;quot;)&lt;br/&gt;
*** buffer overflow detected ***: irb terminated&lt;br/&gt;
======= Backtrace: =========&lt;br/&gt;
/lib/i386-linux-gnu/i686/cmov/libc.so.6(__fortify_fail+0x50)[0xf7521f70]&lt;br/&gt;
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0xe3eaa)[0xf7520eaa]&lt;br/&gt;
/lib/i386-linux-gnu/i686/cmov/libc.so.6(__strcpy_chk+0x44)[0xf7520224]&lt;br/&gt;
/usr/lib/libcouchbase.so.1(+0x59c1)[0xf6c1b9c1]&lt;br/&gt;
======= Memory map: ========&lt;br/&gt;
08048000-08049000 r-xp 00000000 08:02 17341823                           /usr/bin/ruby1.8&lt;br/&gt;
08049000-0804a000 r--p 00000000 08:02 17341823                           /usr/bin/ruby1.8&lt;br/&gt;
0804a000-0804b000 rw-p 00001000 08:02 17341823                           /usr/bin/ruby1.8&lt;br/&gt;
08b9b000-08fbd000 rw-p 00000000 00:00 0                                  [heap]&lt;br/&gt;
f6b79000-f6b95000 r-xp 00000000 08:02 17995831                           /lib/i386-linux-gnu/libgcc_s.so.1&lt;br/&gt;
f6b95000-f6b96000 rw-p 0001b000 08:02 17995831                           /lib/i386-linux-gnu/libgcc_s.so.1&lt;br/&gt;
f6b96000-f6bcb000 r--s 00000000 08:02 11171194                           /var/cache/nscd/hosts&lt;br/&gt;
f6bcb000-f6c11000 r-xp 00000000 08:02 17736136                           /usr/lib/libevent-2.0.so.5.1.6&lt;br/&gt;
f6c11000-f6c12000 rw-p 00046000 08:02 17736136                           /usr/lib/libevent-2.0.so.5.1.6&lt;br/&gt;
f6c12000-f6c14000 r-xp 00000000 08:02 17736875                           /usr/lib/libcouchbase_libevent.so.1.0.0&lt;br/&gt;
f6c14000-f6c15000 r--p 00001000 08:02 17736875                           /usr/lib/libcouchbase_libevent.so.1.0.0&lt;br/&gt;
f6c15000-f6c16000 rw-p 00002000 08:02 17736875                           /usr/lib/libcouchbase_libevent.so.1.0.0&lt;br/&gt;
f6c16000-f6c26000 r-xp 00000000 08:02 17736895                           /usr/lib/libcouchbase.so.1.2.0&lt;br/&gt;
f6c26000-f6c27000 r--p 0000f000 08:02 17736895                           /usr/lib/libcouchbase.so.1.2.0&lt;br/&gt;
f6c27000-f6c28000 rw-p 00010000 08:02 17736895                           /usr/lib/libcouchbase.so.1.2.0&lt;br/&gt;
f6c28000-f6c33000 r-xp 00000000 08:02 16171260                           /var/lib/gems/1.8/gems/yajl-ruby-1.1.0/lib/yajl/yajl.so&lt;br/&gt;
f6c33000-f6c34000 rw-p 0000a000 08:02 16171260                           /var/lib/gems/1.8/gems/yajl-ruby-1.1.0/lib/yajl/yajl.so&lt;br/&gt;
f6c34000-f6f52000 rw-p 00000000 00:00 0 &lt;br/&gt;
f6f52000-f7072000 r--p 001ee000 08:02 23382439                           /usr/lib/locale/locale-archive&lt;br/&gt;
f7072000-f7272000 r--p 00000000 08:02 23382439                           /usr/lib/locale/locale-archive&lt;br/&gt;
f7272000-f7311000 rw-p 00000000 00:00 0 &lt;br/&gt;
f7311000-f732e000 r-xp 00000000 08:02 17995776                           /lib/i386-linux-gnu/libtinfo.so.5.9&lt;br/&gt;
f732e000-f7330000 r--p 0001c000 08:02 17995776                           /lib/i386-linux-gnu/libtinfo.so.5.9&lt;br/&gt;
f7330000-f7331000 rw-p 0001e000 08:02 17995776                           /lib/i386-linux-gnu/libtinfo.so.5.9&lt;br/&gt;
f7331000-f7353000 r-xp 00000000 08:02 17995778                           /lib/i386-linux-gnu/libncurses.so.5.9&lt;br/&gt;
f7353000-f7354000 r--p 00021000 08:02 17995778                           /lib/i386-linux-gnu/libncurses.so.5.9&lt;br/&gt;
f7354000-f7355000 rw-p 00022000 08:02 17995778                           /lib/i386-linux-gnu/libncurses.so.5.9&lt;br/&gt;
f7355000-f7389000 r-xp 00000000 08:02 17992855                           /lib/i386-linux-gnu/libreadline.so.5.2&lt;br/&gt;
f7389000-f738d000 rw-p 00033000 08:02 17992855                           /lib/i386-linux-gnu/libreadline.so.5.2&lt;br/&gt;
f738d000-f738e000 rw-p 00000000 00:00 0 &lt;br/&gt;
f73b2000-f743d000 rw-p 00000000 00:00 0 &lt;br/&gt;
f743d000-f7593000 r-xp 00000000 08:02 17995820                           /lib/i386-linux-gnu/i686/cmov/libc-2.13.so&lt;br/&gt;
f7593000-f7594000 ---p 00156000 08:02 17995820                           /lib/i386-linux-gnu/i686/cmov/libc-2.13.so&lt;br/&gt;
f7594000-f7596000 r--p 00156000 08:02 17995820                           /lib/i386-linux-gnu/i686/cmov/libc-2.13.so&lt;br/&gt;
f7596000-f7597000 rw-p 00158000 08:02 17995820                           /lib/i386-linux-gnu/i686/cmov/libc-2.13.so&lt;br/&gt;
f7597000-f759a000 rw-p 00000000 00:00 0 &lt;br/&gt;
f759a000-f75be000 r-xp 00000000 08:02 17995814                           /lib/i386-linux-gnu/i686/cmov/libm-2.13.so&lt;br/&gt;
f75be000-f75bf000 r--p 00023000 08:02 17995814                           /lib/i386-linux-gnu/i686/cmov/libm-2.13.so&lt;br/&gt;
f75bf000-f75c0000 rw-p 00024000 08:02 17995814                           /lib/i386-linux-gnu/i686/cmov/libm-2.13.so&lt;br/&gt;
f75c0000-f75c9000 r-xp 00000000 08:02 17995801                           /lib/i386-linux-gnu/i686/cmov/libcrypt-2.13.so&lt;br/&gt;
f75c9000-f75ca000 r--p 00008000 08:02 17995801                           /lib/i386-linux-gnu/i686/cmov/libcrypt-2.13.so&lt;br/&gt;
f75ca000-f75cb000 rw-p 00009000 08:02 17995801                           /lib/i386-linux-gnu/i686/cmov/libcrypt-2.13.so&lt;br/&gt;
f75cb000-f75f2000 rw-p 00000000 00:00 0 &lt;br/&gt;
f75f2000-f75f4000 r-xp 00000000 08:02 17995803                           /lib/i386-linux-gnu/i686/cmov/libdl-2.13.so&lt;br/&gt;
f75f4000-f75f5000 r--p 00001000 08:02 17995803                           /lib/i386-linux-gnu/i686/cmov/libdl-2.13.so&lt;br/&gt;
f75f5000-f75f6000 rw-p 00002000 08:02 17995803                           /lib/i386-linux-gnu/i686/cmov/libdl-2.13.so&lt;br/&gt;
f75f6000-f75fd000 r-xp 00000000 08:02 17995828                           /lib/i386-linux-gnu/i686/cmov/librt-2.13.so&lt;br/&gt;
f75fd000-f75fe000 r--p 00006000 08:02 17995828                           /lib/i386-linux-gnu/i686/cmov/librt-2.13.so&lt;br/&gt;
f75fe000-f75ff000 rw-p 00007000 08:02 17995828                           /lib/i386-linux-gnu/i686/cmov/librt-2.13.so&lt;br/&gt;
f75ff000-f7600000 rw-p 00000000 00:00 0 &lt;br/&gt;
f7600000-f7615000 r-xp 00000000 08:02 17995797                           /lib/i386-linux-gnu/i686/cmov/libpthread-2.13.so&lt;br/&gt;
f7615000-f7616000 r--p 00014000 08:02 17995797                           /lib/i386-linux-gnu/i686/cmov/libpthread-2.13.so&lt;br/&gt;
f7616000-f7617000 rw-p 00015000 08:02 17995797                           /lib/i386-linux-gnu/i686/cmov/libpthread-2.13.so&lt;br/&gt;
f7617000-f7619000 rw-p 00000000 00:00 0 &lt;br/&gt;
f7619000-f7703000 r-xp 00000000 08:02 17736598                           /usr/lib/libruby1.8.so.1.8.7&lt;br/&gt;
f7703000-f7706000 rw-p 000e9000 08:02 17736598                           /usr/lib/libruby1.8.so.1.8.7&lt;br/&gt;
f7706000-f7716000 rw-p 00000000 00:00 0 &lt;br/&gt;
f7717000-f771e000 r-xp 00000000 08:02 17736748                           /usr/lib/libvbucket.so.1.1.0&lt;br/&gt;
f771e000-f771f000 r--p 00006000 08:02 17736748                           /usr/lib/libvbucket.so.1.1.0&lt;br/&gt;
f771f000-f7720000 rw-p 00007000 08:02 17736748                           /usr/lib/libvbucket.so.1.1.0Aborted&lt;br/&gt;
&lt;br/&gt;
</description>
                <environment>Debian GNU/Linux i386 sid (kept up to date)&lt;br/&gt;
</environment>
            <key id="16817">RCBC-33</key>
            <summary>Crash caused by libc detecting buffer overflow</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="avsej">Sergey Avseyev</assignee>
                                <reporter username="alkondratenko">Aleksey Kondratenko</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 Apr 2012 15:27:33 -0500</created>
                <updated>Tue, 13 Nov 2012 04:24:15 -0600</updated>
                    <resolved>Wed, 2 May 2012 17:41:10 -0500</resolved>
                                                            <component>library</component>
                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="26454" author="avsej" created="Mon, 30 Apr 2012 15:34:08 -0500"  >Is it possible to get the line in libcouchbase which called strcpy?&lt;br/&gt;
&lt;br/&gt;
/usr/lib/libcouchbase.so.1(+0x59c1)[0xf6c1b9c1] &lt;br/&gt;
&lt;br/&gt;
Also what versions of libcouchbase/libvbucket/gem are you using?</comment>
                    <comment id="26459" author="alkondratenko" created="Mon, 30 Apr 2012 15:57:43 -0500"  ># dpkg -l &amp;#39;*couchbas*&amp;#39;&lt;br/&gt;
Desired=Unknown/Install/Remove/Purge/Hold&lt;br/&gt;
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend&lt;br/&gt;
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)&lt;br/&gt;
||/ Name                                                  Version                                               Description&lt;br/&gt;
+++-=====================================================-=====================================================-==========================================================================================================================&lt;br/&gt;
ii  libcouchbase-dev                                      1.0.2-1                                               library for the Couchbase protocol, development files&lt;br/&gt;
ii  libcouchbase1                                         1.0.2-1                                               library for the Couchbase protocol&lt;br/&gt;
</comment>
                    <comment id="26460" author="alkondratenko" created="Mon, 30 Apr 2012 15:58:01 -0500"  >&amp;nbsp;gem list --local | grep couchbase&lt;br/&gt;
couchbase (1.1.1)&lt;br/&gt;
</comment>
                    <comment id="26461" author="alkondratenko" created="Mon, 30 Apr 2012 16:06:05 -0500"  >Program received signal SIGABRT, Aborted.&lt;br/&gt;
0xf7fe0430 in __kernel_vsyscall ()&lt;br/&gt;
(gdb) bt&lt;br/&gt;
#0  0xf7fe0430 in __kernel_vsyscall ()&lt;br/&gt;
#1  0xf7d0b941 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64&lt;br/&gt;
#2  0xf7d0ed72 in *__GI_abort () at abort.c:92&lt;br/&gt;
#3  0xf7d452f5 in __libc_message (do_abort=2, fmt=0xf7e18608 &amp;quot;*** %s ***: %s terminated\n&amp;quot;) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189&lt;br/&gt;
#4  0xf7dc5f70 in *__GI___fortify_fail (msg=&amp;lt;optimized out&amp;gt;) at fortify_fail.c:32&lt;br/&gt;
#5  0xf7dc4eaa in *__GI___chk_fail () at chk_fail.c:29&lt;br/&gt;
#6  0xf7dc4224 in __strcpy_chk (dest=0x83975d0 &amp;quot;s&amp;quot;, src=0x80fbfc8 &amp;quot;simple&amp;quot;, destlen=6) at strcpy_chk.c:61&lt;br/&gt;
#7  0xf7fc59c1 in ?? () from /usr/lib/libcouchbase.so.1&lt;br/&gt;
#8  0xf7fc6a91 in ?? () from /usr/lib/libcouchbase.so.1&lt;br/&gt;
#9  0xf7a27e79 in event_base_loop () from /usr/lib/libevent-2.0.so.5&lt;br/&gt;
#10 0xf7fbca38 in ?? () from /usr/lib/libcouchbase_libevent.so.1&lt;br/&gt;
#11 0xf7fcbdca in libcouchbase_wait () from /usr/lib/libcouchbase.so.1&lt;br/&gt;
#12 0xf7fd5169 in do_connect (bucket=0x82de188) at couchbase_ext.c:1196&lt;br/&gt;
#13 0xf7fd76e7 in cb_bucket_init (argc=1, argv=0xffffc960, self=4156170480) at couchbase_ext.c:1300&lt;br/&gt;
#14 0xf7ef3ace in call_cfunc (argv=0xffffc960, argc=1, len=-1, recv=4156170480, func=0xf7fd7610 &amp;lt;cb_bucket_init&amp;gt;) at eval.c:5778&lt;br/&gt;
#15 rb_call0 (klass=4156186100, recv=4156170480, id=2961, oid=2961, argc=1, argv=0xffffc960, body=0xf7ba5c78, flags=2) at eval.c:5928&lt;br/&gt;
#16 0xf7ef3d31 in rb_call (klass=4156186100, recv=4156170480, mid=2961, argc=1, argv=0xffffc960, scope=1, self=&amp;lt;optimized out&amp;gt;) at eval.c:6176&lt;br/&gt;
#17 0xf7ef40ec in rb_funcall2 (recv=4156170480, mid=2961, argc=1, argv=0xffffc960) at eval.c:6312&lt;br/&gt;
#18 0xf7ef419a in rb_obj_call_init (obj=4156170480, argc=1, argv=0xffffc960) at eval.c:7825&lt;br/&gt;
#19 0xf7fd456e in cb_bucket_new (argc=1, argv=0xffffc960, klass=4156186100) at couchbase_ext.c:1227&lt;br/&gt;
#20 0xf7ef3ace in call_cfunc (argv=0xffffc960, argc=1, len=-1, recv=4156186100, func=0xf7fd44d0 &amp;lt;cb_bucket_new&amp;gt;) at eval.c:5778&lt;br/&gt;
#21 rb_call0 (klass=4156186080, recv=4156186100, id=3361, oid=3361, argc=1, argv=0xffffc960, body=0xf7ba5cf0, flags=0) at eval.c:5928&lt;br/&gt;
#22 0xf7ef3d31 in rb_call (klass=4156186080, recv=4156186100, mid=3361, argc=1, argv=0xffffc960, scope=0, self=&amp;lt;optimized out&amp;gt;) at eval.c:6176&lt;br/&gt;
#23 0xf7ef9409 in rb_eval (self=4155198180, n=0xf7ab5ef8) at eval.c:3506&lt;br/&gt;
#24 0xf7ef3061 in rb_call0 (klass=4156171320, recv=4155198180, id=3361, oid=15945, argc=&amp;lt;optimized out&amp;gt;, argv=&amp;lt;optimized out&amp;gt;, body=0xf7ab5ea8, flags=0) at eval.c:6079&lt;br/&gt;
#25 0xf7ef3d31 in rb_call (klass=4156171320, recv=4155198180, mid=3361, argc=1, argv=0xffffce90, scope=0, self=&amp;lt;optimized out&amp;gt;) at eval.c:6176&lt;br/&gt;
#26 0xf7ef9409 in rb_eval (self=4157462860, n=0xf7c9b4ac) at eval.c:3506&lt;br/&gt;
#27 0xf7effb3d in ruby_exec_internal () at eval.c:1654&lt;br/&gt;
#28 0xf7effb90 in ruby_exec () at eval.c:1674&lt;br/&gt;
#29 0xf7f022cc in ruby_run () at eval.c:1684&lt;br/&gt;
#30 0x0804868d in main (argc=6, argv=0xffffd394, envp=0xffffd3b0) at main.c:48&lt;br/&gt;
</comment>
                    <comment id="26462" author="alkondratenko" created="Mon, 30 Apr 2012 16:06:49 -0500"  >simple is pwprotected&amp;#39;s bucket password. Not sure if it&amp;#39;s good idea to use it at all btw</comment>
                    <comment id="26463" author="avsej" created="Mon, 30 Apr 2012 16:12:38 -0500"  >&lt;a href=&quot;http://review.couchbase.org/14641&quot;&gt;http://review.couchbase.org/14641&lt;/a&gt; it was fixed&lt;br/&gt;
&lt;br/&gt;
try to use&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;deb &lt;a href=&quot;http://packages.couchbase.com/preview/ubuntu&quot;&gt;http://packages.couchbase.com/preview/ubuntu&lt;/a&gt; oneiric oneiric/main&lt;br/&gt;
&lt;br/&gt;
or&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;deb &lt;a href=&quot;http://packages.couchbase.com/preview/ubuntu&quot;&gt;http://packages.couchbase.com/preview/ubuntu&lt;/a&gt; lucid lucid/main&lt;br/&gt;
&lt;br/&gt;
And then install preview couchbase gem: gem install couchbase --pre&lt;br/&gt;
&lt;br/&gt;
(you&amp;#39;ll also get Views API btw)&lt;br/&gt;
</comment>
                    <comment id="26570" author="avsej" created="Wed, 2 May 2012 17:41:10 -0500"  >The problem fixed in libcouchbase 1.0.3: &lt;a href=&quot;http://couchbase.com/develop/c/current&quot;&gt;http://couchbase.com/develop/c/current&lt;/a&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                    <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>9628</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>