All of lore.kernel.org
 help / color / mirror / Atom feed
* NPTL/db4 problem with FC3
@ 2005-03-21 20:32 Nils Toedtmann
  0 siblings, 0 replies; 12+ messages in thread
From: Nils Toedtmann @ 2005-03-21 20:32 UTC (permalink / raw)
  To: Xen devel list

This is a cross post to <xen-devel@lists.sourceforge.net> and <user-
mode-linux-user@lists.sourceforge.net>


Dear lists,

Anybody successfully running cyrus-imapd in FC2/3+Xen/UML? When i tried
to run cyrus-imapd in a virtual FC3 (Xen or UML) i got lot's of

  DBERROR db4: Berkeley DB library configured to support only
               DB_PRIVATE environments
  DBERROR: dbenv->open '/var/lib/imap/db' failed: Invalid argument
  DBERROR: init() on berkeley

It turned out to be a FC specific db4 problem with non-NPTL-aware
ARCHes:

  <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91933>

Unfortunatly, RedHat closed this bug as WONTFIX, but it's still present
with FC3 on ARCH={xen,um}. /lib/tls and /usr/lib/tls moved away, the
LD_ASSUME_KERNEL workaround does not help, too.

So i followed the way of Radu Greab and rebuilt db4 using his patches
and specfile

  <https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=100060>

It was tricky, but worked. As this is an ugly workaround (eg it bombs
with apt/yum updating) i look for a better solution. 

Anybody?

/nils.
--
no sig



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: NPTL/db4 problem with FC3
@ 2005-03-21 21:34 Ian Pratt
  2005-03-22  7:50 ` Nils Toedtmann
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Ian Pratt @ 2005-03-21 21:34 UTC (permalink / raw)
  To: Nils Toedtmann, Xen devel list; +Cc: ian.pratt

 > It turned out to be a FC specific db4 problem with non-NPTL-aware
> ARCHes:
> 
>   <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91933>
> 
> Unfortunatly, RedHat closed this bug as WONTFIX, but it's 
> still present
> with FC3 on ARCH={xen,um}. /lib/tls and /usr/lib/tls moved away, the
> LD_ASSUME_KERNEL workaround does not help, too.

We have a trivial patch to NTPL glibc that make it "xen-friendly",
providing glibc is built with the "-mno-tls-direct-seg-refs" option to
gcc.

It's currently undergoing testing, and I expect we'll check it in to the
repo later this week.

Ian


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: NPTL/db4 problem with FC3
  2005-03-21 21:34 Ian Pratt
@ 2005-03-22  7:50 ` Nils Toedtmann
  2005-03-25 11:48 ` Tupshin Harper
  2005-04-04 17:00 ` Nils Toedtmann
  2 siblings, 0 replies; 12+ messages in thread
From: Nils Toedtmann @ 2005-03-22  7:50 UTC (permalink / raw)
  To: Ian Pratt; +Cc: Xen devel list, Peter

Am Dienstag, den 22.03.2005, 16:27 +1200 schrieb Peter: 
> (Me Too ++: I'm running into the same issues with a non-nptl DB4 and rpm 
> on rhel4)
> 
> And making it even more interesting:
> http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/release-notes/as-x86/
> 
> "Red Hat Enterprise Linux 5 will no longer include support for 
> LinuxThreads. Therefore, applications that require LinuxThreads support 
> must be updated before they will be able to work properly on a Red Hat 
> Enterprise Linux 5 system."
> 
> I would appreciate a description of what needs to be done in order for 
> xen or UML to support the use of nptl inside the guest server.  And any 
> info on progress towards trying to support it.

Me too


Am Montag, den 21.03.2005, 21:34 +0000 schrieb Ian Pratt:
> > It turned out to be a FC specific db4 problem with non-NPTL-aware
> > ARCHes:
> > 
> >   <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91933>
> > 
> > Unfortunatly, RedHat closed this bug as WONTFIX, but it's 
> > still present
> > with FC3 on ARCH={xen,um}. /lib/tls and /usr/lib/tls moved away, the
> > LD_ASSUME_KERNEL workaround does not help, too.
> 
> We have a trivial patch to NTPL glibc that make it "xen-friendly",
> providing glibc is built with the "-mno-tls-direct-seg-refs" option to
> gcc.
> 
> It's currently undergoing testing, and I expect we'll check it in to the
> repo later this week.

I will test that, but as long as distros do not patch their glibc, too,
we are in the same sitiuation as i am with my db4-hack: i have to
rebuild a central package which is tricky to compile. I have to do that
each time the package is updated. Apt/yum shall not update it to newly
released versions (only from my own repository, resp.), so i have to lie
about the version number or i have to rename it (db4 ==> db4-xen). Try
to replace db4-4.2.52 with db4-xen-4.2.52 on a running system ... that's
really UGLY.

Does anybody know if & how RedHat solved that problem on FC4test1 (which
is shipping with xen-unstable & cyrus-imapd)?

/nils.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: NPTL/db4 problem with FC3
  2005-03-21 21:34 Ian Pratt
  2005-03-22  7:50 ` Nils Toedtmann
@ 2005-03-25 11:48 ` Tupshin Harper
  2005-04-04 17:00 ` Nils Toedtmann
  2 siblings, 0 replies; 12+ messages in thread
From: Tupshin Harper @ 2005-03-25 11:48 UTC (permalink / raw)
  To: Ian Pratt; +Cc: Xen devel list

Ian Pratt wrote:

>
>We have a trivial patch to NTPL glibc that make it "xen-friendly",
>providing glibc is built with the "-mno-tls-direct-seg-refs" option to
>gcc.
>
>It's currently undergoing testing, and I expect we'll check it in to the
>repo later this week.
>
>Ian
>
>  
>
How's this patch coming. I'm trying to get a gentoo domU going and I 
would love to give this a try.

-Tupshin


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: NPTL/db4 problem with FC3
  2005-03-21 21:34 Ian Pratt
  2005-03-22  7:50 ` Nils Toedtmann
  2005-03-25 11:48 ` Tupshin Harper
@ 2005-04-04 17:00 ` Nils Toedtmann
  2005-04-04 19:55   ` Rik van Riel
  2 siblings, 1 reply; 12+ messages in thread
From: Nils Toedtmann @ 2005-04-04 17:00 UTC (permalink / raw)
  To: Ian Pratt; +Cc: xen-devel

Am Montag, den 21.03.2005, 21:34 +0000 schrieb Ian Pratt:
>  > It turned out to be a FC specific db4 problem with non-NPTL-aware
> > ARCHes:
> > 
> >   <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91933>
> > 
> > Unfortunatly, RedHat closed this bug as WONTFIX, but it's 
> > still present
> > with FC3 on ARCH={xen,um}. /lib/tls and /usr/lib/tls moved away, the
> > LD_ASSUME_KERNEL workaround does not help, too.
> 
> We have a trivial patch to NTPL glibc that make it "xen-friendly",
> providing glibc is built with the "-mno-tls-direct-seg-refs" option to
> gcc.
> 
> It's currently undergoing testing, and I expect we'll check it in to the
> repo later this week.

Hi, 

is the patch available now? I'd like to try it. CentOS suffers from the
same bug. Will that patch obsolete moving /lib/tls/?

BTW: FC3 & CentOS have db4 libs within /usr/lib/tls/. Do i have to move
that, too?

/nils.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: NPTL/db4 problem with FC3
  2005-04-04 17:00 ` Nils Toedtmann
@ 2005-04-04 19:55   ` Rik van Riel
  2005-04-04 20:12     ` Keir Fraser
  0 siblings, 1 reply; 12+ messages in thread
From: Rik van Riel @ 2005-04-04 19:55 UTC (permalink / raw)
  To: Nils Toedtmann; +Cc: Ian Pratt, xen-devel

On Mon, 4 Apr 2005, Nils Toedtmann wrote:

> is the patch available now? I'd like to try it. CentOS suffers from the 
> same bug. Will that patch obsolete moving /lib/tls/?
> 
> BTW: FC3 & CentOS have db4 libs within /usr/lib/tls/. Do i have to move 
> that, too?

You may want to keep them in place for FC3 and CentOS,
since db4 locking is only per-process without TLS !

With the segment flipping code, the only disadvantage
of having /lib/tls in place is performance - I have
not seen any stability problems.

Ian, would it be an idea to change the big WARNING to
print something else ?

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: NPTL/db4 problem with FC3
  2005-04-04 19:55   ` Rik van Riel
@ 2005-04-04 20:12     ` Keir Fraser
  2005-04-04 20:19       ` Rik van Riel
  2005-04-05 11:22       ` Nils Toedtmann
  0 siblings, 2 replies; 12+ messages in thread
From: Keir Fraser @ 2005-04-04 20:12 UTC (permalink / raw)
  To: Rik van Riel; +Cc: Ian Pratt, xen-devel, Nils Toedtmann


On 4 Apr 2005, at 20:55, Rik van Riel wrote:

> Ian, would it be an idea to change the big WARNING to
> print something else ?

We could certainly remove the stability warning. Is that sufficient?

  -- Keir

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: NPTL/db4 problem with FC3
  2005-04-04 20:12     ` Keir Fraser
@ 2005-04-04 20:19       ` Rik van Riel
  2005-04-05 11:22       ` Nils Toedtmann
  1 sibling, 0 replies; 12+ messages in thread
From: Rik van Riel @ 2005-04-04 20:19 UTC (permalink / raw)
  To: Keir Fraser; +Cc: Ian Pratt, xen-devel, Nils Toedtmann

On Mon, 4 Apr 2005, Keir Fraser wrote:
> On 4 Apr 2005, at 20:55, Rik van Riel wrote:
> 
> > Ian, would it be an idea to change the big WARNING to
> > print something else ?
> 
> We could certainly remove the stability warning. Is that sufficient?

Yes, something like the following should be fine:

***************************************************************
***************************************************************
** WARNING: Currently emulating unsupported memory accesses  **
**          in /lib/tls libraries. The emulation is very     **
**          slow.  To ensure full performance, you should    **
**          execute the following as root:                   **
**          mv /lib/tls /lib/tls.disabled                    **
***************************************************************
***************************************************************


-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: NPTL/db4 problem with FC3
  2005-04-04 20:12     ` Keir Fraser
  2005-04-04 20:19       ` Rik van Riel
@ 2005-04-05 11:22       ` Nils Toedtmann
  1 sibling, 0 replies; 12+ messages in thread
From: Nils Toedtmann @ 2005-04-05 11:22 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel

Sorry for being insistent, but what about that "trivial patch to NTPL
glibc" you told me about?

/nils.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: NPTL/db4 problem with FC3
@ 2005-04-05 11:51 Ian Pratt
  2005-04-16 11:20 ` Nils Toedtmann
  0 siblings, 1 reply; 12+ messages in thread
From: Ian Pratt @ 2005-04-05 11:51 UTC (permalink / raw)
  To: Nils Toedtmann, Keir Fraser; +Cc: xen-devel

> Sorry for being insistent, but what about that "trivial patch 
> to NTPL glibc" you told me about?

Christian's away -- he'll check it in when he's back.
You also need to build glibc (and ideally any other binaries that use
tls) with:
  "-mno-tls-direct-seg-refs"

Ian

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: NPTL/db4 problem with FC3
  2005-04-05 11:51 NPTL/db4 problem with FC3 Ian Pratt
@ 2005-04-16 11:20 ` Nils Toedtmann
  2005-04-16 19:04   ` Kip Macy
  0 siblings, 1 reply; 12+ messages in thread
From: Nils Toedtmann @ 2005-04-16 11:20 UTC (permalink / raw)
  To: Ian Pratt; +Cc: xen-devel

Am Dienstag, den 05.04.2005, 12:51 +0100 schrieb Ian Pratt:
> > Sorry for being insistent, but what about that "trivial patch 
> > to NTPL glibc" you told me about?
> 
> Christian's away -- he'll check it in when he's back.
> You also need to build glibc (and ideally any other binaries that use
> tls) with:
>   "-mno-tls-direct-seg-refs"

Reminder ... /nils.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: NPTL/db4 problem with FC3
  2005-04-16 11:20 ` Nils Toedtmann
@ 2005-04-16 19:04   ` Kip Macy
  0 siblings, 0 replies; 12+ messages in thread
From: Kip Macy @ 2005-04-16 19:04 UTC (permalink / raw)
  To: Nils Toedtmann; +Cc: xen-devel

Ian is away for the weekend.



On 4/16/05, Nils Toedtmann <xen-devel@nils.toedtmann.net> wrote:
> Am Dienstag, den 05.04.2005, 12:51 +0100 schrieb Ian Pratt:
> > > Sorry for being insistent, but what about that "trivial patch
> > > to NTPL glibc" you told me about?
> >
> > Christian's away -- he'll check it in when he's back.
> > You also need to build glibc (and ideally any other binaries that use
> > tls) with:
> >   "-mno-tls-direct-seg-refs"
> 
> Reminder ... /nils.
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-04-16 19:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-05 11:51 NPTL/db4 problem with FC3 Ian Pratt
2005-04-16 11:20 ` Nils Toedtmann
2005-04-16 19:04   ` Kip Macy
  -- strict thread matches above, loose matches on Subject: below --
2005-03-21 21:34 Ian Pratt
2005-03-22  7:50 ` Nils Toedtmann
2005-03-25 11:48 ` Tupshin Harper
2005-04-04 17:00 ` Nils Toedtmann
2005-04-04 19:55   ` Rik van Riel
2005-04-04 20:12     ` Keir Fraser
2005-04-04 20:19       ` Rik van Riel
2005-04-05 11:22       ` Nils Toedtmann
2005-03-21 20:32 Nils Toedtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.