Question: Error message - 4 marks Any potential syntax errors were removed, and the program was run with the test data. The following message is shown:

 Error message - 4 marks Any potential syntax errors were removed,

Error message - 4 marks Any potential syntax errors were removed, and the program was run with the test data. The following message is shown: ASAN:DEADLYSIGNAL ==6=ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000004ea9e3 bp - /home/linked-data, c : 53:26 #0 0x4ea9e8 in add-value #1 #20x7f512bd6d82fin #3 - 0x4ec40c in main /home/linked-data.c: 589:7 -libc-start-main (/lib/x86-64-linux-gnu/libc.so.6+0x2082t) - 0x4185e8 in-start (/home/linked-data+0x4185e8) - AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/linked-data.c:53:26 in add_value -==6=ABORTING Describe what the error mearns, what offending value is present in the stack, and how to fix it. Memory size 6 marks (b) 2 marks Describe what the operator sizeof is achieving in the context of the code on lines 40, 48 and 55 (c) 1 mark Given that this program was run on a 64 bit memory addressable CPU. What are the values of sizeof on lines 40, 48, and 55? (d) 2 marks Assume the function performs it's intended purpose of adding one element to the doubly linked list. If 5 elements were inserted in succession, list al the stack variables associated when inserting the 5th element (the point of insertion can be considered as lines 41, 52, or 59) list. What is the amount of heap memory allocated after 4 new elerments are inserted sucoessfully Error message - 4 marks Any potential syntax errors were removed, and the program was run with the test data. The following message is shown: ASAN:DEADLYSIGNAL ==6=ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000004ea9e3 bp - /home/linked-data, c : 53:26 #0 0x4ea9e8 in add-value #1 #20x7f512bd6d82fin #3 - 0x4ec40c in main /home/linked-data.c: 589:7 -libc-start-main (/lib/x86-64-linux-gnu/libc.so.6+0x2082t) - 0x4185e8 in-start (/home/linked-data+0x4185e8) - AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/linked-data.c:53:26 in add_value -==6=ABORTING Describe what the error mearns, what offending value is present in the stack, and how to fix it. Memory size 6 marks (b) 2 marks Describe what the operator sizeof is achieving in the context of the code on lines 40, 48 and 55 (c) 1 mark Given that this program was run on a 64 bit memory addressable CPU. What are the values of sizeof on lines 40, 48, and 55? (d) 2 marks Assume the function performs it's intended purpose of adding one element to the doubly linked list. If 5 elements were inserted in succession, list al the stack variables associated when inserting the 5th element (the point of insertion can be considered as lines 41, 52, or 59) list. What is the amount of heap memory allocated after 4 new elerments are inserted sucoessfully

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!