[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [libvirt-php] - zend_mm_heap corrupted



Hi Henrik,
what exactly did you to do to get the error page? I never run into those
in any version I'm having in libvirt-php git repository since I always
check but it may be Apache & PHP version connected and I'm running it as
a module. Could you please provide me more information about this or at
least provide me the results of `make check` command in the libvirt-php
directory as cloned from git?

Please note that to try to `make check` you need to install it first so
you need to do `make`, then `(sudo) make install` and then `make check`.
The `make check` command is running the tests and you shouldn't be
seeing any segmentation fault there otherwise there's some bug in the
code which obviously seems to be reproducible only on your environment
since it's not reproducible on my environment at all.

All the tests pass in my case:
$ make check
...
Making check in tests
make[1]: Entering directory `tests'
./runtests.sh
Test test-connect.phpt has been completed successfully
Test test-version-check.phpt has been completed successfully
Test test-version-get.phpt has been completed successfully
Test test-domain-define-undefine.phpt has been completed successfully
Test test-domain-define-create-destroy.phpt has been completed successfully
Test test-domain-create.phpt has been completed successfully
Test test-domain-create-and-get-xpath.phpt has been completed successfully
Test test-domain-create-and-coredump.phpt has been completed successfully
Test test-domain-snapshot.phpt has been completed successfully
All tests passed successfully
...
$

Could you please provide me with the Apache logs as well and also the
Apache and PHP version numbers?

You mention Drupal, did you integrate libvirt-php functionality into
Drupal? The backtraces using xdebug should be sufficient. Please provide
me with them.

Thanks,
Michal

On 06/18/2011 06:51 PM, Henrik Jönsson wrote:
>
> I basicly just got an erronous page load and checked the apache logs.
> After some further testing it seems the problem only occurs when ran
> within Drupal and not when ran as a standalone script. I will do some
> further testing in a different cms to see if it is Drupal specific. I
> can also do backtraces with xdebug and coredump apache if that will help.
>
> Best Regards
>
> /Henrik
> Den 15 jun 2011 09:03 skrev "Michal Novotny" <minovotn redhat com
> <mailto:minovotn redhat com>>:
> >
> > Hi Henrik,
> > thanks a lot for your observations. How did you find out about the PHP
> > memory usage and about zend_mm_heap corrupted at the first place?
> >
> > This could help me debug this issue.
> >
> > Thanks,
> > Michal
> >
> > On 06/12/2011 06:05 PM, Henrik Jönsson wrote:
> > > [libvirt-php]
> > >
> > > Hello!
> > >
> > > I am using Libvirt-php for a private project, i do however have a
> > > problem that seems to occur when i call any function that returns a
> > > domain resource. I have gotten 3 different errors so far. First i had
> > > a problem with php memory usage going extreme(2gb), then i have had
> > > some apache segmentation fault ending up in apache killing the
> > > process. I have also had zend_mm_heap corrupted which i think is the
> > > most common one.
> > >
> > > I have tried with Ubuntu 10.04, 10.10 and 11.04 repository versions of
> > > Apache. Other than that i am using libvirt version 0.9.1 and
> > > libvirt-php version 0.4.1. This is within the contexts of Drupal as i
> > > am using the code in a Drupal module.
> > >
> > > I have checked out the source code for libvirt-php but since i am no
> > > C/C++ developer i have a hard time figuring out what the issue might
> > > be. Some help would be greatly appreciated. :)
> > >
> > > Best Regards!
> > >
> > > /Henrik
> > >
> > >
> > > --
> > > libvir-list mailing list
> > > libvir-list redhat com <mailto:libvir-list redhat com>
> > > https://www.redhat.com/mailman/listinfo/libvir-list
> >
> >
> > --
> > Michal Novotny <minovotn redhat com <mailto:minovotn redhat com>>, RHCE
> > Virtualization Team (xen userspace), Red Hat
> >
>


-- 
Michal Novotny <minovotn redhat com>, RHCE
Virtualization Team (xen userspace), Red Hat


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]