bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Odd crash with strip


From: R.K.
Subject: Odd crash with strip
Date: Tue, 10 Jan 2006 01:42:34 -0600

# uname -rmo
2.4.22-rmap15k i586 GNU/Linux

# strip --version
GNU strip 2.16.1


This crash depends on the arguments to 'strip' being given in exactly
this order, with all three of these files (attached):

# strip bash checkpassword cp
BFD: checkpassword: warning: Empty loadable segment detected, is this 
intentional ?

BFD: checkpassword: warning: Empty loadable segment detected, is this 
intentional ?

strip: there are no sections to be copied!
free(): invalid pointer 0x8102f78!
Segmentation fault (core dumped)


When the core file produced by 'strip' is included before 'cp', the
following line appears before the segmentation fault:

strip: cp: section `.interp': error in making: Memory exhausted


Most of the output comes from stripping 'checkpassword':

# strip checkpassword
BFD: checkpassword: warning: Empty loadable segment detected, is this 
intentional ?

BFD: checkpassword: warning: Empty loadable segment detected, is this 
intentional ?

strip: there are no sections to be copied!


(gdb) bt
#0  0x4008b266 in malloc_consolidate () from /lib/libc.so.6
#1  0x4008a8e3 in _int_malloc () from /lib/libc.so.6
#2  0x40089caf in malloc () from /lib/libc.so.6
#3  0x080ddf06 in objalloc_create ()
#4  0x08079eaa in bfd_hash_table_init_n ()
#5  0x08079f69 in bfd_hash_table_init ()
#6  0x080a74c6 in _bfd_elf_strtab_init ()
#7  0x08091fd2 in _bfd_elf_compute_section_file_positions ()
#8  0x0809663c in _bfd_elf_set_section_contents ()
#9  0x080789ad in bfd_set_section_contents ()
#10 0x0804c678 in copy_section (ibfd=0x80fe068, isection=0x810030c, 
obfdarg=0x80ff128) at objcopy.c:2110
#11 0x0807886e in bfd_map_over_sections ()
#12 0x0804b4d0 in copy_object (ibfd=0x80fe068, obfd=0x80ff128) at objcopy.c:1431
#13 0x0804bd0c in copy_file (input_filename=0xbffff40b "cp", 
output_filename=0x80fe058 "sthnfAx8", input_target=0x0,
    output_target=0x80e7706 "elf32-i386") at objcopy.c:1724
#14 0x0804cee0 in strip_main (argc=4, argv=0xbffff244) at objcopy.c:2431
#15 0x0804e24f in main (argc=4, argv=0xbffff244) at objcopy.c:3107

Attachment: strip-bug.tar.gz
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]