pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: John Mudd <johnbmudd@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Fwd: Debug strategy for musl Postgres?
Date: Sun, 13 Apr 2014 22:28:55 +0200
Message-ID: <20140413202855.GS4161@awork2.anarazel.de> (raw)
In-Reply-To: <CAGDMk9GNgQRHwx3w4ZV0Wb69e9Ed9GpsNsnMOxs9QoGKwkYSNw@mail.gmail.com>
References: <CAGDMk9FNs8GBW82nOn0L9V-m-LmuUQoQYStdT+Aj3K5TsL7rQg@mail.gmail.com>
	<CAGDMk9GNgQRHwx3w4ZV0Wb69e9Ed9GpsNsnMOxs9QoGKwkYSNw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

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



view thread (10+ messages)  latest in thread

Message-ID: <20140413202855.GS4161@awork2.anarazel.de>
Permalink:  ../20140413202855.GS4161@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20140413202855.GS4161@awork2.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andres@2ndquadrant.com, johnbmudd@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: Fwd: Debug strategy for musl Postgres?
  In-Reply-To: <20140413202855.GS4161@awork2.anarazel.de>
  References: <CAGDMk9FNs8GBW82nOn0L9V-m-LmuUQoQYStdT+Aj3K5TsL7rQg@mail.gmail.com> <CAGDMk9GNgQRHwx3w4ZV0Wb69e9Ed9GpsNsnMOxs9QoGKwkYSNw@mail.gmail.com> <20140413202855.GS4161@awork2.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox