chux0519 / pegasocks

A lightweight proxy client written in C, intends to support multiple protocols(trojan etc.)
BSD 3-Clause "New" or "Revised" License
116 stars 35 forks source link

启动后crash #8

Closed pondchn closed 3 years ago

pondchn commented 3 years ago

2020-12-16 10:50:55 [thread-main] INFO: worker threads: 4, config: config.json 2020-12-16 10:50:55 [thread-7808] INFO: Controller Listening at: /tmp/pegas.sock 2020-12-16 10:50:55 [thread-1408] INFO: Listening at 0.0.0.0:1080 2020-12-16 10:50:55 [thread-6432] INFO: Listening at 0.0.0.0:1080 2020-12-16 10:50:55 [thread-9136] INFO: Listening at 0.0.0.0:1080 2020-12-16 10:50:55 [thread-1840] INFO: Listening at 0.0.0.0:1080 [err] bufferevent.c:692: Assertion bufev_private->refcnt > 0 failed in bufferevent_decref_andunlock 已放弃 (核心已转储)

系统:#>uname -a Linux xxx-911Pro 5.4.0-58-generic #64~18.04.1-Ubuntu SMP Wed Dec 9 17:11:11 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux libevent版本: libevent 2.1.12,因为libevent2.1.6版本也是如此,升级后问题如故。 openssl版本:1.1.1h; 未带WITH_APPLET编辑成功。

>cmake ..

结果: cmake .. -- The C compiler identification is GNU 7.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Found libevent2 includes: /usr/include/event2/event.h -- Found libevent2 library: /usr/lib/x86_64-linux-gnu/libevent.so -- Found libevent2 core library: /usr/lib/x86_64-linux-gnu/libevent_core.so -- Found libevent2 extra library: /usr/lib/x86_64-linux-gnu/libevent_extra.so -- Found libevent2 openssl library: /usr/lib/x86_64-linux-gnu/libevent_openssl.so -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found suitable version "1.1.1", minimum required is "1.1.0") -- Found jsonc: /usr/include/json-c
-- Configuring done -- Generating done -- Build files have been written to: /home/xxx/Downloads/safra/pegasocks/build

pondchn commented 3 years ago

ubuntu18。04的自带 libevent2库2.1.6的问题。重新下载2.1.12编译后再重新编译本程序就可以了。