wenfh2020

Results 5 issues of wenfh2020

system: win10 version: log4cplus-2.0.7 project: log4cplusS ![image](https://user-images.githubusercontent.com/4496887/178097094-65127d1f-d649-4db1-8188-5e2dc38058f5.png) ![da65fc219f432339687c513fae51de0](https://user-images.githubusercontent.com/4496887/178097032-eaac66fe-3149-4a88-acca-05e43c6959a5.png) ```shell ucrtbased.dll!00007ffe56375c88() Unknown ucrtbased.dll!00007ffe5628973e() Unknown ucrtbased.dll!00007ffe562887c0() Unknown ... ucrtbased.dll!00007ffe562b0834() Unknown ucrtbased.dll!00007ffe562afdf2() Unknown ucrtbased.dll!00007ffe562d1dc2() Unknown ucrtbased.dll!00007ffe5628994b() Unknown ucrtbased.dll!00007ffe562887c0() Unknown ucrtbased.dll!00007ffe56275430() Unknown > xxx.exe!log4cplus::threadCleanup()...

* 系统。 ```shell # [...]$ sw_vers ProductName: Mac OS X ProductVersion: 10.15.1 BuildVersion: 19B88 ``` --- * 编译问题。 ```shell co_hook_sys_call.cpp:942:42: error: too few arguments to function call, expected 6, have...

co_epoll_wait 的 timeout 这里默认为 1 有点暴力了,建议先捞一个快到期的事件,当前时间与到期的时间差进行等待。详细可以参考 redis 的事件处理: [numevents = aeApiPoll(eventLoop, tvp);](https://github.com/redis/redis/blob/049cf8cdf4e9e0abecf137dc1e3362089439f414/src/ae.c#L395) ```c void co_eventloop(stCoEpoll_t *ctx, pfn_co_eventloop_t pfn, void *arg) { ... for (;;) { int ret = co_epoll_wait(ctx->iEpollFd, result,...

#64 这个 bug 2017 年就提了,困扰了好几天,建议确认修改下,谢谢!