assignment 5 mm.c

145 views
Skip to first unread message

brandon

unread,
Nov 22, 2020, 5:14:37 AM11/22/20
to cmpt-295-sfu
# Question templates
SFU ID: 301358970
Github username: bla118
Github: Link to github repo (your assignment repos are private so these links are only accessible to TAs and Instructor)
Line and file: mm.c
Expected behavior:
Observed behavior:
Question: I know I haven't finished the free function but when running ./mdriver -V, it said that mem_sbrk failed in requestmorespace. I need help figuring out why this is happening, thanks.



ali sedaghati

unread,
Nov 22, 2020, 2:56:07 PM11/22/20
to cmpt-295-sfu
Testcases have been designed in such a way that you never get out of memory. So, running out of memory is this assignment mainly means that you have an implementation bug in your code or maybe you haven't implemented some features like coalescing yet.

brandon

unread,
Nov 22, 2020, 4:40:18 PM11/22/20
to cmpt-295-sfu
I have filled in mm_free and ran the two short rep traces which showed no problems, but when I ran the other trace files, I get seg faults. I have ran it through gdb and says it fails in removefreeblock. I'm having difficulty finding where the problem is.

ashrir...@gmail.com

unread,
Nov 23, 2020, 3:34:12 AM11/23/20
to cmpt-295-sfu
Try using examine_heap to display the heap before this happens.
Reply all
Reply to author
Forward
0 new messages