> Has anyone else noticed savecore core dumping on a bus error? I think it
> started on my yesterday's make world. Redid the make world today with the
> latest sources and it's still doing it. Leaves a nice savecore.core in /.

Try the enclosed patch.

- Tor Egge

Index: sbin/savecore/savecore.c
===================================================================
RCS file: /home/ncvs/src/sbin/savecore/savecore.c,v
retrieving revision 1.33
diff -u -r1.33 savecore.c
--- sbin/savecore/savecore.c    2000/05/09 22:20:14     1.33
+++ sbin/savecore/savecore.c    2000/09/01 01:56:01
@@ -108,7 +108,7 @@
 int    dumpsize;                       /* amount of memory dumped */
 
 char   *kernel;
-char   *dirname;                       /* directory to save dumps in */
+static char    *dirname;                       /* directory to save dumps in */
 char   *ddname;                        /* name of dump device */
 dev_t  dumpdev;                        /* dump device */
 int    dumpfd;                         /* read/write descriptor on char dev */

Reply via email to