Bug 7025 - uninitialized read running gas test "macros dot"
Summary: uninitialized read running gas test "macros dot"
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.20
: P2 normal
Target Milestone: ---
Assignee: Hans-Peter Nilsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-12 00:56 UTC by Hans-Peter Nilsson
Modified: 2008-11-12 02:43 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: cris-axis-elf, arm-unknown-linux-gnu, bfin-unknown-uclinux, i686
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans-Peter Nilsson 2008-11-12 00:56:04 UTC
Running the gas testsuite through valgrind on the mentioned targets yields:
Executing on host: sh -c {valgrind -q /home/hp/binutils/obj/a/gas/as-new  -alm
/home/hp/binutils/src/gas/testsuite/gas/macros/dot.s 2>&1}  /dev/null dump.out
(timeout = 300)
/home/hp/binutils/src/gas/testsuite/gas/macros/dot.s: Assembler messages:
/home/hp/binutils/src/gas/testsuite/gas/macros/dot.s:13: Warning: attempt to
redefine pseudo-op `.macro' ignored
==29160== Use of uninitialised value of size 4
==29160==    at 0x805C566: _find_end_of_line (read.c:5803)
==29160==    by 0x80623A1: read_a_source_file (read.c:725)
==29160==    by 0x804C21E: main (as.c:1045)
==29160== 
==29160== Conditional jump or move depends on uninitialised value(s)
==29160==    at 0x8062808: read_a_source_file (read.c:792)
==29160==    by 0x804C21E: main (as.c:1045)
/home/hp/binutils/src/gas/testsuite/gas/macros/dot.s:27: Error: unknown
pseudo-op: `.xyz'
/home/hp/binutils/src/gas/testsuite/gas/macros/dot.s:28: Error: bad instruction
`x.y.z 0'
ARM GAS  /home/hp/binutils/src/gas/testsuite/gas/macros/dot.s 			page 1


   1              	 .altmacro
... (gas listing elided)
regexp_diff match failure
regexp "^.*:27: Error: unknown pseudo-op: .\.xyz.$"
line   "==29160== Use of uninitialised value of size 4"
regexp_diff match failure
regexp "^.*:28: Error: .*$"
line   "==29160==    at 0x805C566: _find_end_of_line (read.c:5803)"
FAIL: macros dot
Comment 1 Hans-Peter Nilsson 2008-11-12 02:14:21 UTC
Patch at <http://sourceware.org/ml/binutils/2008-11/msg00106.html>.
Comment 2 Hans-Peter Nilsson 2008-11-12 02:43:03 UTC
.