From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#6342: 23.2; error writing table of symbols with semantic in cedet Date: Thu, 03 Jun 2010 13:20:14 -0400 Message-ID: <87ocfsvxrl.fsf@stupidchicken.com> References: <20100603153729.GD2763@loria.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1275586089 26597 80.91.229.12 (3 Jun 2010 17:28:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Jun 2010 17:28:09 +0000 (UTC) Cc: Jonathan Marchand , 6342@debbugs.gnu.org To: Eric Ludlam Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 03 19:28:07 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OKED7-00046l-Rw for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jun 2010 19:28:06 +0200 Original-Received: from localhost ([127.0.0.1]:51410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKED6-0005Ww-Pl for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jun 2010 13:28:04 -0400 Original-Received: from [140.186.70.92] (port=38320 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKECt-0005EU-OO for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2010 13:27:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKECs-0002GX-B7 for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2010 13:27:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56277) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKECs-0002Dr-2v for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2010 13:27:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OKE6H-0000Nt-Pw; Thu, 03 Jun 2010 13:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Jun 2010 17:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6342 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6342-submit@debbugs.gnu.org id=B6342.12755856201464 (code B ref 6342); Thu, 03 Jun 2010 17:21:01 +0000 Original-Received: (at 6342) by debbugs.gnu.org; 3 Jun 2010 17:20:20 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKE5c-0000NZ-82 for submit@debbugs.gnu.org; Thu, 03 Jun 2010 13:20:20 -0400 Original-Received: from pantheon-po14.its.yale.edu ([130.132.50.23]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKE5a-0000NT-JW for 6342@debbugs.gnu.org; Thu, 03 Jun 2010 13:20:19 -0400 Original-Received: from furry (dhcp128036014059.central.yale.edu [128.36.14.59]) (authenticated bits=0) by pantheon-po14.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o53HKElI012166 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 3 Jun 2010 13:20:14 -0400 Original-Received: by furry (Postfix, from userid 1000) id 2F24416D427; Thu, 3 Jun 2010 13:20:14 -0400 (EDT) In-Reply-To: <20100603153729.GD2763@loria.fr> (Jonathan Marchand's message of "Thu, 3 Jun 2010 17:37:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 03 Jun 2010 13:21:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37512 Archived-At: Hi Eric, Could you take a look at this report about a symbol that Semantic can't handle? I just applied your semantic-lex-spp-table-write-slot-value change that saves a nil instead of erroring on invalid values. Jonathan Marchand writes: > Hi, > > I'm reporting a second bug in cedet in emacs23 (and 24). When editing a > C file, semantic saves the symbol tables from the include files required > by the C file in a cache file in order not to process again these files > when a new instance emacs runs. Sometimes, it happens that semantic is > not able to get the value of a symbol from a file, and report the error > to the echo area. As the save process is a task done automaticly on > iddle, every minutes semantic reports an error on the echo area (which > is just annoying). In the CVS version of cedet, the problematic symbols > are still not proceeded, but it doesn't report an error (actually, the > symbol is just marked as bogus). This is done in the 1.53 revision of > the semantic-lex-spp.el file of the cvs version > (http://cedet.cvs.sourceforge.net/viewvc/cedet/cedet/semantic/semantic-le= x-spp.el?view=3Dlog). > I provide a patch that follows this fix (without adding the other stuff > that just do nothing for the moment). > > Moreover, I have a backtrace with an example of a symbol that semantic > can't handle well in file ctype.h (the one in /usr/include/), here is the= output : > > Error Writing Table: # > Save Error: "\"Error in macro \\\"name\\\"\"": /home/jonathlela/.emacs.d/= semanticdb/!usr!include!semantic.cache > > Precisely, the error occurs when calling > semantic-lex-spp-table-write-slot-value with value =3D > > (("__exctype" (spp-arg-list (#1=3D"name") 3728 . 3734) (EXTERN "extern" 3= 735 . 3741) (INT "int" 3742 . 3745) (symbol "name" 3746 . 3750) (semantic-l= ist "(int)" 3751 . 3756) (symbol "__THROW" 3757 . 3764)) ("isalnum" (spp-ar= g-list ("c") 5853 . 5856) (symbol "__isctype" 5857 . 5866) (semantic-list "= ((c), _ISalnum)" 5866 . 5881)) ("isprint" (spp-arg-list ("c") 6123 . 6126) = (symbol "__isctype" 6127 . 6136) (semantic-list "((c), _ISprint)" 6136 . 61= 51)) ("ispunct" (spp-arg-list ("c") 6168 . 6171) (symbol "__isctype" 6172 .= 6181) (semantic-list "((c), _ISpunct)" 6181 . 6196)) ("isxdigit" (spp-arg-= list ("c") 6304 . 6307) (symbol "__isctype" 6308 . 6317) (semantic-list "((= c), _ISxdigit)" 6317 . 6333)) ("_tolower" (spp-arg-list ("c") 7099 . 7102) = (semantic-list "((int) (*__ctype_tolower_loc ())[(int) (c)])" 7103 . 7147))= ("toupper" (spp-arg-list ("c") 6855 . 6858) (symbol "__tobody" 6859 . 6867= ) (semantic-list "(c, toupper, *__ctype_toupper_loc (), (c))" 6868 . 6910))= ("isspace" (spp-arg-list ("c") 6213 . 6216) (symbol "__isctype" 6217 . 622= 6) (semantic-list "((c), _ISspace)" 6226 . 6241)) ("isgraph" (spp-arg-list = ("c") 6078 . 6081) (symbol "__isctype" 6082 . 6091) (semantic-list "((c), _= ISgraph)" 6091 . 6106)) ("_CTYPE_H" (number "1" 1003 . 1004)) ("_ISbit" (sp= p-arg-list ("bit") 1504 . 1509) (semantic-list "(1 << (bit))" 1510 . 1522))= ("__toascii" (spp-arg-list ("c") 3665 . 3668) (semantic-list "((c) & 0x7f)= " 3669 . 3681)) ("__tobody" (spp-arg-list ("c" "f" "a" "args") 5305 . 5320)= (semantic-list "(__extension__ \\\n ({ int __res; = \\\n if (sizeof (c) > 1) \\\n { \\\n if (_= _builtin_constant_p (c)) \\\n { \\\n int _= _c =3D (c); \\\n __res =3D __c < -128 || __c > 255 ? __c := (a)[__c]; \\\n } \\\n else \\\n = __res =3D f args; \\\n } \\\n else = \\\n __res =3D (a)[(int) (c)]; \\\n __res; }))" 5325 . 5= 787)) ("isupper" (spp-arg-list ("c") 6258 . 6261) (symbol "__isctype" 6262 = . 6271) (semantic-list "((c), _ISupper)" 6271 . 6286)) ("iscntrl" (spp-arg-= list ("c") 5943 . 5946) (symbol "__isctype" 5947 . 5956) (semantic-list "((= c), _IScntrl)" 5956 . 5971)) ("tolower" (spp-arg-list ("c") 6782 . 6785) (s= ymbol "__tobody" 6786 . 6794) (semantic-list "(c, tolower, *__ctype_tolower= _loc (), (c))" 6795 . 6837)) ("toascii" (spp-arg-list ("c") 7062 . 7065) (s= ymbol "__toascii" 7066 . 7075) (semantic-list "(c)" 7076 . 7079)) ("__iscty= pe" (spp-arg-list ("c" "type") 3500 . 3509) (semantic-list "((*__ctype_b_lo= c ())[(int) (c)] & (unsigned short int) type)" 3514 . 3574)) ("_toupper" (s= pp-arg-list ("c") 7166 . 7169) (semantic-list "((int) (*__ctype_toupper_loc= ())[(int) (c)])" 7170 . 7214)) (#1# symbol "_tolower" 5177 . 5185) ("__isa= scii" (spp-arg-list ("c") 3593 . 3596) (semantic-list "(((c) & ~0x7f) =3D= =3D 0)" 3597 . 3617)) ("isdigit" (spp-arg-list ("c") 5988 . 5991) (symbol "= __isctype" 5992 . 6001) (semantic-list "((c), _ISdigit)" 6001 . 6016)) ("is= lower" (spp-arg-list ("c") 6033 . 6036) (symbol "__isctype" 6037 . 6046) (s= emantic-list "((c), _ISlower)" 6046 . 6061)) ("isascii" (spp-arg-list ("c")= 7027 . 7030) (symbol "__isascii" 7031 . 7040) (semantic-list "(c)" 7041 . = 7044)) ("isalpha" (spp-arg-list ("c") 5898 . 5901) (symbol "__isctype" 5902= . 5911) (semantic-list "((c), _ISalpha)" 5911 . 5926))) > > The error is raised when sym =3D > > ("name" symbol "_tolower" 5177 . 5185) > > I don't know if someone can do something with these informations, but > still it may be a good starting point to fix the problem. > > Regards, > > Jonathan Marchand