Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZR1U-0007cT-Rj for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Apr 2014 20:29:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WZR1U-0007Rs-BG for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Apr 2014 20:29:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZR1T-0007Ri-Bq for pgsql-hackers@postgresql.org; Sun, 13 Apr 2014 20:29:03 +0000 Received: from moutng.kundenserver.de ([212.227.126.187]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZR1P-0007zq-Kc for pgsql-hackers@postgresql.org; Sun, 13 Apr 2014 20:29:03 +0000 Received: from anarazel.de (p5DDC7053.dip0.t-ipconnect.de [93.220.112.83]) by mrelayeu.kundenserver.de (node=mreue006) with ESMTP (Nemesis) id 0Lib0L-1X7gJB0PTZ-00cwmY; Sun, 13 Apr 2014 22:28:56 +0200 Received: by anarazel.de (Postfix, from userid 1000) id 5C715100A3C; Sun, 13 Apr 2014 22:28:55 +0200 (CEST) Date: Sun, 13 Apr 2014 22:28:55 +0200 From: Andres Freund To: John Mudd Cc: pgsql-hackers@postgresql.org Subject: Re: Fwd: Debug strategy for musl Postgres? Message-ID: <20140413202855.GS4161@awork2.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Provags-ID: V02:K0:xm4winHuL6S7cTtYSgM/gnUaFC5bTnXHpmBUMsqrivV HOs2b1TTHibheWyJUJmG1agTbkLz5NMHQIaWjFF2c6KMD04xEl 7+1TBhywhafF4Nx9mjbjiJlcDM+pyX3SRwvpZ8SNDz4MTQ/7Hs qv6vTGRTPgiDBhSposRq/jdOK9PxEt8709lUcGe7JH+SXDJy9p 4YYROuqPkZ4yGt7SwswxfW7tnWMPET8Z6corrrL/+gopkL8PcU rfo8bu89h3crr5+hRDRf7jTUaGUbvunSg43GUdE5Lb4p739cpK pn1pnLtlxWki/CTKwyIqxq5hRbemgdSITqPYCPWMpdwV97fEx5 2URQajcRHrTmukWCSnknElIatCg+bYftDSieFRU3/ X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Hi, On 2014-04-13 16:08:00 -0400, John Mudd wrote: > I built Postgres 9.3.4 from source on top of the musl C library, > http://www.musl-libc.org/ > I also built zlib, bzip2, ncurses, openssl, readline and Python using musl > as a foundation for Postgres. > > I'm using musl to increase the portability of the Postgres binary. I build > on Ubuntu 13.10 but will runs on older Linux boxes. > > So far I get better results with the musl Postgres built on modern Ubuntu > and running on an old kernel than building Postgres directly on the old > Linux using standard C library. But the musl Postgres is still not working > fully. I'm not getting responses from the server. I tend to think that this is more a matter for the musl devs than postgres. Postgres works on a fair numbers of libcs and musl is pretty new and rough around the edges. > clock_gettime(0, 0xbfffa5a8) = -1 ENOSYS (Function not implemented) This looks suspicious. > gettimeofday(NULL, {300, 0}) = 0 > poll([{fd=3, events=POLLOUT|POLLERR, revents=POLLOUT}], 1, 3000) = 1 > sendto(3, "\0\0\0?\0\3\0\0user\0jmudd\0database\0jmud"..., 63, 0x4000, > NULL, 0) = 63 > > clock_gettime(0, 0xbfffa5a8) = -1 ENOSYS (Function not > implemented) > gettimeofday(NULL, {300, 0}) = 0 > poll([{fd=3, events=POLLIN|POLLERR}], 1, 3000) = 0 Here a poll didn't return anything. You'll likely have to look at the server side. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers