Bash crashing during stripping

Eduard Omasta omasta at fri.utcru.sk
Fri Sep 24 16:42:34 PDT 2004


    Hello,

    I've gone through the Chapter 5 in LFS 5.1 and I've
got strange bash crash at stripping:

    $ cat stripping
      strip --strip-debug /tools/lib/*
      strip --strip-unneeded /tools//{,s}/bin/*
      rm -rf /mnt/lfs/tools//{doc,info,man}
    $ bash stripping
      strip: /tools/lib/gcc-lib: Is a directory
      strip: /tools/lib/gconv: Is a directory
      strip: /tools/lib/gettext: Is a directory
      strip: /tools/lib/libasprintf.la: File format not recognized
      strip: /tools/lib/libbfd.la: File format not recognized
      strip: /tools/lib/libc.so: File format not recognized
      strip: /tools/lib/libgettextlib.la: File format not recognized
      strip: /tools/lib/libgettextpo.la: File format not recognized
      strip: /tools/lib/libgettextsrc.la: File format not recognized
      strip: /tools/lib/libopcodes.la: File format not recognized
      strip: /tools/lib/libpthread.so: File format not recognized
      strip: /tools/lib/libstdc++.la: File format not recognized
      strip: /tools/lib/libsupc++.la: File format not recognized
      strip: /tools/lib/perl5: Is a directory
      strip: /tools/lib/tcl8.4: Is a directory
      strip: /tools/lib/tclConfig.sh: File format not recognized
      strip: /tools/lib/terminfo: Is a directory
      Segmentation fault (core dumped)

    The stripping works fine when I give strip commands from command
line (or when invoking the script in old bash with ". stripping")
but it crashes when I first invoke just built new version of bash.
I wasn't able to force this new bash to crash with other commands;
it works fine until I enter the above strip command. The gdb gives:

    $ gdb /mnt/lfs/tools/bin/bash /mnt/lfs/core.4643
    GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
    Copyright 2003 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License,
    and you are welcome to change it and/or distribute copies of it
    under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB.  Type "show warranty"
    for details.
    This GDB was configured as "i386-redhat-linux-gnu"...
    Core was generated by `bash stripping'.
    Program terminated with signal 11, Segmentation fault.
    Reading symbols from /tools/lib/libncurses.so.5...done.
    Loaded symbols for /tools/lib/libncurses.so.5
    Reading symbols from /tools/lib/libdl.so.2...done.
    Loaded symbols for /tools/lib/libdl.so.2
    Reading symbols from /tools/lib/libc.so.6...done.
    Loaded symbols for /tools/lib/libc.so.6
    Reading symbols from /tools/lib/ld-linux.so.2...done.
    Loaded symbols for /tools/lib/ld-linux.so.2
    Reading symbols from /tools/lib/libnss_files.so.2...done.
    Loaded symbols for /tools/lib/libnss_files.so.2
    #0  0x4000785a in do_lookup_versioned () from
        /tools/lib/ld-linux.so.2
    (gdb) backtrace
    #0  0x4000785a in do_lookup_versioned () from
        /tools/lib/ld-linux.so.2
    #1  0x4000839f in _dl_lookup_versioned_symbol_internal ()
        from /tools/lib/ld-linux.so.2
    #2  0x4000b48e in fixup () from /tools/lib/ld-linux.so.2
    #3  0x4000b660 in _dl_runtime_resolve () from
        /tools/lib/ld-linux.so.2
    #4  0x0807668d in notify_and_cleanup () at jobs.c:2042
    #5  0x08076330 in wait_for (pid=139) at jobs.c:1989
    #6  0x080687a5 in execute_command_internal (command=0x80eb348,
        asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x80e7c08)
        at execute_cmd.c:666
    #7  0x08068145 in execute_command (command=0x12a0) at
        execute_cmd.c:324
    #8  0x0805cc20 in reader_loop () at eval.c:143
    #9  0x0805ada5 in main (argc=2, argv=0xbfffe1c4, env=0xbfffe1d0)
        at shell.c:680
    #10 0x4006fe6b in __libc_start_main () from /tools/lib/libc.so.6

    I was building LFS 5.1 on RH 9.0. Can anybody help me with this problem?

--
Eduard Omasta





More information about the lfs-support mailing list