Bug#935146: appstream: unable to open cache

2019-09-06 Thread Martin-Éric Racine
appstream (0.12.8-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
 = Merged Git patch 84e11c35f9ceb1b92df83e4b9707498f5267dcd3.patch

Upgraded the following packages to the above version:

appstream apt-config-icons libappstream4

Ran the following command line:

sudo apt-get update && sudo apt-get dist-upgrade

No error reported. I guess the patch works. Thanks!

Please note that this host's 1 GB RAM is generous for the Geode
platform. More typically a Geode host comes with 128 MB of soldered-on
RAM. The mmap amount ought to keep this in mind on i386.

Debian's linux-image-686 (the kernel for legacy non-PAE i386 hosts)
happens to be configured for Geode LX platforms (Kconfig:
CONFIG_MGEODE_LX=y).

Cheers!
Martin-Éric

la 31. elok. 2019 klo 20.45 Matthias Klumpp (matth...@tenstral.net) kirjoitti:
>
> Am Sa., 31. Aug. 2019 um 19:36 Uhr schrieb Matthias Klumpp
> :
> >
> > Am Di., 20. Aug. 2019 um 10:51 Uhr schrieb Martin-Éric Racine
> > :
> > >
> > > Geode has no PAE. Maximum memory on these as per memory controller is
> > > 1GB which is what it has. Part of this is used by the GPU.
> > >
> > > $ free
> > >   totalusedfree  shared  buff/cache   
> > > available
> > > Mem: 896608   56956  6774602968  162192  
> > > 706860
> > > Swap:   1646624   0 1646624
> >
> > So far I haven't been able to reproduce this in VMs, but a VM is
> > probably also not the best place to try to reproduce this issue.
> > Do you have some time to test a patch for me?
> > If you can, fetch
> > https://github.com/ximion/appstream/commit/a049482267f3caf53c5465fe6feb8d7c6a12206b.patch
>
> Actually, that's the wrong patch...
> You'd want this one instead:
> https://github.com/ximion/appstream/commit/84e11c35f9ceb1b92df83e4b9707498f5267dcd3.patch
>
> --
> I welcome VSRE emails. See http://vsre.info/



Bug#935146: appstream: unable to open cache

2019-08-31 Thread Matthias Klumpp
Am Sa., 31. Aug. 2019 um 19:36 Uhr schrieb Matthias Klumpp
:
>
> Am Di., 20. Aug. 2019 um 10:51 Uhr schrieb Martin-Éric Racine
> :
> >
> > Geode has no PAE. Maximum memory on these as per memory controller is
> > 1GB which is what it has. Part of this is used by the GPU.
> >
> > $ free
> >   totalusedfree  shared  buff/cache   
> > available
> > Mem: 896608   56956  6774602968  162192  
> > 706860
> > Swap:   1646624   0 1646624
>
> So far I haven't been able to reproduce this in VMs, but a VM is
> probably also not the best place to try to reproduce this issue.
> Do you have some time to test a patch for me?
> If you can, fetch
> https://github.com/ximion/appstream/commit/a049482267f3caf53c5465fe6feb8d7c6a12206b.patch

Actually, that's the wrong patch...
You'd want this one instead:
https://github.com/ximion/appstream/commit/84e11c35f9ceb1b92df83e4b9707498f5267dcd3.patch

-- 
I welcome VSRE emails. See http://vsre.info/



Bug#935146: appstream: unable to open cache

2019-08-31 Thread Matthias Klumpp
Am Di., 20. Aug. 2019 um 10:51 Uhr schrieb Martin-Éric Racine
:
>
> Geode has no PAE. Maximum memory on these as per memory controller is
> 1GB which is what it has. Part of this is used by the GPU.
>
> $ free
>   totalusedfree  shared  buff/cache   
> available
> Mem: 896608   56956  6774602968  162192  
> 706860
> Swap:   1646624   0 1646624

So far I haven't been able to reproduce this in VMs, but a VM is
probably also not the best place to try to reproduce this issue.
Do you have some time to test a patch for me?
If you can, fetch
https://github.com/ximion/appstream/commit/a049482267f3caf53c5465fe6feb8d7c6a12206b.patch
and apply it to the "appstream" package sources (add to debian/patches
folder and register it in debian/series), then rebuild the package and
install the patches copy of the libappstream4 library and appstream
package.
Does that solve your problem?
If so, I would just roll out that patch with the next update.

Cheers,
 Matthias

-- 
I welcome VSRE emails. See http://vsre.info/



Bug#935146: appstream: unable to open cache

2019-08-20 Thread Martin-Éric Racine
Geode has no PAE. Maximum memory on these as per memory controller is
1GB which is what it has. Part of this is used by the GPU.

$ free
  totalusedfree  shared  buff/cache   available
Mem: 896608   56956  6774602968  162192  706860
Swap:   1646624   0 1646624

ti 20. elok. 2019 klo 11.38 Matthias Klumpp (matth...@tenstral.net) kirjoitti:
>
> Am Di., 20. Aug. 2019 um 09:53 Uhr schrieb Matthias Klumpp
> :
> >
> > Am Di., 20. Aug. 2019 um 09:24 Uhr schrieb Martin-Éric Racine
> > :
> > >
> > > Package: appstream
> > > Version: 0.12.8-1
> > > Severity: important
> > >
> > > -BEGIN PGP SIGNED MESSAGE-
> > > Hash: SHA256
> > >
> > > When running 'apt-get update' I routinely get this error message:
> > >
> > > ** (appstreamcli:1275): CRITICAL **: 10:15:19.825: Unable to open 
> > > temporary cache: Unable to open cache: Cannot allocate memory
> >
> > Looks like AppStream is a bit too aggressive with the mmap'ing on 32bit 
> > systems.
> > I'll resolve this with the next upload.
>
> On closer look, only up to 512MB are mapped. How much memory does your
> system have? Is PAE enabled for your CPU?
> This issue is fairly strange, I will try to reproduce it in a VM later.
>
> Cheers,
> Matthias
>
> --
> I welcome VSRE emails. See http://vsre.info/



Bug#935146: appstream: unable to open cache

2019-08-20 Thread Matthias Klumpp
Am Di., 20. Aug. 2019 um 09:53 Uhr schrieb Matthias Klumpp
:
>
> Am Di., 20. Aug. 2019 um 09:24 Uhr schrieb Martin-Éric Racine
> :
> >
> > Package: appstream
> > Version: 0.12.8-1
> > Severity: important
> >
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA256
> >
> > When running 'apt-get update' I routinely get this error message:
> >
> > ** (appstreamcli:1275): CRITICAL **: 10:15:19.825: Unable to open temporary 
> > cache: Unable to open cache: Cannot allocate memory
>
> Looks like AppStream is a bit too aggressive with the mmap'ing on 32bit 
> systems.
> I'll resolve this with the next upload.

On closer look, only up to 512MB are mapped. How much memory does your
system have? Is PAE enabled for your CPU?
This issue is fairly strange, I will try to reproduce it in a VM later.

Cheers,
Matthias

-- 
I welcome VSRE emails. See http://vsre.info/



Bug#935146: appstream: unable to open cache

2019-08-20 Thread Matthias Klumpp
Am Di., 20. Aug. 2019 um 09:24 Uhr schrieb Martin-Éric Racine
:
>
> Package: appstream
> Version: 0.12.8-1
> Severity: important
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> When running 'apt-get update' I routinely get this error message:
>
> ** (appstreamcli:1275): CRITICAL **: 10:15:19.825: Unable to open temporary 
> cache: Unable to open cache: Cannot allocate memory

Looks like AppStream is a bit too aggressive with the mmap'ing on 32bit systems.
I'll resolve this with the next upload.

Cheers,
Matthias

-- 
I welcome VSRE emails. See http://vsre.info/



Bug#935146: appstream: unable to open cache

2019-08-20 Thread Martin-Éric Racine
Package: appstream
Version: 0.12.8-1
Severity: important

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

When running 'apt-get update' I routinely get this error message:

** (appstreamcli:1275): CRITICAL **: 10:15:19.825: Unable to open temporary 
cache: Unable to open cache: Cannot allocate memory

- -- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (, 'testing'), (1101, 'stable')
Architecture: i386 (i586)

Kernel: Linux 4.19.0-5-686 (SMP w/1 CPU core)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), LANGUAGE=fi:en 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages appstream depends on:
ii  libappstream4  0.12.8-1
ii  libc6  2.28-10
ii  libglib2.0-0   2.60.6-2

appstream recommends no packages.

Versions of packages appstream suggests:
ii  apt-config-icons  0.12.8-1
ii  curl  7.65.3-1

- -- no debconf information

-BEGIN PGP SIGNATURE-

iQIzBAEBCAAdFiEEyJACx3qL7GpObXOQrh+Cd8S017YFAl1bn40ACgkQrh+Cd8S0
17YWsBAAjpBB5yM0+e9tZNS/nXu/SG9/RdtGbOIO3SY0I97aJoCFQpkKGrlLdnBG
aOEGZ6VlDBAkbUe4SK0THAOljlVm5cZpVAPIBZSRUAKWOBh1syBe5FUYE97dDkRa
bI/DF3g6pZSVHTUXS7SYd456JuD2z8yS9rzV/yWpTMBx+RrYg2lSZlXks4kchp4f
C3ncfBVSV9WsIv/jFuBgXf+SraMVcsUMRTJ8BB9+207pkau5tijBy1sT6WoDOsbp
MZ7p1Lt5AXd4wv7xXm6wxWUoUVVi0qa297TNV4L40j/58li4UqoQQA5KQLGlxNdr
MSSr6W9BnUbbBJLFITYSUgOqHXM+g6qLsyODXgqS1/Vg4q+g3seP4XHDVrvaCeEX
AYUbq1Q9ZJZ3GkmMaIX2aJTqL0CQJphP7QusGRvxdOAPs7d8sD8cglkyyM2E1IGV
3cymjKK96DKvSvfjFpeDyEdxYGAT1ntAs/XW9NVL2scP5RUVWUqAVDLBLcVDir2f
jh9+QQ1Rfz/LCR6dmcX9KAK071oDaqr3RUVSzQzwIbIKvM5PMHEL4pW9PwqjSOOf
OmRywEM5kg8l9O7qCzqYprG1dksxARHt7qwavuR3X23oZRoHOlKeETjqYlNlqjIS
skCKMmSFFJHQMB5A2OKkoc5E35hG014Y/KxcWFTHMiuMLghucP4=
=C+Et
-END PGP SIGNATURE-