[opensuse-factory] glibc-locale issue in Haskell packages
Hi, I have been seeing the following in Factory builds of all Haskell libraries on OBS recently: [ 46s] ghc-base-devel-4.6.0.1-6.6 ######################################## [ 1006s] ghc-pkg: out of memory (requested 1048576 bytes) See: https://build.opensuse.org/package/rawlog?arch=x86_64&package=hscolour&project=devel%3Alanguages%3Ahaskell%3Anext&repository=openSUSE_Factory ghc-pkg is run in the %post section of all ghc-*-devel packages. Reading through the logs of other Haskell packages on OBS I think ghc-pkg allocates all available memory and is then killed only when glibc-locale is not installed. openSUSE 12.1, 12.2, and 12.3 all preinstall glibc-locale and there I have not seen any problems with ghc-pkg. After adding a Requires to the package providing ghc-pkg (ghc-compiler) Haskell packages build normally now (see devel:languages:haskell). I am not sure this is the right way to fix this issue though. I have not been able to reproduce the issue building on my local machine running openSUSE 12.2 and I have not heard anyone on the Haskell mailing lists complain about ghc-pkg. Could this be a glibc issue? Thanks, Peter -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 05/21/2013 06:04 PM, Peter Trommler wrote:
Hi,
I have been seeing the following in Factory builds of all Haskell libraries on OBS recently:
[ 46s] ghc-base-devel-4.6.0.1-6.6 ######################################## [ 1006s] ghc-pkg: out of memory (requested 1048576 bytes)
ghc-pkg is run in the %post section of all ghc-*-devel packages.
Reading through the logs of other Haskell packages on OBS I think ghc-pkg allocates all available memory and is then killed only when glibc-locale is not installed. openSUSE 12.1, 12.2, and 12.3 all preinstall glibc-locale and there I have not seen any problems with ghc-pkg. After adding a Requires to the package providing ghc-pkg (ghc-compiler) Haskell packages build normally now (see devel:languages:haskell). I am not sure this is the right way to fix this issue though.
I have not been able to reproduce the issue building on my local machine running openSUSE 12.2 and I have not heard anyone on the Haskell mailing lists complain about ghc-pkg.
Could this be a glibc issue?
It could - but to figure out what it really is, we need a reproduceable test case. Could you create one? Andreas -- Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg) GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Andreas Jaeger wrote:
On 05/21/2013 06:04 PM, Peter Trommler wrote:
Hi,
[...]
I have not been able to reproduce the issue building on my local machine running openSUSE 12.2 and I have not heard anyone on the Haskell mailing lists complain about ghc-pkg.
Could this be a glibc issue?
It could - but to figure out what it really is, we need a reproduceable test case. Could you create one? Just a quick update:
I deinstalled glibc-locale on my freshly installed openSUSE 12.3 test machine and I can now reproduce the issue with the ghc-pkg that comes with openSUSE 12.3. In addition deinstalling glibc-locale also broke Yast's Software Management module, which now returns "An error occured during repository initialization." Yast does not hang nor crash though. I straced ghc-pkg and learned that it tries to open several locale files and then goes into an infinite loop until it has allocated too much memory and is killed. Apart from alarms (signal handling) and memory allocations I did not see any other system calls after the unsuccessful open calls. I'll take a closer look with gdb once I repaired Yast and installed debuginfo packages. Peter -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 05/24/2013 07:47 PM, Peter Trommler wrote:
Andreas Jaeger wrote:
On 05/21/2013 06:04 PM, Peter Trommler wrote:
Hi,
[...]
I have not been able to reproduce the issue building on my local machine running openSUSE 12.2 and I have not heard anyone on the Haskell mailing lists complain about ghc-pkg.
Could this be a glibc issue?
It could - but to figure out what it really is, we need a reproduceable test case. Could you create one? Just a quick update:
I deinstalled glibc-locale on my freshly installed openSUSE 12.3 test machine and I can now reproduce the issue with the ghc-pkg that comes with openSUSE 12.3. In addition deinstalling glibc-locale also broke Yast's Software Management module, which now returns "An error occured during repository initialization." Yast does not hang nor crash though.
I straced ghc-pkg and learned that it tries to open several locale files and then goes into an infinite loop until it has allocated too much memory and is killed. Apart from alarms (signal handling) and memory allocations I did not see any other system calls after the unsuccessful open calls.
I'll take a closer look with gdb once I repaired Yast and installed debuginfo packages.
If this is too difficult and you need a fix, a BuildRequire glibc-locale would be fine as well - but deserves a comment, Andreas -- Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg) GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (2)
-
Andreas Jaeger
-
Peter Trommler