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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cmpt-295-sfu
Try using examine_heap to display the heap before this happens.