mscdex/cap

"Segmentation fault (core dumped)" while using cap to send many packet (number of packets < 60)

HomerQing opened this issue · 1 comments

When I use cap to send multiple packets I get this error:

Segmentation fault (core dumped)
*** Error in `/opt/x': free(): invalid next size (fast): 0x0000000002778800 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x81489)[0x7f60d211c489]
/opt/x[0x11fc4c4]
/opt/x(uv_fs_req_cleanup+0x2e)[0x1202eee]
/opt/x(_ZN4node2fs15FSReqAfterScopeD1Ev+0x1f)[0x928c5f]
/opt/x(_ZN4node2fs12AfterIntegerEP7uv_fs_s+0x73)[0x928eb3]
.....

When I send a single packet, I rarely encounter this error, and if I cancel the Cap.send() method, this error no longer appears, so the initial judgment is that the cap's send method caused the memory overflow.

Please help me to solve this problem, I don't know if it's my wrong or a bug of cap.

has fixed by increasing the buffer size