MortezaBashsiz / nipovpn

Powerfull http proxy
GNU General Public License v3.0
183 stars 11 forks source link

Program fails with error related to memory #85

Closed MortezaBashsiz closed 2 months ago

MortezaBashsiz commented 3 months ago

Subjective

Program fails with following error in agent mode

munmap_chunk(): invalid pointer

Reproduce

With following command with single client

while (true); do curl -L https://google.com; echo ""; done

I got following error on agent mode

2024-08-29_10:19:18 [AGENT] [INFO] [CONNECT] [SRC 127.0.0.1:51262] [DST google.com:443]
2024-08-29_10:19:19 [AGENT] [INFO] [CONNECT] [SRC 127.0.0.1:51270] [DST www.google.com:443]
2024-08-29_10:19:19 [AGENT] [INFO] [CONNECT] [SRC 127.0.0.1:34048] [DST google.com:443]
2024-08-29_10:19:20 [AGENT] [INFO] [CONNECT] [SRC 127.0.0.1:34064] [DST www.google.com:443]
2024-08-29_10:19:20 [AGENT] [INFO] [CONNECT] [SRC 127.0.0.1:34066] [DST google.com:443]
munmap_chunk(): invalid pointer
Aborted

I tested it several time and I got different errors that I list them here

malloc(): invalid size (unsorted)
malloc(): unaligned tcache chunk detected
double free or corruption (out)

Do not take followings as a fact, these are only my observations: I found that These errors appears only when program runs in INFO loglevel I didn't get any error with TRACE and DEBUG loglevel

thesudoer2 commented 2 months ago

Hi, I ran a client/server scenario (I tried "INFO", "TRACE" and "DEBUG" as log level) but it's working well! I guess my config file not the same as you. could you please attach your config file to the issue?

MortezaBashsiz commented 2 months ago

I also tested it several times and works without any problem I think this issue is fixed by some changes Will close it