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

PostGIS trac at osgeo.org
Tue Dec 1 10:46:51 PST 2009

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

 Does this work for you? This is backtrace against a PostgreSQL 8.4.0 mingw
 against r4962 trunk.

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 4324.0x1464]
 0x00000000 in ?? ()
 (gdb) bt
 #0  0x00000000 in ?? ()
 #1  0x68f286fd in parse_gml_coordinates (xnode=0x41628e0, hasz=0x140f3df
     at lwgeom_in_gml.c:623
 #2  0x68f28f2e in parse_gml_data (xnode=0x41628e0, hasz=0x140f3df "",
     root_srid=0x140f3d8) at lwgeom_in_gml.c:871
 #3  0x68f291dd in parse_gml_point (xnode=0x4162740, hasz=0x140f3df "",
     root_srid=0x140f3d8) at lwgeom_in_gml.c:934
 #4  0x68f2ac5e in parse_gml (xnode=0x4162740, hasz=0x140f3df "",
     root_srid=0x140f3d8) at lwgeom_in_gml.c:1544
 #5  0x68f2778d in geom_from_gml (fcinfo=0x140f4a0) at lwgeom_in_gml.c:108
 #6  0x0052df66 in ExecMakeFunctionResult (fcache=0x416dcc0,
     econtext=0x416e108, isNull=0x140f737 "", isDone=0x0) at
 #7  0x0052e91c in ExecEvalFunc (fcache=0x416dcc0, econtext=0x416e108,
     isNull=0x140f737 "", isDone=0x0) at execQual.c:2116
 #8  0x005320f4 in ExecEvalExprSwitchContext (expression=0x416dcc0,
     econtext=0x416e108, isNull=0x140f737 "", isDone=0x0) at
 #9  0x005afae2 in evaluate_expr (expr=0x416beb0, result_type=32796,
     result_typmod=-1) at clauses.c:3842
 #10 0x005af194 in evaluate_function (funcid=33359, result_type=32796,
     result_typmod=-1, args=0x416be98, func_tuple=0x41364c0,
     at clauses.c:3449
 #11 0x005aecf6 in simplify_function (funcid=33359, result_type=32796,
     result_typmod=-1, args=0x140f830, allow_inline=1 '\001',
     context=0x140f9d0) at clauses.c:3253
 #12 0x005ad382 in eval_const_expressions_mutator (node=0x416bd70,
     context=0x140f9d0) at clauses.c:2134
 #13 0x0055ce3b in expression_tree_mutator (node=0x416bd98,
     mutator=0x5ad1b5 <eval_const_expressions_mutator>, context=0x140f9d0)
     at nodeFuncs.c:1898
 #14 0x005ae8b7 in eval_const_expressions_mutator (node=0x416bd98,
     context=0x140f9d0) at clauses.c:2951
 #15 0x0055cf5a in expression_tree_mutator (node=0x415b6e8,
     mutator=0x5ad1b5 <eval_const_expressions_mutator>, context=0x140f9d0)
     at nodeFuncs.c:1944
 #16 0x005ae8b7 in eval_const_expressions_mutator (node=0x415b6e8,
     context=0x140f9d0) at clauses.c:2951
 #17 0x005ad174 in eval_const_expressions (root=0x415c798, node=0x415b6e8)
     at clauses.c:2027
 #18 0x0059d2c3 in preprocess_expression (root=0x415c798, expr=0x415b6e8,
     kind=1) at planner.c:540
 #19 0x0059cf89 in subquery_planner (glob=0x415b700, parse=0x415b610,
     parent_root=0x0, hasRecursion=0 '\000', tuple_fraction=0,
     subroot=0x140faac) at planner.c:375
 #20 0x0059cb93 in standard_planner (parse=0x415b610, cursorOptions=0,
     boundParams=0x0) at planner.c:190
 #21 0x0059ca60 in planner (parse=0x415b610, cursorOptions=0,
     at planner.c:122
 #22 0x005fa88a in pg_plan_query (querytree=0x415b610, cursorOptions=0,
     boundParams=0x0) at postgres.c:697
 #23 0x005fa932 in pg_plan_queries (querytrees=0x416be20, cursorOptions=0,
     boundParams=0x0) at postgres.c:756
 #24 0x005fabca in exec_simple_query (
     query_string=0x415b180 "\nSELECT
 >1,2</gml:coordinates></gml:Point>')") at postgres.c:920
 #25 0x005feb28 in PostgresMain (argc=4, argv=0x4085458,
     username=0x234280 "postgres") at postgres.c:3614
 #26 0x005c9d10 in BackendRun (port=0x140fdd0) at postmaster.c:3393
 #27 0x005ca74c in SubPostmasterMain (argc=3, argv=0x232cc0)
     at postmaster.c:3866
 #28 0x0055934f in main (argc=3, argv=0x232cc0) at main.c:165


Ticket URL: <http://trac.osgeo.org/postgis/ticket/273#comment:28>
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.

More information about the postgis-devel mailing list