Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ta8jv-0008KL-Gw for pgsql-bugs@postgresql.org; Sun, 18 Nov 2012 17:33:03 +0000 Received: from moutng.kundenserver.de ([212.227.17.8]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ta8jt-0007DS-EE for pgsql-bugs@postgresql.org; Sun, 18 Nov 2012 17:33:03 +0000 Received: from anarazel.de (p5DDC7C56.dip.t-dialin.net [93.220.124.86]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0LrGGm-1T8sSG30bE-012wHn; Sun, 18 Nov 2012 18:33:00 +0100 Received: by anarazel.de (Postfix, from userid 1000) id DB2471C00E5; Sun, 18 Nov 2012 18:32:59 +0100 (CET) Date: Sun, 18 Nov 2012 18:32:59 +0100 From: Andres Freund To: Igor Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7670: BUG #7545: Unresponsive server with error log reporting: "poll() failed: Invalid argument" Message-ID: <20121118173259.GB5091@awork2.anarazel.de> References: <20121118162852.GB14145@awork2.anarazel.de> <20121118171206.GA30822@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Provags-ID: V02:K0:ZD1XIrCte5nIMm26VHvYUOJDj95ZyyfUxpxAdY3iqCX KS9r9LzmhbrC/JqKNr3qcYqXIpog3K/ztyKSIKzj1j0khpD6lA ErptLUy27mVLwAo8aZg6/EQnjzGlrVhXTXBMw2JuccVNsxafND /6OSBVG1/+v0NRdFUa7PSCautGS+L+MqjeUhG1EUpprWajp4Ew ogBVSbh2x6l+ntAxXdlCN8eXNteNYeTVnupo5TW2zi/yS6Hdn8 uDSOWNK4LbhsPjpbG+k0WpVAlzBnldpRgIRJ+vBWyQBK4iGGJB zL++piOVATLI1BH9Z9/gnl2SUdDniEtkGMbKDBii+iYOXnl7E/ qaqIzZWJh5lxiNTvmndfOhWzkzx81CtD1Ek8OffTg X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201211/121 X-Sequence-Number: 34679 On 2012-11-18 19:22:04 +0200, Igor wrote: > 2012/11/18 Andres Freund > > > On 2012-11-18 18:53:13 +0200, Igor wrote: > > > .. > > > > > > > Could you give a bit more context about when exactly that error is > > > > happening? > > > > It would also be helpful if you could set log_error_verbosity = > > > > 'verbose'; in the config file and report back with the complete error > > > > message, including line numbers. > > > > > > > > > > > I try to restart DB and seems get this situation: > > > > > > === > > > 2012-11-18 18:30:25 EET pid:93744 LOG: received SIGHUP, reloading > > > configuration files > > > 2012-11-18 18:30:25 EET pid:93744 LOG: 00000: parameter > > > "log_error_verbosity" changed to "verbose" > > > 2012-11-18 18:30:25 EET pid:93744 LOCATION: ProcessConfigFile, > > > guc-file.l:318 > > > 2012-11-18 18:36:45 EET pid:93744 LOG: 00000: received fast shutdown > > > request > > > 2012-11-18 18:36:45 EET pid:93744 LOCATION: pmdie, postmaster.c:2187 > > > 2012-11-18 18:36:45 EET pid:93744 LOG: 00000: aborting any active > > > transactions > > > 2012-11-18 18:36:45 EET pid:93744 LOCATION: pmdie, postmaster.c:2211 > > > 2012-11-18 18:36:45 EET pid:93749 LOG: 00000: autovacuum launcher > > > shutting down > > > 2012-11-18 18:36:45 EET pid:93749 LOCATION: AutoVacLauncherMain, > > > autovacuum.c:767 > > > 2012-11-18 18:36:45 EET pid:93746 LOG: 00000: shutting down > > > 2012-11-18 18:36:45 EET pid:93746 LOCATION: ShutdownXLOG, > > xlog.c:7560 > > > 2012-11-18 18:36:45 EET pid:93746 LOG: 00000: database system is > > shut > > > down > > > 2012-11-18 18:36:45 EET pid:93746 LOCATION: ShutdownXLOG, > > xlog.c:7582 > > > 2012-11-18 18:36:46 EET pid:95528 FATAL: XX000: poll() failed: > > Invalid > > > argument > > > 2012-11-18 18:36:46 EET pid:95528 LOCATION: WaitLatchOrSocket, > > > pg_latch.c:296 > > > === > > > > Ok, this is already helpful. Do you have anything the log that shows > > what process pid 95528 is? Could you grep for it? > > > > No, this string - is the last string in the log for this event. Actually I would be interested in *earlier* entries in the log ;) > > Are you able to recompile postgres with other compilation options and/or > > some debugging patches applied? > Will try. Give me this patches. Ok, let me prepare something. > > The first thing would be to recompile postgres with --enable-cassert... > > > > That all ? Yes, that could already catch the source of the error. Note that you probably will want to revert to non --enable-cassert builds after we debugged this, it has a non-negligible overhead. > Do you understand my english ? :) I try ;) Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services