Assignment 3 read_matrix.s

103 views
Skip to first unread message

Jenna Liebe

unread,
Oct 27, 2020, 3:22:47 AM10/27/20
to cmpt-295-sfu
SFU ID: 301358537
Github username: jel-cmpt295
Github: Link to github repo (your assignment repos are private so these links are only accessible to TAs and Instructor): https://github.com/CMPT-295-SFU/assignment-3-jel-cmpt295
Line and file: read_matrix.s
Expected behavior: output values in test_input.txt
Observed behavior: program outputs 1 2 3, then "Venus ran into a simulator error! Attempting to access unitialized memory between the stack and heap. Attempting to access '4' bytes at address '268468316'.
Question: I tried to debug using Venus, but it outputs with error code 1 right at the beginning. I'm not sure why this happens here but I get a different error in the terminal using test_read_matrix. Some help to figure out what's going on with my program would be really appreciated!

ali sedaghati

unread,
Oct 27, 2020, 12:57:07 PM10/27/20
to cmpt-295-sfu
You have to read #cols and #rows from the matrix file and try to malloc a proper portion based on them. 
Reply all
Reply to author
Forward
0 new messages