From cd4769e30b9cf8c529beeb5ba5cac97e98f25278 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 3 Apr 2019 17:20:24 +0200 Subject: [PATCH] Switch naive to debug and try to track the free error --- scripts/naive-client | 2 +- scripts/naive-server | 2 +- src/evt_core.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/naive-client b/scripts/naive-client index 7e6c16a..e2f8fc9 100755 --- a/scripts/naive-client +++ b/scripts/naive-client @@ -3,7 +3,7 @@ mkdir -p ./log tor -f /etc/torrc > ./log/client-tor-stdout.log 2> ./log/client-tor-stderr.log & sleep 2 mkdir -p ./shared -donar -a naive -c -o ./shared/onion_services.pub -r 9000 > ./log/client-donar-stdout.log 2> ./log/client-donar-stderr.log & +donar -a naive -c -o ./shared/onion_services.pub -v -r 9000 > ./log/client-donar-stdout.log 2> ./log/client-donar-stderr.log & sleep 2 measlat -h 127.13.3.7 -p 9000 > /dev/null 2>&1 # Used to wait for connections measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > ./res/naive.csv 2> ./log/client-measlat-stderr.log diff --git a/scripts/naive-server b/scripts/naive-server index 71ab544..b2b50ef 100755 --- a/scripts/naive-server +++ b/scripts/naive-server @@ -5,5 +5,5 @@ sleep 2 mkdir -p ./shared cd ./shared pwd -donar -a naive -s -e 9000 > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log & +donar -a naive -s -e 9000 -v > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log & udpecho -p 9000 > ../log/server-udpecho-stdout.log 2> ../log/server-udpecho-stderr.log diff --git a/src/evt_core.c b/src/evt_core.c index 3d57261..72daacc 100644 --- a/src/evt_core.c +++ b/src/evt_core.c @@ -273,8 +273,8 @@ void evt_core_loop(struct evt_core_ctx* ctx) { if (events[n].events & (EPOLLERR | EPOLLHUP | EPOLLRDHUP)) { int err_fd = events[n].data.fd; int evt = events[n].events; - if (evt & EPOLLRDHUP) fprintf(stderr, "Epoll Read Hup Event. "); - if (evt & EPOLLHUP) fprintf(stderr, "Epoll Hup Event. "); + if (evt & EPOLLRDHUP) fprintf(stderr, "Epoll Read Hup Event.\n"); + if (evt & EPOLLHUP) fprintf(stderr, "Epoll Hup Event.\n"); if (evt & EPOLLERR) { int error = 0; socklen_t errlen = sizeof(error);