[PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 - 3 | Next >

[PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  postgis 1.5.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 I managed to get the libxml2 to compile on one of my boxes, but this
 crashes server

 {{{
 SELECT 'point_1',
 ST_AsEWKT(ST_GeomFromGML('<gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point>'));
 }}}

 Though this gives invalid as expected

 {{{
 SELECT 'xml_3', ST_AsEWKT(ST_GeomFromGML('<foo/>'));
 }}}

 I compiled using libxml2 2.7.6

 ftp://xmlsoft.org/libxml2/libxml2-sources-2.7.6.tar.gz

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  pramsey      
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  postgis 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by colivier):

 Regina,

 Could you try with this debug trace lwgeom_in_gml.c
 and send back the output result ?

 Thanks in advance,

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  pramsey      
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  postgis 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by robe):

 Olivier,

 Sorry for taking so long to get back to you.  Under a lot of time
 pressures with other projects this week so you probably won't here much
 from me for at least another week or 2.

 Regarding the attached.  It doesn't compile for me at all.  Gives errors
 like


 {{{
 lwgeom_in_gml.c:2179: warning: type defaults to `int' in declaration of
 `name'
 lwgeom_in_gml.c:2179: error: syntax error before '<' token
 lwgeom_in_gml.c:2181: warning: type defaults to `int' in declaration of
 `name'
 lwgeom_in_gml.c:2181: error: syntax error before '<' token
 lwgeom_in_gml.c:2183: warning: type defaults to `int' in declaration of
 `name'
 lwgeom_in_gml.c:2183: error: syntax error before '<' token
 lwgeom_in_gml.c:2185: warning: type defaults to `int' in declaration of
 `name'
 lwgeom_in_gml.c:2185: error: syntax error before '<' token
 lwgeom_in_gml.c:2187: warning: type defaults to `int' in declaration of
 `name'
 lwgeom_in_gml.c:2187: error: syntax error before '<' token
 lwgeom_in_gml.c:2189: warning: type defaults to `int' in declaration of
 `name'
 lwgeom_in_gml.c:2189: error: syntax error before '<' token
 lwgeom_in_gml.c:2195: warning: type defaults to `int' in declaration of
 `geom'
 lwgeom_in_gml.c:2195: error: redefinition of 'geom'
 lwgeom_in_gml.c:2173: error: previous definition of 'geom' was here
 lwgeom_in_gml.c:2195: error: redefinition of 'geom'
 lwgeom_in_gml.c:247: error: previous definition of 'geom' was here
 lwgeom_in_gml.c:2195: error: syntax error before ')' token
 lwgeom_in_gml.c:2197: error: syntax error before ')' token
 lwgeom_in_gml.c:2223: warning: type defaults to `int' in declaration of
 `xa'
 lwgeom_in_gml.c:2223: error: redefinition of 'xa'
 lwgeom_in_gml.c:2149: error: previous definition of 'xa' was here
 lwgeom_in_gml.c:2223: error: redefinition of 'xa'
 lwgeom_in_gml.c:1401: error: previous definition of 'xa' was here
 lwgeom_in_gml.c:2223: warning: data definition has no type or storage
 class
 lwgeom_in_gml.c:2223: error: syntax error before '<' token
 }}}

 and goes on and on.  The gml in BTW works fine on my OpenSUSE 10.3 (using
 the same libxml source) (haven't tried my more finicky 11).  Even going
 thru the gardent test seems to work fine.

 I think its an issue with compiling libxml2 under mingW.  I searched, and
 it seems stories are the same with the libxml crashing when compiled under
 mingw.  Possibly threading issues or something.  the compile of libxml2
 also gives a ton of warnings about exceeded length of the form


 {{{
 .libs/lt-testModule.c:285: warning: string length `1611' is greater than
 the length `509' ISO C89 compilers are required to support

 }}}


 So I fear this may be beyond my abilities to solve.  Perhaps Mark can take
 a stab at it when he has the time to see if there is a trick to getting
 this to behave correctly.

 My newer mingw 4.4 compiler refuses to even compile the libxml2.

 Thanks,
 Regina

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  postgis 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Changes (by pramsey):

  * owner:  pramsey => colivier

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  postgis 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by robe):

 I did a test putting in notices and (had to put in error too because the
 crash prevented me from seeing the notices). Anyrate as far as I can tell
 -- it starts failing in parse_gml_data function  r4734  -- line 846

 Which looks like

 {{{
 if (!strcmp((char *) xa->name, "pos")) {
 }}}

 So I guess its either the strcmp or whatever the xa->name is returning.
 For what its worth none of the other code I saw in our codebase does a

 strcmp((char *) ... in one step.

 They always seem to declare the variable char * and use the variable,
 though that may be a stylistic feature rather than for some fundamental
 reason.

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:4>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  postgis 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by pramsey):

 The patch in trunk at r4744 fixed regression issues for me.

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:5>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  postgis 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by robe):

 Still crashes on MingW :(

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:6>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  postgis 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by colivier):

 Paul,
  - Did you tryed the latest trunk version on mingw before to patch ?
  - Did you have any compiler warning about uninitialized vars ?


 Regina
  - I (finnaly) got a win32 box, i will be able to do some test next week
 after PgDay
  - Upon your previous post, it's possible that's more an libxml2 install
 issue

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:7>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  postgis 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by pramsey):

 Replying to [comment:7 colivier]:
 >  - Did you tryed the latest trunk version on mingw before to patch ?

 No, I don't have MinGW, but I did have a crash on OS/X which initializing
 fixed.

 >  - Did you have any compiler warning about uninitialized vars ?

 Yes, a few, and I put initializers on those.

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:8>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  postgis 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by colivier):

 Regina,

 I followed UserWikiWinCompile instructions, but i'm unable to install
 successfull GEOS (3.1.1 or SVN one), so PostGIS can't be compile either...
 The only thing i can tell is that Libxml2 2.7.6 compile without peculiar
 problem.

 I attach a screen capture related to GEOS error. If anyone have an idea...

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:9>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  postgis 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by robe):

 Olivier,

 I haven't tested against 3.1.1 in a while.  Been doing all my testing
 against GEOS 3.2.0rc1 and GEOS 3.2SVN.  Its kind of cruel to give people
 GEOS 3.1 with 1.5 anyway since the fast buffering, new buffer features and
 hausdo... they would miss out on.

 From what I can tell from your screen -- it looks like you have some
 remnants of libgeos-3-2 in there (note the
 /usr/local/bin/libgeos-3-2-0.dll (or that justa  bad message in the geos
 code.  Try using the GEOS 3.2 instead (note the changes you'll need to
 hack in your mingw I noted) to get geos 3.2 to compile.

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:10>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  postgis 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by robe):

 Forgot to mention.  I did a retest after the latest code reorg and I'm
 thinking its not libxml but the strcmp

 if (!strcmp((char *) xa->name, "pos")) {


 I'm pretty sure the xa->name and xa->next are gong thru fine so it seems
 to be its that strcmp maybe space istn't big enough or something.  I still
 don't understand the whole string compare thing in c.  Even tsting against
 the libxml precompiled download form site -- it crashes in same location.

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:11>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  PostGIS 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by colivier):

 Regina,

 You're right the install problem was the dual GEOS install.
 I (finnaly) succeed to install the whole stuff with Mingw (not exactly a
 piece of cake) !


 With my install everything is fine with in_gml.sql and in_kml.sql

 Postgis: r4813
 Geos: 3.2.0 RC1
 Libxml2: 2.7.6

 I really suspect you're libxml2 installation to be the problem. Is it
 possible for you (or someone else) to test it on an another box ?

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:12>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  PostGIS 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by robe):

 Strange.  Maybe its something else I install getting in the way or I'm not
 compiling libxml right.  I have another box I can try on later.   Nicklas
 -- you have a mingw install -- if its not asking too much -- can you try
 compiling and doing the simple


 {{{
 SELECT
 ST_GeomFromGML('<gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point>')
 }}}
 to see if it works.

 Olivier - what  is your mingw gcc and mingw/msys versions?  On my gcc 3.5
 box, I was able to compile and install without errors (except libxml make
 checks fail), but got crashes when doing the above test.  On my upgraded
 mingw running gcc 4.4, I can't compile libxml at all.

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:13>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  PostGIS 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by robe):

 One thing I forgot to mention.  I was testing against the Enterprisedb
 compiled PostgreSQL 8.3/8.4, not my mingw compiled version.  I do that
 because sometimes they behave differently.  For example plr works fine
 under my mingw compiled postgresql 84, but I for the life of me can't even
 get it to load in the visual c++ compiled EDB packaged PostgreSQL.  So
 that I know I will eventually have to bite the bullet and figure out how
 to compile plr under vc++.

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:14>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Parent Message unknown Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by Nicklas Avén :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I compiled the LIBXML2  library with a lot of warnings, do you have them too Regina or should I post them, Oliver.
When I should test it I couldn't find any sql.definition of the function ST_GeomFromGML. As I see in postgis.sql.in.c that is because LIBXML2 isn't found. So I guess the compilation didn't sucess. I will see if I get time to try later today.
 
 
/Nicklas
 
 

2009-11-23 PostGIS wrote:

#273: ST_GeomFromGML crashes in Windows compiled in MingW
>----------------------+-----------------------------------------------------
> Reporter: robe | Owner: colivier
> Type: defect | Status: new
> Priority: medium | Milestone: PostGIS 1.5.0
> Component: postgis | Version: trunk
>Resolution: | Keywords:
>----------------------+-----------------------------------------------------
>Comment (by robe):
>
> Strange. Maybe its something else I install getting in the way or I'm not
> compiling libxml right. I have another box I can try on later. Nicklas
> -- you have a mingw install -- if its not asking too much -- can you try
> compiling and doing the simple
>
>
> {{{
> SELECT
> ST_GeomFromGML(' 1,2')
> }}}
> to see if it works.
>
> Olivier - what is your mingw gcc and mingw/msys versions? On my gcc 3.5
> box, I was able to compile and install without errors (except libxml make
> checks fail), but got crashes when doing the above test. On my upgraded
> mingw running gcc 4.4, I can't compile libxml at all.
>
>--
>Ticket URL:
>PostGIS
>The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
>_______________________________________________
>postgis-devel mailing list
>postgis-devel@...
>http://postgis.refractions.net/mailman/listinfo/postgis-devel
>
>

_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  PostGIS 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by colivier):

 Regina,
   - gcc 3.4.5
   = mingw 3.14 (i guess)


 Nicklas
   Indeed if libxml no present (or not well installed) ST_GeomFromGML will
 not be available. I just commit an enhanced postgis_full_version() to show
 libml2 version if any. (r4885). On previous postgis version this
 information is available only at the end on configure step.

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:15>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  PostGIS 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by robe):

 Hmm I think I'm running mingw 5.04, though not sure that matters.  I did
 conclude its not the VC++ PG build, since it crashes under my mingw pg
 compiled version too.  Though it starts off with a gml namespace is not
 defined in the logs and then crashes.

 I'm going to try Mark's backtrace instructions next to narrow it down more
 once I get gdb loaded.

 Olivier -- can you attach your postgis dll and libxml dlls so I can test
 on my box to verify its not some other dependency I have and just isolated
 to those (or the libxml).  I'm guessing if I still have a crash with your
 working copy -- then its something else on my boxes I have installed
 causing the problem.

 Thanks,
 Regina

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:16>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  PostGIS 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by robe):

 Here is the backtrace from both my PostgreSQL 8.4 (VC++ EDB build as well
 as my MingW build)


 {{{
 Under postgresql VC++ build
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 7700.0xb20]
 0x00000000 in ?? ()
 (gdb) bt
 #0  0x00000000 in ?? ()
 #1  0x68f22718 in parse_gml_data ()
    from C:\Program Files\PostgreSQL\8.4\lib\postgis-1.5.dll
 #2  0x68f22e13 in parse_gml ()
    from C:\Program Files\PostgreSQL\8.4\lib\postgis-1.5.dll
 #3  0x68f2430f in geom_from_gml ()
    from C:\Program Files\PostgreSQL\8.4\lib\postgis-1.5.dll
 #4  0x004dbc69 in postgres!get_attavgwidth ()
 #5  0x00caf708 in ?? ()
 #6  0x00caf708 in ?? ()
 #7  0x00caf6e8 in ?? ()
 #8  0x03f8ca20 in ?? ()
 #9  0x03f8c5d8 in ?? ()
 #10 0x000186cf in ?? ()
 #11 0x03a653d0 in ?? ()
 #12 0x00000000 in ?? ()

 ------

 MingW postgres 8.4

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 6288.0x1198]
 0x00000000 in ?? ()
 (gdb) bt
 #0  0x00000000 in ?? ()
 #1  0x68f22718 in parse_gml_data ()
    from C:\projects\pg\pg84\lib\postgresql\postgis-1.5.dll
 #2  0x68f22e13 in parse_gml ()
    from C:\projects\pg\pg84\lib\postgresql\postgis-1.5.dll
 #3  0x68f2430f in geom_from_gml ()
    from C:\projects\pg\pg84\lib\postgresql\postgis-1.5.dll
 #4  0x0050363c in ExecMakeFunctionResult ()
 #5  0x00506cd3 in ExecEvalExprSwitchContext ()
 #6  0x0056988f in evaluate_expr ()
 #7  0x0056a07f in simplify_function ()
 #8  0x0056a767 in eval_const_expressions_mutator ()
 #9  0x0052a733 in expression_tree_mutator ()
 #10 0x0056a58a in eval_const_expressions_mutator ()
 #11 0x0052ac57 in expression_tree_mutator ()
 #12 0x0056a58a in eval_const_expressions_mutator ()
 #13 0x0056b6ad in eval_const_expressions ()
 #14 0x0055c36b in preprocess_expression ()
 #15 0x03997ee0 in ?? ()
 #16 0x00000001 in ?? ()
 #17 0xffffffff in ?? ()
 #18 0x00000000 in ?? ()

 }}}

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:17>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#273: ST_GeomFromGML crashes in Windows compiled in MingW
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  colivier    
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  PostGIS 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:              
----------------------+-----------------------------------------------------
Comment (by colivier):

 Regina,

 Commited a patch as r4890 related to your backtrace.
 Worst to be tested again.
 I send you my .dll stuff quite soon (not the win32 laptop with me)

 Tks !

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:18>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel
< Prev | 1 - 2 - 3 | Next >