This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

h8300-hms-ld bug (valgrind output)


Prompted by an off-list suggestion, here is the valgrind output:

Max.


==2387== valgrind-1.0.4, a memory error detector for x86 GNU/Linux.
==2387== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==2387== Estimated CPU clock rate is 1205 MHz
==2387== For more details, rerun with: -v
==2387== 
==2387== Invalid read of size 4
==2387==    at 0x80665D4: h8300_bfd_link_add_symbols (../../bfd/coff-h8300.c:1219)
==2387==    by 0x804F35D: load_symbols (../../ld/ldlang.c:1636)
==2387==    by 0x804FB56: open_input_bfds (../../ld/ldlang.c:2040)
==2387==    by 0x80520D5: lang_process (../../ld/ldlang.c:4276)
==2387==    Address 0x408EDF1C is 0 bytes after a block of size 32 alloc'd
==2387==    at 0x4003BA4E: malloc (vg_clientfuncs.c:100)
==2387==    by 0x805D6B5: bfd_malloc (../../bfd/libbfd.c:165)
==2387==    by 0x806033E: _bfd_generic_link_hash_table_create (../../bfd/linker.c:681)
==2387==    by 0x804F8E3: open_output (../../ld/ldlang.c:1938)
==2387== 
==2387== Invalid write of size 4
==2387==    at 0x80665F2: h8300_bfd_link_add_symbols (../../bfd/coff-h8300.c:1231)
==2387==    by 0x804F35D: load_symbols (../../ld/ldlang.c:1636)
==2387==    by 0x804FB56: open_input_bfds (../../ld/ldlang.c:2040)
==2387==    by 0x80520D5: lang_process (../../ld/ldlang.c:4276)
==2387==    Address 0x408EDF1C is 0 bytes after a block of size 32 alloc'd
==2387==    at 0x4003BA4E: malloc (vg_clientfuncs.c:100)
==2387==    by 0x805D6B5: bfd_malloc (../../bfd/libbfd.c:165)
==2387==    by 0x806033E: _bfd_generic_link_hash_table_create (../../bfd/linker.c:681)
==2387==    by 0x804F8E3: open_output (../../ld/ldlang.c:1938)
==2387== 
==2387== Invalid read of size 4
==2387==    at 0x80665F8: h8300_bfd_link_add_symbols (../../bfd/coff-h8300.c:1336)
==2387==    by 0x804F35D: load_symbols (../../ld/ldlang.c:1636)
==2387==    by 0x804FB56: open_input_bfds (../../ld/ldlang.c:2040)
==2387==    by 0x80520D5: lang_process (../../ld/ldlang.c:4276)
==2387==    Address 0x408EDF1C is 0 bytes after a block of size 32 alloc'd
==2387==    at 0x4003BA4E: malloc (vg_clientfuncs.c:100)
==2387==    by 0x805D6B5: bfd_malloc (../../bfd/libbfd.c:165)
==2387==    by 0x806033E: _bfd_generic_link_hash_table_create (../../bfd/linker.c:681)
==2387==    by 0x804F8E3: open_output (../../ld/ldlang.c:1938)
==2387== 
==2387== Invalid read of size 4
==2387==    at 0x8066615: h8300_bfd_link_add_symbols (../../bfd/coff-h8300.c:1239)
==2387==    by 0x804F35D: load_symbols (../../ld/ldlang.c:1636)
==2387==    by 0x804FB56: open_input_bfds (../../ld/ldlang.c:2040)
==2387==    by 0x80520D5: lang_process (../../ld/ldlang.c:4276)
==2387==    Address 0x408EDF1C is 0 bytes after a block of size 32 alloc'd
==2387==    at 0x4003BA4E: malloc (vg_clientfuncs.c:100)
==2387==    by 0x805D6B5: bfd_malloc (../../bfd/libbfd.c:165)
==2387==    by 0x806033E: _bfd_generic_link_hash_table_create (../../bfd/linker.c:681)
==2387==    by 0x804F8E3: open_output (../../ld/ldlang.c:1938)
==2387== 
==2387== Invalid write of size 4
==2387==    at 0x806665F: h8300_bfd_link_add_symbols (../../bfd/coff-h8300.c:1253)
==2387==    by 0x804F35D: load_symbols (../../ld/ldlang.c:1636)
==2387==    by 0x804FB56: open_input_bfds (../../ld/ldlang.c:2040)
==2387==    by 0x80520D5: lang_process (../../ld/ldlang.c:4276)
==2387==    Address 0x408EDF20 is 4 bytes after a block of size 32 alloc'd
==2387==    at 0x4003BA4E: malloc (vg_clientfuncs.c:100)
==2387==    by 0x805D6B5: bfd_malloc (../../bfd/libbfd.c:165)
==2387==    by 0x806033E: _bfd_generic_link_hash_table_create (../../bfd/linker.c:681)
==2387==    by 0x804F8E3: open_output (../../ld/ldlang.c:1938)
==2387== 
==2387== Invalid read of size 4
==2387==    at 0x8066711: h8300_bfd_link_add_symbols (../../bfd/coff-h8300.c:1356)
==2387==    by 0x804F35D: load_symbols (../../ld/ldlang.c:1636)
==2387==    by 0x804FB56: open_input_bfds (../../ld/ldlang.c:2040)
==2387==    by 0x80520D5: lang_process (../../ld/ldlang.c:4276)
==2387==    Address 0x408EDF1C is 0 bytes after a block of size 32 alloc'd
==2387==    at 0x4003BA4E: malloc (vg_clientfuncs.c:100)
==2387==    by 0x805D6B5: bfd_malloc (../../bfd/libbfd.c:165)
==2387==    by 0x806033E: _bfd_generic_link_hash_table_create (../../bfd/linker.c:681)
==2387==    by 0x804F8E3: open_output (../../ld/ldlang.c:1938)
==2387== 
==2387== pthread_mutex_destroy: mutex is still in use
==2387==    at 0x4023EC91: pthread_error (vg_libpthread.c:275)
==2387==    by 0x4023FBCA: __pthread_mutex_destroy (vg_libpthread.c:952)
==2387==    by 0x4207003C: (within /lib/i686/libc-2.2.93.so)
==2387==    by 0x4206DD6D: (within /lib/i686/libc-2.2.93.so)
==2387== 
==2387== ERROR SUMMARY: 15 errors from 7 contexts (suppressed: 0 from 0)
==2387== malloc/free: in use at exit: 172780 bytes in 958 blocks.
==2387== malloc/free: 1039 allocs, 81 frees, 275332 bytes allocated.
==2387== For a detailed leak analysis,  rerun with: --leak-check=yes
==2387== For counts of detected errors, rerun with: -v


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]