flatpak-builder icon indicating copy to clipboard operation
flatpak-builder copied to clipboard

GError set over the top of a previous GError or uninitialized memory

Open bochecha opened this issue 5 years ago • 2 comments

Linux distribution and version

Whatever is installed on the Flathub builder as of July 31 2019.

Flatpak-builder version

Whatever is installed on the Flathub builder as of July 31 2019.

Flatpak version

Whatever is installed on the Flathub builder as of July 31 2019.

Description of the problem

My build failed downloading the sources, because there was no space left on the disk.

However, I got the following message which makes me think that triggered a bug:

(flatpak-builder:6088): GLib-WARNING **: 12:00:25.448: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Failed writing body (4415 != 16384)
Failed to download sources: module blender: Error writing to file: No space left on device

At least the error message says it's a bug in someone's code.

bochecha avatar Jul 31 '19 12:07 bochecha

The error message being overwritten seems to be here: https://sources.debian.org/src/criticalmass/1:1.0.0-6/curl/lib/sendf.c/?hl=299#L299

mwleeds avatar Aug 01 '19 21:08 mwleeds

I was bit by this on buildbot flathub stdio.txt

https://flathub.org/builds/#/builders/27/builds/54317

sonnyp avatar Aug 05 '21 09:08 sonnyp