[postgis-devel] Issue 54 in postgis: segfault with st_numgeometries when --enable-debug

codesite-noreply at google.com codesite-noreply at google.com
Tue Sep 23 13:12:44 PDT 2008


Issue 54: segfault with st_numgeometries when --enable-debug
http://code.google.com/p/postgis/issues/detail?id=54

Comment #4 by pwramsey3:
It's actually worse... now running st_area also causes a segfault.

(gdb) run --single postgis
Starting program: /usr/local/pgsql/8.3/bin/postgres --single postgis

PostgreSQL stand-alone backend 8.3.3
backend> select st_area(the_geom) from va limit 1;
          1: st_area     (typeid = 701, len = 8, typmod = -1, byval = f)
         ----

Program received signal SIGSEGV, Segmentation fault.
0x00912fd3 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0x00912fd3 in strlen () from /lib/libc.so.6
#1  0x005c6461 in lw_vasprintf (result=0xbffbe0a0, format=0x5d17d2 "s:%s:%d]
lwgeom_inspect: serialized@%p", args=0xbffbe0e4 "�\030]")
     at vsprintf.c:121
#2  0x00583dd7 in pg_notice (fmt=0x5d17d0 "[%s:%s:%d] lwgeom_inspect:  
serialized@%p",
ap=0xbffbe0e4 "�\030]") at lwgeom_pg.c:83
#3  0x005bd9da in lwnotice (fmt=0x5d17d0 "[%s:%s:%d] lwgeom_inspect:  
serialized@%p")
at lwutil.c:59
#4  0x005b5ab3 in lwgeom_inspect (serialized_form=0xb5a5901c
"�I\\\233I�}�H_v\233I���H�\v") at lwgeom_api.c:929
#5  0x00596fc7 in LWGEOM_area_polygon (fcinfo=0xbffbe1c8) at  
lwgeom_functions_basic.c:324
#6  0x0815b786 in ExecMakeFunctionResult (fcache=0x851a790,  
econtext=0x851a720,
isNull=0x851b270 "", isDone=0x851b280) at execQual.c:1351
#7  0x0815bb98 in ExecEvalFunc (fcache=0x851a790, econtext=0x851a720,
isNull=0x851b270 "", isDone=0x851b280) at execQual.c:1753
#8  0x0815994a in ExecProject (projInfo=0x851b188, isDone=0xbffbe498) at  
execQual.c:4601
#9  0x0815f95c in ExecScan (node=0x851a698, accessMtd=0x8169e5a <SeqNext>)  
at
execScan.c:143
#10 0x08169e58 in ExecSeqScan (node=0x851a698) at nodeSeqscan.c:130
#11 0x08159273 in ExecProcNode (node=0x851a698) at execProcnode.c:334
#12 0x0816adfd in ExecLimit (node=0x851a588) at nodeLimit.c:89
#13 0x0815936a in ExecProcNode (node=0x851a588) at execProcnode.c:410
#14 0x0815829a in ExecutorRun (queryDesc=0x8519f18,  
direction=ForwardScanDirection,
count=0) at execMain.c:1248
#15 0x081e8b0a in PortalRunSelect (portal=0x8511128, forward=<value  
optimized out>,
count=0, dest=0x8353050) at pquery.c:943
#16 0x081e9beb in PortalRun (portal=0x8511128, count=2147483647,  
isTopLevel=1 '\001',
dest=0x8353050, altdest=0x8353050, completionTag=0xbffbe73a "")
     at pquery.c:769
#17 0x081e54d6 in exec_simple_query (query_string=0x84e1218 "select  
st_area(the_geom)
from va limit 1;\n") at postgres.c:986
#18 0x081e6bb1 in PostgresMain (argc=2, argv=<value optimized out>,
username=0x847ee98 "postgres") at postgres.c:3572
#19 0x08177a5a in main (argc=3, argv=Cannot access memory at address 0x4
) at main.c:186




-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


More information about the postgis-devel mailing list