midgardproject/midgard-php5 — Issue #68: midgard_blob::read_content() segfaults PHP
Author: feri
Created: 2011-11-16 15:30:15+00:00
State: open

Environment: Debian unstable
Midgard version: 10.05.6-1 (packages installed from OBS a week ago approx.)

I have an attachment object (midgard_attachment). Trying to get the corresponding blob to overwrite its content:

$blob = new midgard_blob($attachment);
$handler = $blob->get_handler('wb');
$content = $blob->read_content();

I get the following error:

Warning: Failed to get blob-contents: Critical internal error. in /home/sopi/work/midgard2/com_meego_obsconnector/api/OBSFetcher.php on line 596

dmesg shows this:

[82747.670277] php[10817]: segfault at 8 ip 00007f2cfc18e470 sp 00007ffff87003d0 error 4 in libmidgard2.so.2010.5.0[7f2cfc13f000+88000]