X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,TW_DB,TW_FD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <4BCB52AE.5070305@gmail.com> Date: Sun, 18 Apr 2010 19:42:54 +0100 From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com> User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: bash/readline spinout in vi command mode References: <d2b8c7b517c01 DOT 4bc9c651 AT shaw DOT ca> <4BCA1D1A DOT 6050904 AT bopp DOT net> <i2i416096c61004172139kd811372ek159da8d3c61074c8 AT mail DOT gmail DOT com> <4BCA93C4 DOT 5000904 AT bopp DOT net> <u2o416096c61004180848l64d2ae47r433b3fa43cc7ab4d AT mail DOT gmail DOT com> In-Reply-To: <u2o416096c61004180848l64d2ae47r433b3fa43cc7ab4d@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: <cygwin.cygwin.com> List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 18/04/2010 16:48, Andy Koppe wrote: > Spinning on a 32-bit XP here as well, whereas it didn't on a 64-bit Win7. The stack looks like this when it spins: > (gdb) bt > #0 0x61109827 in strlen () from /usr/bin/cygwin1.dll > #1 0x6afdbbb5 in rl_find_next_mbchar () from /usr/bin/cygreadline7.dll > #2 0x6afd56b4 in rl_char_search_internal () from /usr/bin/cygreadline7.dll > #3 0x6afc3474 in rl_vi_char_search () from /usr/bin/cygreadline7.dll > #4 0x6afc16ba in rl_dispatch_subseq () from /usr/bin/cygreadline7.dll > #5 0x6afc1a75 in rl_dispatch () from /usr/bin/cygreadline7.dll > #6 0x6afd7c05 in rl_arg_dispatch () from /usr/bin/cygreadline7.dll > #7 0x6afd7d79 in rl_arg_callback () from /usr/bin/cygreadline7.dll > #8 0x6afc16ba in rl_dispatch_subseq () from /usr/bin/cygreadline7.dll > #9 0x6afc1a75 in rl_dispatch () from /usr/bin/cygreadline7.dll > #10 0x6afc1e19 in readline_internal_char () from /usr/bin/cygreadline7.dll > #11 0x6afc2205 in readline () from /usr/bin/cygreadline7.dll If you continue it, both strlen and rl_find_next_mbchar complete and return to their callers, but rl_char_search_internal never returns; it loops forever calling those two functions. Someone will need to build readline from source to see what's happening, but I'd guess it's a real bug. cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple