Hello!

   I found that bochs/gui code will give segfault, when connection to
   X server fails. HOwever bx_panic is called, but setting of
   abort_vm and break_vm is not enough, since vm is not yet run.
   HEre is trivial patch to avoid segfault to user/plugins/bochs/gui/x.cc:

--- x.cc.orig   Sun Jan 16 14:34:51 2000
+++ x.cc        Sun Jan 16 14:35:10 2000
@@ -287,6 +287,7 @@
   {
     bx_panic("%s: cannot connect to X server %s\n",
         progname, XDisplayName(display_name));
+    exit(1);
   }
 
   /* get screen size from display structure macro */

Bye,
    Oleg

Reply via email to