[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: PCB: DRC segfault on a ratline



Hello;

I just fed tut1.pcb from PCB distribution to DRC and got another
segmentation fault.

diff --git a/src/find.c b/src/find.c
index 1962234..d5f1332 100644
--- a/src/find.c
+++ b/src/find.c
@@ -4417,6 +4417,7 @@ BuildObjectList (int *object_count, long int
**object_id_list, int **object_type
     case VIA_TYPE:
     case PAD_TYPE:
     case ELEMENT_TYPE:
+    case RATLINE_TYPE:
       *object_count = 1;
       *object_id_list = malloc (sizeof (long int));
       *object_type_list = malloc (sizeof (int));
@@ -4425,6 +4426,10 @@ BuildObjectList (int *object_count, long int
**object_id_list, int **object_type
       return;

     default:
+      fprintf (stderr,
+	       _("Internal error in BuildObjectList: unknown thing_type %i\n"),
+	       thing_type);
+      fprintf (stderr,_(" This must result in a segmentation fault..\n"));
       return;
     }
 }

Cheers,
Ineiev


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user