Re: Sorry, it' me again...
| From: | Yannick Warnier | Date: | Mon, 01 Nov 2004 18:59:08 +0000 |
| Subject: | Re: Sorry, it' me again... | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-1572@lists.php.net to get a copy of this message | ||
Le lun 01/11/2004 à 17:55, Pierre Ancelot a écrit :
> A kinda surprising thing happened to me. my entension works pretty well as i
> test it with a basic file. When i integrate it in the site itself, i get a
> segfault:
>
> [8746] MMCACHE: PHP crashed on opline 15 of html_getpart()
> at /home/pierre/siteweb/spider/www/core/spider.php:237
>
> [Mon Nov 1 18:41:03 2004] [notice] child pid 8746 exit signal Segmentation
> fault (11)
>
>
> so i tried to debug it (i'm a printf debugger :P) and seems it crashes even
> before my function is called. any idea ?
I have the same problem when something goes wrong with the data types
(as you might read in my other posts, I'm playing with extensions too at
the moment). I could not get any detailed error report, but I have only
two functions and the one causing the problem is my function ssh_connect
which uses a parameter being returned by another function. The parameter
is a zval (or resource) for PHP, but it a struct pointer at the C level.
I cannot tell more, I don't know more :-)
Yannick