From: | alpha_one_x86 <alpha_one_x86(at)first-world(dot)info> |
---|---|
To: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Valgrind => break? |
Date: | 2014-06-24 09:44:35 |
Message-ID: | 3988520.4H6EVNlcny@amber |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Hello,
The code:
https://github.com/alphaonex86/CatchChallenger/blob/master/server/main-epoll.cpp#L552
https://github.com/alphaonex86/CatchChallenger/blob/master/server/epoll/db/EpollPostgresql.cpp
But the simple server work, no difference of code:
https://github.com/alphaonex86/CatchChallenger/blob/master/tools/epoll-server/epoll-psql/main.cpp
In my implementation, valgrind break the postgresql connexion. With gdb or normal:
Connexion CONNECTION_MADE
datapack_loaded not loaded: but database have not the event EPOLLIN
Connexion CONNECTION_AWAITING_RESPONSE
datapack_loaded not loaded: but database have not the event EPOLLIN
Connexion CONNECTION_AWAITING_RESPONSE
datapack_loaded not loaded: start preload data
Under valgrind:
Connexion CONNECTION_MADE
datapack_loaded not loaded: but database have not the event EPOLLIN
Connexion CONNECTION_AWAITING_RESPONSE
datapack_loaded not loaded: but database have not the event EPOLLIN
In both case:
netstat -nap | grep postgres:
unix 2 [ ACC ] STREAM LISTENING 832 - /run/postgresql/.s.PGSQL.5432
unix 3 [ ] STREAM CONNECTED 17572580 - /run/postgresql/.s.PGSQL.5432
Other problem, but very less problematic, in simple and complex case:
PQconnectStart("dbname=catchchallenger user=root"); -> work
PQconnectStart("host=localhost dbname=catchchallenger user=root"); -> don't work
I have:
Connexion CONNECTION_STARTED, Connecting...
Connexion status: PGRES_POLLING_OK
EPOLLPRI
And after lot of time:
Connexion CONNECTION_MADE, Connected to server...
Connexion status: PGRES_POLLING_ACTIVEepoll_ctl, socket ready to write
epoll_ctl, socket ready to read
query repeat send failed
epoll_ctl, socket closed
-h localhost with psql work perfectly.
Thanks in advance for you help.
Cheers,
--
alpha_one_x86 <alpha_one_x86(at)first-world(dot)info>
Main developer of Ultracopier, Esourcing and server management
IT, OS, technologies, security and business department
From | Date | Subject | |
---|---|---|---|
Next Message | James Duong | 2014-06-28 03:25:30 | libpq batched parameterized query execution |
Previous Message | alpha_one_x86 | 2014-06-18 10:56:59 | EPOLLPRI CONNECTION_STARTED && host=localhost |