Your message dated Sat, 12 Nov 2005 04:02:10 -0800 with message-id <[EMAIL PROTECTED]> and subject line Bug#326103: fixed in binutils 2.16.1cvs20051109-1 has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 1 Sep 2005 19:48:07 +0000 >From [EMAIL PROTECTED] Thu Sep 01 12:48:07 2005 Return-path: <[EMAIL PROTECTED]> Received: from colo.lackof.org [198.49.126.79] by spohr.debian.org with esmtp (Exim 3.36 1 (Debian)) id 1EAv2c-0003SA-00; Thu, 01 Sep 2005 12:48:07 -0700 Received: from localhost (localhost [127.0.0.1]) by colo.lackof.org (Postfix) with ESMTP id AD62229802F for <[EMAIL PROTECTED]>; Thu, 1 Sep 2005 13:53:28 -0600 (MDT) Received: from colo.lackof.org ([127.0.0.1]) by localhost (colo.lackof.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25732-04 for <[EMAIL PROTECTED]>; Thu, 1 Sep 2005 13:53:28 -0600 (MDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by colo.lackof.org (Postfix) with ESMTP id 913EF298013 for <[EMAIL PROTECTED]>; Thu, 1 Sep 2005 13:53:27 -0600 (MDT) Subject: binutils: gcc -u hits ld segfault w/ certain -u options From: dann frazier <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Content-Type: text/plain Date: Thu, 01 Sep 2005 13:49:55 -0600 Message-Id: <[EMAIL PROTECTED]> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at lackof.org Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02 Package: binutils Version: 2.16.1-3 I hit this segfault[1] when building d-i. I rebuilt binutils unstripped, reproduced & collected a backtrace[2]. An obvious NULL-pointer dereference. I don't know if the bug is that its just not checking the pointer before accessing it, or if a NULL pointer should never have made it this far. I did do some blackbox testing and determined that 3 of the -u arguments[3] will cause a segfault whenever they are used alone. If I remove these three args, gcc completes without error. [1] ... reducing libc.so.6.1 Command failed with status 1 : gcc -nostdlib -nostartfiles -shared -Wl,-son= ame=3Dlibc.so.6.1 -uwctomb -ufclose -ufreopen64 -ugetmntent -usleep -uumask= -usend -u__fxstat -usetutent -uisspace -ulocaltime -ugetpt -ugetppid -uuti= me -ustrnlen -u__libc_sigaction -u__sched_getparam -urecvfrom -uopendir -us= tderr -uklogctl -usnprintf -uoptind -umemset -usync -ustrerror -usyslog -u_= libc_intl_domainname -ustrcasestr -u__ctype_get_mb_cur_max -uindex -ustrcsp= n -uopenlog -uaccess -ugrantpt -ucfmakeraw -u__dcgettext -uioperm -umunmap = -uh_errno -ufputc -u_IO_list_lock -uwait -uwcwidth -usendmsg -uiswalnum -ur= ename -u__environ -umkdir -urealloc -uprintf -uunlockpt -u__strcasecmp -use= lect -ugetchar -urindex -uendservent -ustrdup -umprotect -u__resp -u__strto= ld_internal -uisatty -utdelete -ustatfs64 -uwarn -ugettimeofday -uherror -u= updwtmp -uchdir -u__errno_location -u_dl_vsym -uutmpname -uinet_nsap_ntoa -= ufnmatch -u__strtof_internal -usysconf -u__res_maybe_init -u__poll -uaccept= -uabort -ufprintf -ustrtoll -ustrlen -ustrncat -uchroot -uclearerr -ugetgr= oups -ufeof -uwrite -u__gettimeofday -urewind -u__sched_get_priority_max -u= vasprintf -uunsetenv -u__cxa_finalize -ugethostbyname -uioctl -uunlink -utc= getpgrp -usigdelset -ugetutline_r -ustdin -u__rawmemchr -uenviron -u__xstat= -usetrlimit64 -u_IO_iter_next -ubasename -u__sigsetjmp -uuname -ustrtoul -= uswapoff -uexeclp -u__clone2 -ufwrite -u__libc_current_sigrtmax_private -ug= etpid -usetgid -ufeof_unlocked -uexecl -ucfgetospeed -usendto -uexecv -umem= chr -umkfifo -usys_siglist -uconnect -usigemptyset -udirname -u__getpid -ue= ndpwent -ureboot -uopen64 -usetsid -usprintf -u__ctype_b_loc -ustrrchr -ure= gexec -ugethostbyaddr -ustrchrnul -uasprintf -uferror -u__sigsuspend -ugetc= wd -ufree -utfind -ugetpeername -urecv -u_IO_list_resetlock -uputchar -u__s= trtol_internal -utimes -usigsetmask -ugetservbyname -uqsort -u__libc_thread= _freeres -u__xstat64 -u__libc_start_main -u__sysctl -uopen -ustrncpy -uusle= ep -ugetopt_long -untohl -usystem -ustrcasecmp -udcgettext -untohs -umemcmp= -u__asprintf -udprintf -umkstemp64 -ulisten -uswapon -u__libc_current_sigr= tmin_private -ufscanf -ubind -uvsnprintf -u__assert_fail -ustrtok_r -u_dl_s= ym -usigfillset -ucfsetospeed -ustpcpy -u__libc_system -ugeteuid -ugetrlimi= t64 -u__libc_pthread_init -utsearch -ugetrlimit -urealpath -utolower -utcge= tattr -ufopen64 -u__libc_dl_error_tsd -ustrpbrk -u_IO_iter_end -ualarm -upi= pe -uscandir -ustrncasecmp -u__sched_getscheduler -urandom -u_IO_putc -ulse= ek64 -usetmntent -ustrtol -u__sysv_signal -upause -ustrtok -ustrtod -u_envi= ron -uwritev -ufputs -ufchmod -usetlogmask -udup2 -utwalk -uinet_ntop -ubcm= p -ustrsep -uptsname_r -uinet_ntoa -umemcpy -ufileno -uperror -usrandom -uu= mount -uendutent -usigismember -ustrncmp -umbtowc -ustrcat -ugetsockname -u= close -ustrchr -u__fcntl -ugetnetbyaddr -uregcomp -uvdprintf -ufcntl -u__ge= tdelim -u__lxstat64 -usigaction -usetsockopt -ucloselog -ustrftime -uchmod = -ushutdown -usscanf -usigprocmask -uraise -uputs -u__libc_fork -udup -uread= dir64 -ulchown -ufread -ustrsignal -uexecvp -u__strtod_internal -uexecve -u= mount -ugetpwuid -uvsprintf -usetuid -umalloc -ustdout -u__register_atfork = -upopen -urecvmsg -utowlower -uwaitpid -uoptarg -ulongjmp -u_IO_iter_file -= u__ctype_tolower_loc -ucalloc -usetbuf -unl_langinfo -u__libc_siglongjmp -u= setitimer -u_dl_close -umempcpy -ulseek -ugetpwent -ucfsetispeed -u__res_nc= lose -u__lxstat -ukill -ufflush -ummap64 -u__xmknod -usethostname -ummap -u= ptsname -u_IO_iter_begin -u__getpagesize -utmpnam -u_setjmp -uread -udaemon= -ustrstr -uctime -ufsync -umemmove -usignal -uiswpunct -umblen -ustrcmp -u= toupper -ufgetc -upclose -uftruncate64 -ureaddir -ufgets -ugetgid -uendmnte= nt -uregfree -u__h_errno_location -uftell -uexit -uttyname_r -u_dl_addr -u_= _strdup -ugetpagesize -ugmtime -usymlink -upututline -u__stpncpy -u__sched_= setscheduler -u_IO_list_unlock -ugethostname -ugetnameinfo -usysinfo -usock= et -ustrcpy -ubsearch -ureadlink -u_exit -usetlocale -uumount2 -ufgets_unlo= cked -u__fxstat64 -ufopen -uputenv -ufdopen -uerrno -uvsyslog -urmdir -uin6= addr_any -u__res_state -ufork -uvprintf -ualphasort -u__libc_longjmp -usche= d_yield -ugetenv -uatoi -ulink -uvfprintf -uiswblank -ugetnetbyname -u_IO_g= etc -uwait3 -u_outb -u__cxa_atexit -ustrspn -uungetc -uhtonl -u__fsetlockin= g -ustrndup -usyscall -u__libc_allocate_rtsig_private -umbrtowc -uinet_pton= -uhtons -u__on_exit -usetenv -u__sched_get_priority_min -ugetopt -umkstemp= -uinet_aton -u_dl_open -utcsetattr -usigsuspend -uregerror -u__ctype_toupp= er_loc -usigaddset -uclosedir -ugetegid -ugetuid -uchown -utime -o ./tmp/ne= tboot/tree/lib/libc.so.6.1-so /usr/lib/libc_pic/soinit.o /usr/lib//libc_pic= .a /usr/lib/libc_pic/sofini.o /lib//ld-linux-ia64.so.2 -u __dso_handle -Wl,= --version-script=3D/usr/lib//libc_pic.map -lgcc -L ./tmp/netboot/tree/lib -= L./tmp/netboot/tree/usr/lib -L./tmp/netboot/udeblibs -L/lib/ -L/usr/lib/ -L= /usr/X11R6/lib/ -L./tmp/netboot/tree//usr/lib/cdebconf -L./tmp/netboot/tree= //usr/lib/cdebconf -L./tmp/netboot/tree//usr/lib/cdebconf -L./tmp/netboot/t= ree//usr/lib/cdebconf -L./tmp/netboot/tree//usr/lib/cdebconf -L./tmp/netboo= t/tree//usr/lib/cdebconf -L./tmp/netboot/tree//usr/lib/cdebconf -L./tmp/net= boot/tree//usr/lib/cdebconf -L./tmp/netboot/tree//usr/lib/cdebconf With output: collect2: ld terminated with signal 11 [Segmentation fault], c= ore dumped /usr/bin/ld: make[2]: *** [stamps/tree-netboot-stamp] Error 1 make[1]: *** [_build] Error 2 make: *** [build_netboot] Error 2 [EMAIL PROTECTED]:~/svn/d-i.trunk/installer/build$ gdb /usr/bin/ld ld ldapdelete ldappasswd ldd ldapadd ldapmodify ldapsearch ldd.ia32-libs ldapcompare ldapmodrdn ldapwhoami lddlibc4 [EMAIL PROTECTED]:~/svn/d-i.trunk/installer/build$ gdb /usr/bin/ld core GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you ar= e welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "ia64-linux"...Using host libthread_db library "= /lib/tls/libthread_db.so.1". Core was generated by `/usr/bin/ld -shared -o ./tmp/netboot/tree/lib/libc.s= o.6.1-so -uwctomb -ufclose'. Program terminated with signal 11, Segmentation fault. warning: current_sos: Can't read pathname for load map: Input/output error Reading symbols from /usr/lib/libfakeroot/libfakeroot-sysv.so.0...done. Loaded symbols for /usr/lib/libfakeroot/libfakeroot-sysv.so.0 Reading symbols from /usr/lib/libbfd-2.16.1.so...done. Loaded symbols for /usr/lib/libbfd-2.16.1.so Reading symbols from /lib/tls/libc.so.6.1...Reading symbols from /usr/lib/d= ebug/lib/tls/libc-2.3.5.so...done. done. Loaded symbols for /lib/tls/libc.so.6.1 Reading symbols from /lib/tls/libdl.so.2...Reading symbols from /usr/lib/de= bug/lib/tls/libdl-2.3.5.so...done. done. Loaded symbols for /lib/tls/libdl.so.2 Reading symbols from /lib/ld-linux-ia64.so.2...Reading symbols from /usr/li= b/debug/lib/ld-2.3.5.so...done. done. Loaded symbols for /lib/ld-linux-ia64.so.2 #0 _bfd_default_error_handler (fmt=3D0x2000000000173e56 "") at ../../bfd/bfd.c:481 481 if (abfd->my_archive) (gdb) bt #0 _bfd_default_error_handler (fmt=3D0x2000000000173e56 "") at ../../bfd/bfd.c:481 #1 0x2000000000117a10 in _bfd_elf_merge_symbol (abfd=3DVariable "abfd" is = not available. ) at ../../bfd/elflink.c:952 #2 0x200000000011f650 in bfd_elf_link_add_symbols (abfd=3D0x60000000000b8b= 40, info=3D0x60000000000115e8) at ../../bfd/elflink.c:3776 #3 0x200000000011e240 in elf_link_add_archive_symbols ( abfd=3D0x6000000000098490, info=3D0x60000000000115e8) at ../../bfd/elflink.c:4650 #4 0x200000000011ec30 in bfd_elf_link_add_symbols (abfd=3DVariable "abfd" = is not available. ) at ../../bfd/elflink.c:4706 #5 0x400000000001c380 in load_symbols (entry=3D0x600000000001c540, place=3D0x60000fffff877600) at ../../ld/ldlang.c:1869 #6 0x400000000002bbd0 in open_input_bfds (s=3D0x600000000001c540, force=3D= 0) at ../../ld/ldlang.c:2279 #7 0x400000000002c1a0 in lang_process () at ../../ld/ldlang.c:4743 #8 0x4000000000031c10 in main (argc=3D426, argv=3D0x60000fffff8778d8) at ../../ld/ldmain.c:458 (gdb) bt full #0 _bfd_default_error_handler (fmt=3D0x2000000000173e56 "") at ../../bfd/bfd.c:481 abfd =3D (bfd *) 0x0 ap =3D Cannot access memory at address 0xe8 (gdb) [3] -uh_errno -u__resp -uerrno --------------------------------------- Received: (at 326103-close) by bugs.debian.org; 12 Nov 2005 12:05:04 +0000 >From [EMAIL PROTECTED] Sat Nov 12 04:05:04 2005 Return-path: <[EMAIL PROTECTED]> Received: from katie by spohr.debian.org with local (Exim 4.50) id 1Eau5C-0004ih-Dk; Sat, 12 Nov 2005 04:02:10 -0800 From: James Troup <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] X-Katie: $Revision: 1.56 $ Subject: Bug#326103: fixed in binutils 2.16.1cvs20051109-1 Message-Id: <[EMAIL PROTECTED]> Sender: Archive Administrator <[EMAIL PROTECTED]> Date: Sat, 12 Nov 2005 04:02:10 -0800 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2005_01_02 X-CrossAssassin-Score: 4 Source: binutils Source-Version: 2.16.1cvs20051109-1 We believe that the bug you reported is fixed in the latest version of binutils, which is due to be installed in the Debian FTP archive: binutils-dev_2.16.1cvs20051109-1_i386.deb to pool/main/b/binutils/binutils-dev_2.16.1cvs20051109-1_i386.deb binutils-doc_2.16.1cvs20051109-1_all.deb to pool/main/b/binutils/binutils-doc_2.16.1cvs20051109-1_all.deb binutils-multiarch_2.16.1cvs20051109-1_i386.deb to pool/main/b/binutils/binutils-multiarch_2.16.1cvs20051109-1_i386.deb binutils_2.16.1cvs20051109-1.diff.gz to pool/main/b/binutils/binutils_2.16.1cvs20051109-1.diff.gz binutils_2.16.1cvs20051109-1.dsc to pool/main/b/binutils/binutils_2.16.1cvs20051109-1.dsc binutils_2.16.1cvs20051109-1_i386.deb to pool/main/b/binutils/binutils_2.16.1cvs20051109-1_i386.deb binutils_2.16.1cvs20051109.orig.tar.gz to pool/main/b/binutils/binutils_2.16.1cvs20051109.orig.tar.gz A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. James Troup <[EMAIL PROTECTED]> (supplier of updated binutils package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Fri, 11 Nov 2005 20:38:22 +0000 Source: binutils Binary: binutils-dev binutils-hppa64 binutils-multiarch binutils binutils-doc Architecture: source i386 all Version: 2.16.1cvs20051109-1 Distribution: unstable Urgency: low Maintainer: James Troup <[EMAIL PROTECTED]> Changed-By: James Troup <[EMAIL PROTECTED]> Description: binutils - The GNU assembler, linker and binary utilities binutils-dev - The GNU binary utilities (BFD development files) binutils-doc - Documentation for the GNU assembler, linker and binary utilities binutils-multiarch - Binary utilities that support multi-arch targets Closes: 326103 327780 333980 334626 334673 336175 336939 Changes: binutils (2.16.1cvs20051109-1) unstable; urgency=low . * New upstream CVS snapshot. * Fixes broken PLT handling on m68k. Closes: #327780 * Don't compile flex files with -Werror, fixing mips builds. Closes: #333980 * Don't check undefined symbols introduced by "ld -u" for TLS. Closes: #326103 . * 117_mips_symbolic_link.dpatch: merged upstream - removed. . * debian/rules: pass --disable-werror on ia64 as current gcc generates too many false positives. Closes: #336939 . * 125_fix_tc_arm_cast.dpatch: new patch from Lennert Buytenhek to fix cast warning and arm builds. Closes: #336175 . * 121_i386_x86_64_biarch.dpatch: imported from Ubuntu at request of Daniel Jacobwitz to fix biarch linking on i386/amd64. Closes: #334626, #334673 . * debian/rules: remove any reference to pkgstriptranslations - an Ubuntu-ism that shouldn't have been in the Debian package in the first place but that isn't needed in Ubuntu any more in any event. . * debian/rules: MAKEOVERRIDES is now clobbered by the top level Makefile, so switch to overriding MAKE itself (sic) to pass the customized VERSION variable/string down to sub-directories for -multiarch and -hppa64 builds. Thanks to Daniel Silverstone for the suggestion. Files: 2420b88ab555cae973942b844a9c2baf 1506 devel standard binutils_2.16.1cvs20051109-1.dsc 9f3d73b811cf6a2e6238b3cc47bddf57 15736352 devel standard binutils_2.16.1cvs20051109.orig.tar.gz b19e5db873933178c9696a8140b60b8f 34767 devel standard binutils_2.16.1cvs20051109-1.diff.gz 54b0dd82cc063ecb212b7283be6e3bbe 469004 doc optional binutils-doc_2.16.1cvs20051109-1_all.deb e4487e6448e4763699139938b8a24200 2594256 devel standard binutils_2.16.1cvs20051109-1_i386.deb 36a7743b0c07991a8ec40289882f4740 2400656 devel extra binutils-dev_2.16.1cvs20051109-1_i386.deb adaae0d52ef2b187c61ac1195c710af2 7157272 devel extra binutils-multiarch_2.16.1cvs20051109-1_i386.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iQIVAwUBQ3UHntfD8TGrKpH1AQJf0w/7BlPd22Vkp/2MLCdZOGz9/q9RxoYOqsz3 T8vX4evJYG+1WwhTFsfar7OH+Tw8dPiCXEJbumBNPrclrkjAw0WIUZCS2heXPuzd IKE8o50NX6y+YxSrtra4CbVbCjSVYdPB+xRe1vkpS3PJos5aHPeNFQ5HQXjXJg62 UoAT+uPy+2zysPjJB70V7u5N28ln+MN1EBA2f8qEWBPa7Qio+n9XETzZ+g+YAvux Qp9zXkJzeLlYcKjgDKBJDnAa4nihM5nMpZZqdtZZKaWC3xNPlHPaFy6HkkzJG+cd Az26hLVBWBFi5WGxaGp3+SO8WNkF2byfC0XzA4x5ddV9aq2N8ddM5fh0XyGUQqCY jDIa1YcfT4O1kkaQ8tDTeNmhhm0SCiFcMwkxZLZVetaCQY1LHOiCvx6Ba3Cs4UtL HotGnVORzCGO/0f89TEiURApcrgDGC7QSiIBhdNZVtk3y6hPyMRO091X0WxfCaMM 3zQDGnWcrWAQzhaE003mD41IWm94ucdHwAKDv87d0Aj8CoA7vFriBZ+19Invnk5U OBj03sPApR1auWeMnOX1tYM39FJ5wdt6cwzK01pjy6kIBselj8iXilecJL2MDls7 xoY2azm6haS7/DeEReVV1/ChpowPXZp8KnKQwlviTPuWpDWtXB0HIBOiv1lF3dpk 1tMqMOnUjAQ= =4IHx -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]