Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WzNHW-0005P2-88 for pgsql-interfaces@arkaria.postgresql.org; Tue, 24 Jun 2014 09:44:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WzNHV-0005Vy-JS for pgsql-interfaces@arkaria.postgresql.org; Tue, 24 Jun 2014 09:44:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WzNHU-0005Vl-Gz for pgsql-interfaces@postgresql.org; Tue, 24 Jun 2014 09:44:48 +0000 Received: from mail-vc0-f178.google.com ([209.85.220.178]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WzNHQ-00077i-JO for pgsql-interfaces@postgresql.org; Tue, 24 Jun 2014 09:44:46 +0000 Received: by mail-vc0-f178.google.com with SMTP id ij19so31598vcb.23 for ; Tue, 24 Jun 2014 02:44:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=tRFU5uVkwKzV8dd8MkugcTJJxXHrT/8wIWfGAx8uz1k=; b=D39KAlN1MDTBnuqU/1KMYbR9dovm9y31tCZLQ6jt996DOnj1T0K3TViLKMIdeLWbFW Fw6EjxpIXa0VlUbpR82G+IhhI+chiOJk7qzRWepairFPxPBcZ26ioR6Owzc5fFXveUxI ogMWnKkB3Ir5zu0kLdwh6tVCwp+iuSYuZnimXv1YKNyVj5fm4D7CQgO4etZuXq1vv1hJ oJG08tvhWrM2IAKXGYUGzGtx3ZcxwwqdBO+mNus2TyvDLbK3m/rj1kWF5Dykaj8LKG+2 N9KYX9VJ9nrAfOSK9wtihpLfnsvf99xAFUU46f1hv0Z+UUxB+/nw1F16huqonfQP+glL kzHg== X-Received: by 10.52.185.72 with SMTP id fa8mr20553916vdc.12.1403603083393; Tue, 24 Jun 2014 02:44:43 -0700 (PDT) Received: from amber.localnet ([190.186.173.81]) by mx.google.com with ESMTPSA id sx13sm11500493vdb.13.2014.06.24.02.44.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 24 Jun 2014 02:44:42 -0700 (PDT) From: alpha_one_x86 To: pgsql-interfaces@postgresql.org Subject: Valgrind => break? Date: Tue, 24 Jun 2014 11:44:35 +0200 Message-ID: <3988520.4H6EVNlcny@amber> User-Agent: KMail/4.12.5 (Linux/3.10.39-gentoo; KDE/4.12.5; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1482049.8md9Z1WAtK"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-interfaces Precedence: bulk Sender: pgsql-interfaces-owner@postgresql.org --nextPart1482049.8md9Z1WAtK Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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=20 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=3Dcatchchallenger user=3Droot"); -> work PQconnectStart("host=3Dlocalhost dbname=3Dcatchchallenger user=3Droot")= ; -> 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 =2Dh localhost with psql work perfectly. Thanks in advance for you help. Cheers, =2D-=20 alpha_one_x86 Main developer of Ultracopier, Esourcing and server management IT, OS, technologies, security and business department --nextPart1482049.8md9Z1WAtK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAABCgAGBQJTqUiDAAoJEAIn3WT/GWJvofYP/3Fwv7o7ajUH+9xePwbiruED oKdUH/Vrugisfj3JTDOO1aCAjtltSBmeks3WPzHtozQ3FjL04qkCmxp9rgqzdZaN oyEqnmj8CeBpwJY6RwWqS174Hf3neg850UDR9xWPmK6t8S5OJddUJXFGHkS+My2I Z7MrE0BgPG52q3uH2KRuRieNh830q6jZhLMbqx4i+0fq5+UtyKEpvQRWLtuUkPrW GPsYwseyy5N2pGZi5D3D5WBLUpooT4hvgddiOqG9ZR124DjjbhujIZ5EAZHtKZBg BWAAMpPgbY1/zUxQyUliKhXmrIScCNQWjjLDTaQZUxeBlaiNoC3j8c0BpfRfG8eI 0ja7EotgxCWAzbfGmuAnWw1CZxBXeLgcCbjZMyLPL/qynwC/eru0IQrm4ODFMMdU f+/7Iamamb60U3bA3dNjD8EdhbR4lyIEWvSLImmY2OP4fWZzllBxvNgprlPlyVv5 zBltE4zLFxv5l1ikPXOdNYsCSD5Jbk9Hj08gl1fK3NLxMvA5wLCHCbKKMzNKy0fa X51T4eDbev1rHstYiStj5bxTu+2TI2yrkiY3XSo+3loZYSFaCFB2wM5oh5kwvE5v 4I36hWxqacbre4+tcE7x3DSHUwcvvUflgmqom2boCG4iVnvmTIHWbFIIWCywdEft ZoMFeOlBRdgqKidE7wIP =IFsI -----END PGP SIGNATURE----- --nextPart1482049.8md9Z1WAtK--