vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| While reading the two current "style" threads here, I thought to try the indent command on some elementary C exercises. Unfortunately, this was the result: *----------------------------------------------------------------------* % indent test.c new.c Segmentation fault (core dumped) *----------------------------------------------------------------------* Same thing happens using the May 11 and May 13 snapshots and -current as of yesterday evening (May 13). All on i386, three different computers. 3.7 release (from the CD) and -rOPENBSD_3_7 (stable?) both work fine. These two silly examples cause indent to dump core: *----------------------------------------------------------------------* #include<stdio.h> int main(void) { int i; for (i=0;i<5;i++) printf("%i ",i); return(0); } *----------------------------------------------------------------------* #include<stdio.h> void foo(void) { int autoVar = 1; static int staticVar = 1; printf("automatic = %i, static = %i\n",autoVar++,staticVar++); } int main(void) { int i; void foo(void); for (i=0;i<5;i++) foo(); return(0); } *----------------------------------------------------------------------* At first I assumed the problem was with indent itself, but I don't see any changes in its code since release. Is this a bug, or user error? |