Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64732 - glibc-2.3.4.20040918 supplied a broken /usr/bin/ldd
Summary: glibc-2.3.4.20040918 supplied a broken /usr/bin/ldd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 64921 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-20 02:36 UTC by Herbie Hopkins (RETIRED)
Modified: 2004-09-21 18:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Herbie Hopkins (RETIRED) gentoo-dev 2004-09-20 02:36:56 UTC
Upgraded glibc to 2.3.4.20040918 but the ldd supplied appears to have errors in.
e.g.

$ ldd 
/usr/bin/ldd: line 78: syntax error near unexpected token `)'
/usr/bin/ldd: line 78: `  --v | --ve | --ver)'

The fix is rather trivial though:

--- ldd.bak     2004-09-20 10:16:27.181495792 +0100
+++ ldd 2004-09-20 10:20:53.056076712 +0100
@@ -75,6 +75,7 @@
   -u | --u | --un | --unu | --unus | --unuse | --unused)
     unused=yes
     shift
+    ;;
   --v | --ve | --ver)
     echo >&2 $"ldd: option \`$1' is ambiguous"
     exit 1
@@ -103,7 +104,7 @@
 add_env="$add_env LD_LIBRARY_VERSION=\$verify_out"
 add_env="$add_env LD_VERBOSE=$verbose"
 if test "$unused" = yes; then
-  add_env="$add_env LD_DEBUG="$LD_DEBUG${LD_DEBUG:+,}unused"
+  add_env="$add_env LD_DEBUG="$LD_DEBUG${LD_DEBUG:+,}unused""
 fi
 case $# in
 0)




Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Marco Squarcina 2004-09-20 14:24:40 UTC
The same here.... example:

lavish@darkstar ~ $ fbsetbg /mnt/data1/images/CRYOPOD1.jpg 
/usr/bin/ldd: line 78: syntax error near unexpected token `)'
/usr/bin/ldd: line 78: `  --v | --ve | --ver)'
*** glibc detected *** double free or corruption: 0x0000000000508e40 ***
/usr/bin/fbsetbg: line 506:  9911 Aborted                 $WPSETTER `eval echo $option` "$wallpaper"



gcc-3.4.1-r3
development-sources-2.6.9-r2
Comment 2 SpanKY gentoo-dev 2004-09-21 06:38:51 UTC
e-mailed upstream since it's still broken in glibc cvs
Comment 3 Travis Tilley (RETIRED) gentoo-dev 2004-09-21 12:20:06 UTC
wow. looks like someone committed a patch without testing it. O_O
fixed in cvs, give it a bit to reach rsync. i didnt do a revision bump for this change, it's so small...
Comment 4 Marco Squarcina 2004-09-21 13:58:23 UTC
Thanks Travis! It works :D
Comment 5 Joe McCann (RETIRED) gentoo-dev 2004-09-21 18:48:15 UTC
*** Bug 64921 has been marked as a duplicate of this bug. ***