Segmentation fault adding a new layer with php-mapscript (4.6beta3)

Sean Gillies sgillies at FRII.COM
Wed Jun 8 13:13:01 EDT 2005


For Perl/Python (but not Java), the macros get passed through the 
mapscriptvars file. Last time I checked, you'd done the right thing 
there. Thanks!

Sean

On Jun 8, 2005, at 10:40 AM, Julien-Samuel Lacroix wrote:

> I also modified the java/mapscript Makefile.in to get the flag.
> I don't know if the other mapscript need to be updated.
>
> Julien
>
> On 06/08/2005 12:37 PM, Bill Binko wrote:
>> On Wed, 8 Jun 2005, Steve Lime wrote:
>>
>>
>>> This is PHP specific I take it, right?
>>>
>>
>>
>> It is: I'm not sure if the other Mapscripts have a similar problem.
>> Basically, the -DUSE_POINT_Z_M never got passed down when the 
>> Makefile in
>> mapscript/php3 was created by configure.
>>
>> Someone should probably check the SWIG stuff, but I think Julien's fix
>> will solve them as well.
>>
>> Bill
>>
>>
>>> Steve
>>>
>>>
>>>>>> Bill Binko <bill at BINKO.NET> 06/07/05 10:45 AM >>>
>>>
>>> Nicol, Julien
>>>
>>> I found it as well... (bummer we overlapped efforts)
>>>
>>> attached is a patch that you can apply Nicol (run patch < zm.patch 
>>> from
>>> the php3 directory) -- or you can grab CVS HEAD after Julien applies 
>>> his
>>>
>>> Bill
>>>
>>>
>>> On Tue, 7 Jun 2005, Julien-Samuel Lacroix wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> I found the problem. Thanks for reporting it.
>>>> I opened bug 1375 to keep track of this issue.
>>>>
>>>> The problem was that the USE_POINT_Z_M flag was not carried to 
>>>> mapscript
>>>> makefile.  This caused mapscript and mapserver to have different 
>>>> mapObj
>>>> size.
>>>>
>>>> Thanks
>>>> Julien
>>>>
>>>> On 06/07/2005 02:42 AM, Nicol Hermann wrote:
>>>>
>>>>> Hi Bill, Daniel, and all the others how replied
>>>>>
>>>>> i could isolate my problem to a single config option.
>>>>> When i remove the flag:
>>>>>
>>>>> '--enable-point-z-m'
>>>>>
>>>>> from the configure line (i need it for oracle spatial) everything 
>>>>> works
>>>>> fine.
>>>>>
>>>>> When i enable it i get the described segfault.
>>>>>
>>>>> 0x4114ea30 in layerObj_new (map=0x41f88008) at mapscript_i.c:410
>>>>> 410         map->layerorder[map->numlayers] = map->numlayers;
>>>>> (gdb
>>>>>
>>>>> Could some comment on this or have the same problem?
>>>>>
>>>>> Many thank
>>>>> Nicol
>>>>>
>>>>
>>>>
>>>
>>
>
> -- 
> ------------------------------------------------------------
> Julien-Samuel Lacroix            jlacroix at dmsolutions.ca
> DM Solutions Group               http://www.dmsolutions.ca/
> ------------------------------------------------------------
>



More information about the mapserver-dev mailing list