Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==1108==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7ffcd54ed7a0 at pc 0x00000051d8fe bp 0x7ffcd54ed590 sp 0x7ffcd54ed588 READ of size 4 at 0x7ffcd54ed7a0 thread T0 #0 0x51d8fd (/out/package/call_mem+0x51d8fd) #1 0x7f92f17b2b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #2 0x41d7c9 (/out/package/call_mem+0x41d7c9) Address 0x7ffcd54ed7a0 is located in stack of thread T0 at offset 512 in frame #0 0x51a02f (/out/package/call_mem+0x51a02f) This frame has 10 object(s): [32, 40) '__dnew.i.i.i.i277' [64, 72) '__dnew.i.i.i.i' [96, 100) 'events' (line 17) [112, 152) 'current_work' (line 24) [192, 224) 'caller_name' (line 46) [256, 288) 'caller_status' (line 47) [320, 360) 'new_event' (line 51) [400, 440) 'new_event41' (line 59) [480, 520) 'new_event50' (line 66) <== Memory access at offset 512 is inside this variable [560, 600) 'new_event59' (line 74) HINT: this may be a fals
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
Starting tick #0 Starting tick #1 Call from Jeff a gold member
JOJ Answer
Starting tick #0 Starting tick #1 Call from Jeff a gold member Answering call from Jeff Starting tick #2