]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD: start adding more checks for /proc
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 22 Jan 2023 20:48:51 +0000 (21:48 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 22 Jan 2023 20:48:51 +0000 (21:48 +0100)
Also add a couple of expecteds.

coregrind/m_clientstate.c
coregrind/m_main.c
coregrind/m_syswrap/syswrap-freebsd.c
coregrind/pub_core_clientstate.h
memcheck/tests/Makefile.am
memcheck/tests/origin5-bz2.stderr.exp-freebsd [deleted file]
memcheck/tests/origin5-bz2.stderr.exp-freebsd-x86 [deleted file]

index 93662dcb3d0753c17665ae87b1086e0a6052b4ab..7b343f27a50cdba982ce867c3379f15a064d1807 100644 (file)
@@ -129,6 +129,10 @@ client__gnu_get_libc_version_type VG_(client__gnu_get_libc_version_addr) = 0;
 Int* VG_(vfork_fildes_addr) = 0;
 #endif
 
+#if defined(VGO_freebsd)
+Bool VG_(have_slash_proc) = False;
+#endif
+
 /*--------------------------------------------------------------------*/
 /*--- end                                                          ---*/
 /*--------------------------------------------------------------------*/
index 27ec4514331bc0d336b5bab5a13b122375bc88d6..7a22b088a05e9018305ecaae4963513841f632de 100644 (file)
@@ -1719,6 +1719,18 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp )
    }
 #endif
 
+#if defined(VGO_freebsd)
+   /* On FreeBSD /proc is optional
+    * Most functionality is accessed through sysctl instead */
+   if (!need_help) {
+      struct vg_stat statbuf;
+      SysRes statres = VG_(stat)("/proc", &statbuf);
+      if (!sr_isError(statres) || VKI_S_ISLNK(statbuf.mode)) {
+         VG_(have_slash_proc) = True;
+      }
+   }
+#endif
+
    //--------------------------------------------------------------
    // Init tool part 1: pre_clo_init
    //   p: setup_client_stack()      [for 'VG_(client_arg[cv]']
index 129df533df8a7f44a82fbbbc8df42799b44d5c27..401a7ba8eed6973cef729b4ff4cb85fdc40e2d1e 100644 (file)
@@ -5334,21 +5334,23 @@ PRE(sys_readlinkat)
    PRE_MEM_RASCIIZ( "readlinkat(path)", ARG2 );
    PRE_MEM_WRITE( "readlinkat(buf)", ARG3,ARG4 );
 
-   /*
-    * Handle the case where readlinkat is looking at /proc/curproc/file or
-    * /proc/<pid>/file.
-    */
-   VG_(sprintf)(name, "/proc/%d/file", VG_(getpid)());
-   if (ML_(safe_to_deref)((void*)ARG2, 1)
-         && (VG_(strcmp)((HChar *)ARG2, name) == 0
-             || VG_(strcmp)((HChar *)ARG2, "/proc/curproc/file") == 0)) {
-      VG_(sprintf)(name, "/proc/self/fd/%d", VG_(cl_exec_fd));
-      SET_STATUS_from_SysRes( VG_(do_syscall4)(saved, ARG1, (UWord)name,
-                              ARG3, ARG4));
-   } else {
-      /* Normal case */
-      SET_STATUS_from_SysRes( VG_(do_syscall4)(saved, ARG1, ARG2, ARG3, ARG4));
+   if (VG_(have_slash_proc) == True) {
+      /*
+       * Handle the case where readlinkat is looking at /proc/curproc/file or
+       * /proc/<pid>/file.
+       */
+      VG_(sprintf)(name, "/proc/%d/file", VG_(getpid)());
+      if (ML_(safe_to_deref)((void*)ARG2, 1)
+            && (VG_(strcmp)((HChar *)ARG2, name) == 0
+                || VG_(strcmp)((HChar *)ARG2, "/proc/curproc/file") == 0)) {
+         VG_(sprintf)(name, "/proc/curproc/fd/%d", VG_(cl_exec_fd));
+         SET_STATUS_from_SysRes( VG_(do_syscall4)(saved, ARG1, (UWord)name,
+                                 ARG3, ARG4));
+         return;
+      }
    }
+   /* Normal case */
+   SET_STATUS_from_SysRes( VG_(do_syscall4)(saved, ARG1, ARG2, ARG3, ARG4));
 }
 
 POST(sys_readlinkat)
index 824ce1e05f8f764a23759293f73fc0cbd63b02f4..dceece9b90ba83dc51e0258c205f2af770979791 100644 (file)
@@ -127,6 +127,10 @@ extern client__gnu_get_libc_version_type VG_(client__gnu_get_libc_version_addr);
 extern Int* VG_(vfork_fildes_addr);
 #endif
 
+#if defined(VGO_freebsd)
+extern Bool VG_(have_slash_proc);
+#endif
+
 #endif   // __PUB_CORE_CLIENTSTATE_H
 
 /*--------------------------------------------------------------------*/
index c382af5e07e7ab96eb9f2db50119f7669eee66d5..aa936ac05ea7096c4c8e10112f635a722cfcca62 100644 (file)
@@ -249,8 +249,6 @@ EXTRA_DIST = \
        origin5-bz2.stderr.exp-glibc27-ppc64 \
        origin5-bz2.stderr.exp-glibc212-s390x \
        origin5-bz2.stderr.exp-glibc234-s390x \
-       origin5-bz2.stderr.exp-freebsd \
-       origin5-bz2.stderr.exp-freebsd-x86 \
        origin5-bz2.stderr.exp-glibc218-mips32 \
        origin6-fp.vgtest origin6-fp.stdout.exp \
        origin6-fp.stderr.exp-glibc25-amd64 \
diff --git a/memcheck/tests/origin5-bz2.stderr.exp-freebsd b/memcheck/tests/origin5-bz2.stderr.exp-freebsd
deleted file mode 100644 (file)
index b1ac2cd..0000000
+++ /dev/null
@@ -1,158 +0,0 @@
-Conditional jump or move depends on uninitialised value(s)
-   at 0x........: main (origin5-bz2.c:6481)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Conditional jump or move depends on uninitialised value(s)
-   at 0x........: copy_input_until_stop (origin5-bz2.c:4686)
-   by 0x........: handle_compress (origin5-bz2.c:4750)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 8
-   at 0x........: copy_input_until_stop (origin5-bz2.c:4686)
-   by 0x........: handle_compress (origin5-bz2.c:4750)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 8
-   at 0x........: copy_input_until_stop (origin5-bz2.c:4686)
-   by 0x........: handle_compress (origin5-bz2.c:4750)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 8
-   at 0x........: mainSort (origin5-bz2.c:2820)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 8
-   at 0x........: mainSort (origin5-bz2.c:2823)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 8
-   at 0x........: mainSort (origin5-bz2.c:2854)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 8
-   at 0x........: mainSort (origin5-bz2.c:2855)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 8
-   at 0x........: mainSort (origin5-bz2.c:2858)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 8
-   at 0x........: mainSort (origin5-bz2.c:2859)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 8
-   at 0x........: mainSort (origin5-bz2.c:2963)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 8
-   at 0x........: mainSort (origin5-bz2.c:2964)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 8
-   at 0x........: fallbackSort (origin5-bz2.c:2269)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3116)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 8
-   at 0x........: fallbackSort (origin5-bz2.c:2275)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3116)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 8
-   at 0x........: fallbackSort (origin5-bz2.c:2276)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3116)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Conditional jump or move depends on uninitialised value(s)
-   at 0x........: main (origin5-bz2.c:6512)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
diff --git a/memcheck/tests/origin5-bz2.stderr.exp-freebsd-x86 b/memcheck/tests/origin5-bz2.stderr.exp-freebsd-x86
deleted file mode 100644 (file)
index 7e6dd6f..0000000
+++ /dev/null
@@ -1,158 +0,0 @@
-Conditional jump or move depends on uninitialised value(s)
-   at 0x........: main (origin5-bz2.c:6481)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Conditional jump or move depends on uninitialised value(s)
-   at 0x........: copy_input_until_stop (origin5-bz2.c:4686)
-   by 0x........: handle_compress (origin5-bz2.c:4750)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 4
-   at 0x........: copy_input_until_stop (origin5-bz2.c:4686)
-   by 0x........: handle_compress (origin5-bz2.c:4750)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 4
-   at 0x........: copy_input_until_stop (origin5-bz2.c:4686)
-   by 0x........: handle_compress (origin5-bz2.c:4750)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 4
-   at 0x........: mainSort (origin5-bz2.c:2820)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 4
-   at 0x........: mainSort (origin5-bz2.c:2823)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 4
-   at 0x........: mainSort (origin5-bz2.c:2854)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 4
-   at 0x........: mainSort (origin5-bz2.c:2855)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 4
-   at 0x........: mainSort (origin5-bz2.c:2858)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 4
-   at 0x........: mainSort (origin5-bz2.c:2859)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 4
-   at 0x........: mainSort (origin5-bz2.c:2963)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 4
-   at 0x........: mainSort (origin5-bz2.c:2964)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 4
-   at 0x........: fallbackSort (origin5-bz2.c:2269)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3116)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 4
-   at 0x........: fallbackSort (origin5-bz2.c:2275)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3116)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Use of uninitialised value of size 4
-   at 0x........: fallbackSort (origin5-bz2.c:2276)
-   by 0x........: BZ2_blockSort (origin5-bz2.c:3116)
-   by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
-   by 0x........: handle_compress (origin5-bz2.c:4753)
-   by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
-   by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
-   by 0x........: main (origin5-bz2.c:6484)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-
-Conditional jump or move depends on uninitialised value(s)
-   at 0x........: main (origin5-bz2.c:6512)
- Uninitialised value was created by a client request
-   at 0x........: main (origin5-bz2.c:6479)
-