GCC 3.4.3 was used to build binutils and the object files below. This problem is reproducable in binutils 040922. When performing the following command, ar crashes at line 4422: /bmc/moe/bin/ar cqs ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/librpg.a ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/VisKey.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/vis_NodeKey.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/vis_NodeKey_gen.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/an_rids.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/db_an_rids.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/rpg_cr.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/rpg_data.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/rpg_ps.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/rpg_ex.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/rpg_out.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/rpg_read.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/rpg_vis.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/rpg_planvis.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/rpg_vis_util.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/rpgen.o ../../../../obj/ibm/powerpc- aix5.1.0.0/gapLib/lib/rpgen/rpg/rpgenf.o /bin/sh: 1081542 Memory fault(coredump) *** Error code 139 (ignored) A core file is generated. The stack trace is: Program terminated with signal 11, Segmentation fault. #0 coff_slurp_symbol_table (abfd=0x20011968) at /depot/gnu/binutils-050223/bfd/coffcode.h:4422 4422 sym->lineno = cache_ptr; (gdb) where #0 coff_slurp_symbol_table (abfd=0x20011968) at /depot/gnu/binutils-050223/bfd/coffcode.h:4422 #1 0x1000af70 in coff_get_symtab_upper_bound (abfd=0x20011968) at /depot/gnu/binutils-050223/bfd/coffgen.c:359 #2 0x1002a100 in _bfd_compute_and_write_armap (arch=0x200476d8, elength=0) at /depot/gnu/binutils-050223/bfd/archive.c:1800 #3 0x10020058 in _bfd_xcoff_write_archive_contents (abfd=0x200476d8) at /depot/gnu/binutils-050223/bfd/coff-rs6000.c:2546 #4 0x100148ec in bfd_close (abfd=0x200476d8) at /depot/gnu/binutils-050223/bfd/opncls.c:589 #5 0x10001490 in write_archive (iarch=0x2000b738) at /depot/gnu/binutils-050223/binutils/ar.c:950 #6 0x100021b8 in main (argc=537146612, argv=0x2ff221c0) at /depot/gnu/binutils-050223/binutils/ar.c:1189 I will check to see if this happens on AIX 5.2 and 5.3. The object files were built with g++ -g -O2. I have the object files for debugging if you need them.
Subject: Re: New: ar (version 050223 20050223) segfaults at line 4422 Hi Eric, > GCC 3.4.3 was used to build binutils and the object files below. > This problem is reproducable in binutils 040922. Does the bug happen if you use the current mainline sources from the binutils CVS repository ? > I will check to see if this happens on AIX 5.2 and 5.3. Does it ? > The object files were built with g++ -g -O2. > I have the object files for debugging if you need them. Well really we would prefer a small self contained test case, but if you cannot manage that then if you could put the files up for ftp/http somewhere that would be helpful. Cheers Nick
Eric, did you resolve this bug?
Reporter never responded after more than a year.