I am using the following snap shots:
midgard-lib-1.4_CVS200106230302.tar.bz2
midgard-php4-1.4_CVS200106230302.tar.bz2
mod_midgard-1.4_CVS200106230302.tar.bz2
nadmin 1.4.1 
what is weird is that is I didn't look at the apache logs I would hardly notice a 
problem.
Thanks for the assistance.

here is the code from 144 -182 from midgard-php4-1.4_CVS200106230302/snippetdir.c:






        else {
                switch (ZEND_NUM_ARGS()) {
                        case 3:
                                if (zend_get_parameters_ex
                                    (3, &name, &description,
                                     &owner) != SUCCESS) WRONG_PARAM_COUNT;
                                break;
                        case 4:
                                if (zend_get_parameters_ex
                                    (4, &up, &name, &description,
                                     &owner) != SUCCESS) WRONG_PARAM_COUNT;
                                break;
                        default:
                                WRONG_PARAM_COUNT;
                }
        }

        if (up) convert_to_long_ex(up); //<---- line 161 ******
        convert_to_string_ex(name);
        convert_to_string_ex(description);
        convert_to_long_ex(owner);
        snippetdir_owner_id = (*owner)->value.lval;

        if (up) {
                if ((*up)->value.lval != 0
            && !mgd_exists_id(mgd_handle(), "snippetdir", "id=$d", (*up)->value.lval))
         RETURN_FALSE_BECAUSE(MGD_ERR_NOT_EXISTS);

                /* TODO: should we in fact allow owner == 0 for non-root? */
                if ((*owner)->value.lval != 0
            && !mgd_exists_id(mgd_handle(), "grp", "id=$d", (*owner)->value.lval))
         RETURN_FALSE_BECAUSE(MGD_ERR_NOT_EXISTS);

                if (!issnippetdirowner((*up)->value.lval))
         RETURN_FALSE_BECAUSE(MGD_ERR_ACCESS_DENIED);

      if (mgd_exists_id(mgd_handle(), "snippetdir",
                                     "up=$d AND name=$q", (*up)->value.lval,
                                     (*name)->value.str.val))
         RETURN_FALSE_BECAUSE(MGD_ERR_DUPLICATE);




Emiliano wrote:
> 
> Vinny wrote:
> 
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x2ae53322 in mgdparse () at y.tab.c:296
> > 296     y.tab.c: No such file or directory.
> > (gdb) backtrace
> > #0  0x2ae53322 in mgdparse () at y.tab.c:296
> > #1  0x2af00dcc in ?? ()
> > #2  0x2ae4ebaf in php_if_mgd_create_snippetdir (ht=2112800,
> >     return_value=0x203d20, this_ptr=0x7ffffb20, return_value_used=719652485)
> >     at snippetdir.c:161
> 
> What do lines 155-170 in snippetdir say? I don't know what version you
> are using.
> 
> Emile
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Vincent [EMAIL PROTECTED]
Xaymaca Studios http://www.blendermania.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to