pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
To: John Mudd <johnbmudd@gmail.com>
To: pgsql-bugs@postgresql.org
Cc: Euler Taveira <euler@timbira.com.br>
Subject: Re: Debug strategy for musl Postgres?
Date: Mon, 14 Apr 2014 20:06:52 +0200
Message-ID: <534C23BC.6000906@kaltenbrunner.cc> (raw)
In-Reply-To: <CAGDMk9EGv_vQTkKghQ=7qDv38FW5A5_-yDNojo-gcg-UTjgtjg@mail.gmail.com>
References: <CAGDMk9FNs8GBW82nOn0L9V-m-LmuUQoQYStdT+Aj3K5TsL7rQg@mail.gmail.com>
	<534AB57F.9000907@timbira.com.br>
	<CAGDMk9EGv_vQTkKghQ=7qDv38FW5A5_-yDNojo-gcg-UTjgtjg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 04/13/2014 10:19 PM, John Mudd wrote:
> 
> On Sun, Apr 13, 2014 at 12:04 PM, Euler Taveira <euler@timbira.com.br
> <mailto:euler@timbira.com.br>> wrote:
> 
>     On 13-04-2014 00:40, 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.
>     >
>     This is not a bug. This kind of discussion belongs to -hackers.
> 
>     While reading this email, I give musl a try. I'm using Debian jessie
>     which contains musl 1.0.0. I compiled the source (git master) using
>     CC="musl-gcc" and disabled zlib and readline. It passed all regression
>     tests. I also tried a pgbench which ran like a charm. (After installed
>     the binaries I had to set the libray path for musl in
>     /etc/ld-musl-x86_64.d.)
> 
>     > 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.
>     >
>     Could you give details about your architecture?
> 
> 
> Built on 3.8.0-35-generic #50-Ubuntu SMP Tue Dec 3 01:25:33 UTC 2013
> i686 i686 i686 GNU/Linux
> Runs fine there.
> 
> Moved postgres install directory to  2.4.21-4.EL #1 Fri Oct 3 18:13:58
> EDT 2003 i686 i686 i386 GNU/Linux
> Not working fully there.
> Note: It's says 2.4 kernel but I've been told that's misleading. The
> kernel has upgrades that make it effectively 2.6.

This looks like a RHEL3 version number, and while that kernel was kind
of creepy thing with a lot of patches (also from the 2.6 era) backport
it is definititly not a 2.6 kernel(also note that 2.6.0 was released in
december of 2003 while RHEL 3 was released in october that year. Juding
from the version number this also seems to be based on the very first
RHEL3 kernel missing all follow up bugfixed during the RHEL3 lifetime.

So I would be very much not surprised if a modern and young C-library
running on a >10 year old kernel that never looked like the upstream
kernel misbehaved with a complex userspace app like postgresql.



Stefan


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (10+ messages)  latest in thread

Message-ID: <534C23BC.6000906@kaltenbrunner.cc>
Permalink:  ../534C23BC.6000906@kaltenbrunner.cc/
Also on:    postgresql.org/message-id/534C23BC.6000906@kaltenbrunner.cc

 · 

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: stefan@kaltenbrunner.cc, johnbmudd@gmail.com, euler@timbira.com.br
  Subject: Re: Debug strategy for musl Postgres?
  In-Reply-To: <534C23BC.6000906@kaltenbrunner.cc>
  References: <CAGDMk9FNs8GBW82nOn0L9V-m-LmuUQoQYStdT+Aj3K5TsL7rQg@mail.gmail.com> <534AB57F.9000907@timbira.com.br> <CAGDMk9EGv_vQTkKghQ=7qDv38FW5A5_-yDNojo-gcg-UTjgtjg@mail.gmail.com> <534C23BC.6000906@kaltenbrunner.cc>

* 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