From: SourceForge.net <no...@so...> - 2007-08-02 22:00:28
|
Bugs item #1766388, was opened at 2007-08-02 20:40 Message generated for change (Comment added) made by broeker You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104664&aid=1766388&group_id=4664 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Linebased interface Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: John (johnxpan) Assigned to: Nobody/Anonymous (nobody) Summary: segmentation fault for source code line over 1024 chars Initial Comment: Segmentation fault happens when source code contain long line over 1024 characters. A simplified test file attached at the end. Problem happens on both solaris 2.7/2.9 for both 15.5 and 15.4 release. I can't test 15.6 because the following compiling error happens on the solairs platform: ======================= scanner.h:80: conflicting types for `yytext' scanner.c:730: previous declaration of `yytext' scanner.c: In function `yylex': scanner.c:1106: `yytext' has an incomplete type scanner.c:1106: `yytext' has an incomplete type scanner.l:218: warning: assignment makes pointer from integer without a cast scanner.l:219: warning: assignment makes pointer from integer without a cast scanner.l:519: `yytext' has an incomplete type scanner.l:519: `yytext' has an incomplete type scanner.c: In function `yy_get_next_buffer': scanner.c:1973: `yytext' has an incomplete type scanner.c: In function `yyunput': scanner.c:2063: `yytext' has an incomplete type scanner.c: In function `yy_load_buffer_state': scanner.c:2200: `yytext' has an incomplete type scanner.l: In function `initscanner': scanner.l:604: warning: assignment makes pointer from integer without a cast scanner.l:605: warning: assignment makes pointer from integer without a cast scanner.l: At top level: scanner.h:80: warning: array `yytext' assumed to have one element make[2]: *** [scanner.o] Error 1 make[2]: Leaving directory `/homes/jpan/cscope-15.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/homes/jpan/cscope-15.6' make: *** [all] Error 2 ================================== To reproduce, add the attached file to cscopes.files and run: %cscope -b -i cscope.files Using gdb and found buffer overflow and program crashed randomly. We used an old version 16.0 ( confused ---------------------------------------------------------------------- >Comment By: Hans-Bernhard Broeker (broeker) Date: 2007-08-03 00:00 Message: Logged In: YES user_id=27517 Originator: NO This looks like a hickup with Sun's lexer. I strongly suggest you install flex and use it for cscope. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104664&aid=1766388&group_id=4664 |