View Single Post
Old 26 June 2018, 11:20   #91
selco
Registered User
 
Join Date: Aug 2013
Location: Germany
Posts: 75
Reading uninitialized memory

Stupid question:
What is "uninitialized memory"? How is that detected? What marks memory "initialized"?


I am testing here an gcc/libnix-compiled program and get the messeage in fread()-call when inside fread() the stream-buffer is acessed. The buffer was filled before from an AmigaOS-Read()-call and the program works just fine.


Invalid access. Addr=70149510 RW=R Size=1: Reading uninitialized memory
Page: 70149500 - 701495ff. State=R Modified=-, Start=00, End=100
D0 000000DD D1 7014950D D2 00000000 D3 00000000
D4 00000000 D5 00000000 D6 00000000 D7 401B41CC
A0 70216B28 A1 70149510 A2 700A848C A3 700A84C8
A4 4021FD80 A5 701202B4 A6 40000830 A7 7012028C
USP 7012028C ISP 400022A8 SFC 00000000 DFC 00000000
CACR 00000001 VBR 00000000 CAAR 00000000 MSP 00000000
T=00 S=0 M=0 X=1 N=1 Z=0 V=0 C=0 IMASK=0 STP=0
0: 7FFF-FFFFFFFF-FFFFFFFF +nan 7FFF-FFFFFFFF-FFFFFFFF +nan
2: 7FFF-FFFFFFFF-FFFFFFFF +nan 7FFF-FFFFFFFF-FFFFFFFF +nan
4: 7FFF-FFFFFFFF-FFFFFFFF +nan 7FFF-FFFFFFFF-FFFFFFFF +nan
6: 7FFF-FFFFFFFF-FFFFFFFF +nan 7FFF-FFFFFFFF-FFFFFFFF +nan
FPSR: 00000000 FPCR: 00000090 FPIAR: 00f8161a N=0 Z=0 I=0 NAN=0
70045F1E [03DF16] 1011 MOVE.B (A1) [6d],D0
Segment 1: 000003e9 70008000-700a03b3
70045F20 [03DF18] 1080 MOVE.B D0,(A0) [00]
Next PC: 70045f22
selco is offline  
 
Page generated in 0.13316 seconds with 11 queries