Getting MapServer working (PHP MapScript)
Bill Binko
bill at BINKO.NET
Wed Jun 1 13:14:09 PDT 2005
On Wed, 1 Jun 2005, Abe Gillespie wrote:
> I'll look into doing the other items later. The output of phpinfo()
> is attached.
>
> How can I run under GDB?
>
Assuming Linux (YMMV)
Make sure that your PHP library path is in your LD_LIBRARY_PATH:
$ export LD_LIBRARY_PATH=/usr/lib/php/extenions:$LD_LIBRARY_PATH
$ gdb php
<startup text, loading symbols etc.>
{gdb} run yourfile.php
<error saying SIGSEGV occurred>
(gdb) bt
<backtrace of error> <-- Cut and paste this
If this doesn't work, contact Daniel and I offline and we'll work with
you. It looks to me like you're using a PHP that uses their internal
regex methods. This can cause a great deal of pain up until very
recently. However, a recent CVS build may solve this for you. Do you
build from source?
Bill
> Thanks.
> -Abe
>
>
> On 6/1/05, Bill Binko <bill at binko.net> wrote:
> > Abe,
> >
> > Sorry I'm coming in late on this... what versions of Mapserver/PHP/OS are
> > you running? Also, could you run this command:
> >
> > echo "<? phpinfo(); ?>" | php
> >
> > Daniel and I have been fixing a problem that can cause this under certain
> > circumstances. (You can play along at home at bug 1354 in the Mapserver
> > bugzilla database).
> >
> > If you can, it would be helpful to run your script under GDB and send the
> > stack trace where the seg fault occurs.
> >
> > Bill
> >
> >
> > On Wed, 1 Jun 2005, Abe Gillespie wrote:
> >
> > > Ok, it simply Seg Faults at the ms_newMapObj().
> > >
> > > -Abe
> > >
> > > On 6/1/05, Abe Gillespie <abe.gillespie at gmail.com> wrote:
> > > > Never mind. -f switch. Cool!
> > > >
> > > > -Abe
> > > >
> > > > On 6/1/05, Abe Gillespie <abe.gillespie at gmail.com> wrote:
> > > > > That sounds like an excellent idea ... how do I do that? :)
> > > > >
> > > > > -Abe
> > > > >
> > > > > On 6/1/05, Camden Daily <cdaily at gmail.com> wrote:
> > > > > > Perhaps try running the script from the command line? That would at
> > > > > > least take Apache out of the picture, and error messages might get
> > > > > > displayed.
> > > > > >
> > > > > > -Camden
> > > > > >
> > > > >
> > > >
> > >
> > >
> >
>
More information about the MapServer-users
mailing list