Public bug reported:

Binary package hint: bash

This problem also occurs on 7.10 (As well as Hardy). This only seems to
occur when using the "set" command to list the shell variables. Exact
errors reported as below:

$ valgrind bash -c "set ; exit 0" > /dev/null
==8226== Memcheck, a memory error detector.
==8226== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==8226== Using LibVEX rev 1804, a library for dynamic binary translation.
==8226== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==8226== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation 
framework.
==8226== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==8226== For more details, rerun with: -v
==8226== 
==8226== Conditional jump or move depends on uninitialised value(s)
==8226==    at 0x80950BA: array_to_assign (in /bin/bash)
==8226==    by 0x8095843: print_array_assignment (in /bin/bash)
==8226==    by 0x8077EEB: print_assignment (in /bin/bash)
==8226==    by 0x8077F7F: print_var_list (in /bin/bash)
==8226==    by 0x80AE149: set_builtin (in /bin/bash)
==8226==    by 0x806F399: (within /bin/bash)
==8226==    by 0x8073070: (within /bin/bash)
==8226==    by 0x8071552: execute_command_internal (in /bin/bash)
==8226==    by 0x806FAD2: execute_command (in /bin/bash)
==8226==    by 0x80709E1: (within /bin/bash)
==8226==    by 0x80714BF: execute_command_internal (in /bin/bash)
==8226==    by 0x80A7F4A: parse_and_execute (in /bin/bash)
==8226== 
==8226== Conditional jump or move depends on uninitialised value(s)
==8226==    at 0x80950C7: array_to_assign (in /bin/bash)
==8226==    by 0x8095843: print_array_assignment (in /bin/bash)
==8226==    by 0x8077EEB: print_assignment (in /bin/bash)
==8226==    by 0x8077F7F: print_var_list (in /bin/bash)
==8226==    by 0x80AE149: set_builtin (in /bin/bash)
==8226==    by 0x806F399: (within /bin/bash)
==8226==    by 0x8073070: (within /bin/bash)
==8226==    by 0x8071552: execute_command_internal (in /bin/bash)
==8226==    by 0x806FAD2: execute_command (in /bin/bash)
==8226==    by 0x80709E1: (within /bin/bash)
==8226==    by 0x80714BF: execute_command_internal (in /bin/bash)
==8226==    by 0x80A7F4A: parse_and_execute (in /bin/bash)
==8226== 
==8226== Conditional jump or move depends on uninitialised value(s)
==8226==    at 0x80950D4: array_to_assign (in /bin/bash)
==8226==    by 0x8095843: print_array_assignment (in /bin/bash)
==8226==    by 0x8077EEB: print_assignment (in /bin/bash)
==8226==    by 0x8077F7F: print_var_list (in /bin/bash)
==8226==    by 0x80AE149: set_builtin (in /bin/bash)
==8226==    by 0x806F399: (within /bin/bash)
==8226==    by 0x8073070: (within /bin/bash)
==8226==    by 0x8071552: execute_command_internal (in /bin/bash)
==8226==    by 0x806FAD2: execute_command (in /bin/bash)
==8226==    by 0x80709E1: (within /bin/bash)
==8226==    by 0x80714BF: execute_command_internal (in /bin/bash)
==8226==    by 0x80A7F4A: parse_and_execute (in /bin/bash)
==8226== 
==8226== Conditional jump or move depends on uninitialised value(s)
==8226==    at 0x40239DB: strlen (mc_replace_strmem.c:242)
==8226==    by 0x80951E0: array_to_assign (in /bin/bash)
==8226==    by 0x8095843: print_array_assignment (in /bin/bash)
==8226==    by 0x8077EEB: print_assignment (in /bin/bash)
==8226==    by 0x8077F7F: print_var_list (in /bin/bash)
==8226==    by 0x80AE149: set_builtin (in /bin/bash)
==8226==    by 0x806F399: (within /bin/bash)
==8226==    by 0x8073070: (within /bin/bash)
==8226==    by 0x8071552: execute_command_internal (in /bin/bash)
==8226==    by 0x806FAD2: execute_command (in /bin/bash)
==8226==    by 0x80709E1: (within /bin/bash)
==8226==    by 0x80714BF: execute_command_internal (in /bin/bash)
==8226== 
==8226== Conditional jump or move depends on uninitialised value(s)
==8226==    at 0x40239E7: strlen (mc_replace_strmem.c:242)
==8226==    by 0x80951E0: array_to_assign (in /bin/bash)
==8226==    by 0x8095843: print_array_assignment (in /bin/bash)
==8226==    by 0x8077EEB: print_assignment (in /bin/bash)
==8226==    by 0x8077F7F: print_var_list (in /bin/bash)
==8226==    by 0x80AE149: set_builtin (in /bin/bash)
==8226==    by 0x806F399: (within /bin/bash)
==8226==    by 0x8073070: (within /bin/bash)
==8226==    by 0x8071552: execute_command_internal (in /bin/bash)
==8226==    by 0x806FAD2: execute_command (in /bin/bash)
==8226==    by 0x80709E1: (within /bin/bash)
==8226==    by 0x80714BF: execute_command_internal (in /bin/bash)
==8226== 
==8226== ERROR SUMMARY: 60 errors from 5 contexts (suppressed: 15 from 1)
==8226== malloc/free: in use at exit: 0 bytes in 0 blocks.
==8226== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==8226== For counts of detected errors, rerun with: -v
==8226== All heap blocks were freed -- no leaks are possible.

ProblemType: Bug
Architecture: i386
Date: Sun Mar 16 15:32:42 2008
DistroRelease: Ubuntu 8.04
Package: bash 3.2-0hostname14
PackageArchitecture: i386
SourcePackage: bash
Uname: Linux 2.6.24-11-generic i686

** Affects: bash (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug

-- 
Valgrind reports "Conditional jump or move depends on uninitialised value"
https://bugs.launchpad.net/bugs/202885
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to