linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* `char * s = "abc";' causes compile to crash with a segfault
@ 2009-04-29 20:53 Alexander Sorockin
  2009-04-29 21:08 ` Jeff Garzik
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Sorockin @ 2009-04-29 20:53 UTC (permalink / raw)
  To: linux-sparse

I realize that compile is only an example and you are probably familiar  
with the problem, but just in case... I was playing around with compile  
and here's what got.

------ In Linux (sparse-0.4.1, gcc 4.3.3):

$ ./compile -
char * s = "abc";
-:1:6: warning: symbol 's' was not declared. Should it be static?
	.file	"-"
  =
Segmentation fault

------ In CygWin (sparse-0.4.1, gcc 3.4.4):

$ ./compile -
char * s = "abc";
-:1:6: warning: symbol 's' was not declared. Should it be static?
         .file   "-"
  =
       7 [main] compile 1676 _cygtls::handle_exceptions: Error while  
dumping state (probably corrupted stack)
Segmentation fault (core dumped)

------

Just out of curiosity, is sparse stable enough in general to be used as a  
full-fledged front-end for a C compiler?

Best,
Sandy

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-04-30 10:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-29 20:53 `char * s = "abc";' causes compile to crash with a segfault Alexander Sorockin
2009-04-29 21:08 ` Jeff Garzik
2009-04-29 22:43   ` David Given
2009-04-29 23:41     ` Christopher Li
2009-04-30 10:13       ` David Given
2009-04-30  8:55   ` Alexander Sorockin
2009-04-30  9:16     ` Christopher Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).