Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Crash when starting with a build from master using socksAuthCredentials in config #86

Open
DeadSix27 opened this issue May 2, 2016 · 0 comments

Comments

@DeadSix27
Copy link

DeadSix27 commented May 2, 2016

I get this error:

$ sudo ./polipo
polipo: atom.c:187: releaseAtom: Assertion `atom->refcount >= 1 && atom->refcount < LARGE_ATOM_REFCOUNT' failed.
Aborted (core dumped)

Caused by config option:
socksAuthCredentials = "x*******:H*********N"

I double checked whether its correctly formatted, but it is

"SOCKS4a (or SOCKS5) credentials username:password"

I had to use a git master build as I desperately need that feature (->socks5 parent auth)

EDIT: I checked again, and apparently in preinitSocks()
the code goes into:
else if (rc == 0) {
// separator ':' not found

and rc is == 0 because in atomSplit() the code goes into
p = memchr(atom->string, c, atom->length);
if(p == NULL) <-- here

so memchr fails/is NULL @ that point causing the whole issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant