Work around changes in newer versions of glibc
[satcheck.git] / main.cc
diff --git a/main.cc b/main.cc
index d8d4193b1256b0d8cf767391246502dd4a877a85..9060af5f96124b38ce244a79100bfe8421f3b556 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -125,6 +125,18 @@ int main(int argc, char **argv)
        main_argc = argc;
        main_argv = argv;
 
+       /*
+        * If this printf statement is removed, CDSChecker will fail on an
+        * assert on some versions of glibc.  The first time printf is
+        * called, it allocated internal buffers.  We can't easily snapshot
+        * libc since we also use it.
+        */
+       
+       printf("SATCheck\n"
+                                "Copyright (c) 2016 Regents of the University of California. All rights reserved.\n"
+                                "Distributed under the GPLv2\n"
+                                "Written by Brian Demsky and Patrick Lam\n\n");
+       
        /* Configure output redirection for the model-checker */
        redirect_output();