From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jordi =?UTF-8?Q?Guti=C3=A9rrez?= Hermoso Newsgroups: gmane.emacs.bugs Subject: bug#11653: 23.2; Segfault with csv-mode Date: Wed, 13 Jun 2012 12:12:33 -0400 Message-ID: References: <831ulpvglh.fsf@gnu.org> <83395zz048.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1339604016 8791 80.91.229.3 (13 Jun 2012 16:13:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2012 16:13:36 +0000 (UTC) Cc: 11653@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 13 18:13:35 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SeqCF-0008Ik-Nw for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jun 2012 18:13:27 +0200 Original-Received: from localhost ([::1]:34662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeqCF-0005Ic-IT for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jun 2012 12:13:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeqC8-0005H6-6q for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2012 12:13:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeqC1-0006Uz-Oi for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2012 12:13:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeqC1-0006Uo-Ih for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2012 12:13:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SeqEj-0003xT-HA for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2012 12:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jordi =?UTF-8?Q?Guti=C3=A9rrez?= Hermoso Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jun 2012 16:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11653 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11653-submit@debbugs.gnu.org id=B11653.133960412415172 (code B ref 11653); Wed, 13 Jun 2012 16:16:01 +0000 Original-Received: (at 11653) by debbugs.gnu.org; 13 Jun 2012 16:15:24 +0000 Original-Received: from localhost ([127.0.0.1]:41104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SeqE8-0003wf-Gd for submit@debbugs.gnu.org; Wed, 13 Jun 2012 12:15:24 -0400 Original-Received: from mail-yw0-f44.google.com ([209.85.213.44]:32771) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SeqE6-0003wY-Jp for 11653@debbugs.gnu.org; Wed, 13 Jun 2012 12:15:23 -0400 Original-Received: by yhq56 with SMTP id 56so682680yhq.3 for <11653@debbugs.gnu.org>; Wed, 13 Jun 2012 09:12:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=RzI1qsdzeM4WgMTr8iqAWeDlMn3LOeESAe6YNuxxVxM=; b=OVitxuH8xBcCwfxCPPIgtFw3VfAvlLAuT32Kl378/Qdei0BJVr/2yYI0KkzZKjUTjb ctMcR5ScVy4N+oCiO3I6COOc1mBs6t8vSbGVFsYD8GNJl+5ZU3Ru10oY3H2SKJBmqzpI 7ex5CE6YMs6vmX+YIYXbGfAv/fSf4J1SekZ3OmEE56c/JLje44rsWNujDrvCD/Ej+cDr YojLRTrILFr01VM9WWe/nGISW50Y9h5EjxGNGLRFOiYuKN2HSHu4GzL336wxjw1fuwYw pTrv39nvMby5Xbzsbq+T05QkfWS7l5Uh1/Wjfeg+ULa8C0yxaBhDn/PjxMWbVRH0sNR6 FzHg== Original-Received: by 10.50.41.226 with SMTP id i2mr11354716igl.4.1339603953361; Wed, 13 Jun 2012 09:12:33 -0700 (PDT) Original-Received: by 10.231.105.72 with HTTP; Wed, 13 Jun 2012 09:12:33 -0700 (PDT) In-Reply-To: <83395zz048.fsf@gnu.org> X-Google-Sender-Auth: GNnwR3Mi_XjjJYcNMy13zvRGGmw X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60942 Archived-At: On 13 June 2012 11:45, Eli Zaretskii wrote: >> Date: Wed, 13 Jun 2012 10:32:00 -0400 >> From: Jordi Guti=C3=A9rrez Hermoso >> Cc: 11653@debbugs.gnu.org >> >> >> (gdb) bt >> >> #0 =C2=A00x0000000000438b03 in handle_face_prop (it=3D0x7fffffffb0c0)= at xdisp.c:3693 >> > >> > In frame 0, can you show what does the following GDB command print? >> >> Sure thing: >> >> =C2=A0 =C2=A0 Program received signal SIGSEGV, Segmentation fault. >> =C2=A0 =C2=A0 0x0000000000438649 in handle_face_prop (it=3D0x7fffffffb18= 0) at xdisp.c:3689 >> =C2=A0 =C2=A0 3689 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D (= it->current.overlay_string_index >=3D 0 >> =C2=A0 =C2=A0 (gdb) p it->current >> =C2=A0 =C2=A0 $1 =3D { >> =C2=A0 =C2=A0 =C2=A0 pos =3D { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 charpos =3D 1, >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 bytepos =3D 1 >> =C2=A0 =C2=A0 =C2=A0 }, >> =C2=A0 =C2=A0 =C2=A0 overlay_string_index =3D 1935, =C2=A0 <<<<<<<<<<<<<= <<<<<<<<<< >> =C2=A0 =C2=A0 =C2=A0 string_pos =3D { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 charpos =3D 0, >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 bytepos =3D 0 > > Are there this many overlay strings in the buffer at character > position 1? =C2=A0If not, this huge number is probably garbage, and is th= e > cause for the segfault. I don't understand Emacs internals. What's an overlay string, and how do I count it? > Btw, when I tried your recipe, Emacs asked me about the column to sort > by, which was not in your recipe. =C2=A0Can you double-check if your reci= pe > is 100% correct and does not omit any important details? I thought the handled it for me, because the function csv-sort-fields queries you for a value. Yes, the default of 1 is what's necessary. Thanks again, - Jordi G. H.