已开启
ST_GeoSOTGrid 段错误 #25
AtomGit-Bot创建于  2022年12月12日
AtomGit-Bot
2022年12月12日 创建

【标题描述】:
【测试类型:SQL功能/存储功能/接口功能/工具功能/性能/并发/压力长稳/故障注入/安全/资料/编码规范】
【测试版本:2.0.0】 问题描述

【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):

【测试环境】(单机/1主x备x级联备):

【被测功能】:

【测试类型】:

【数据库版本】(查询命令: gaussdb -V):

【预置条件】:

【操作步骤】(请填写详细的操作步骤):

  1. CREATE EXTENSION postgis;
    CREATE EXTENSION postgis_raster;
    CREATE EXTENSION yukon_geomodel;
    CREATE EXTENSION yukon_geogridcoder;
    CREATE EXTENSION postgis_sfcgal;
    select yukon_version();
  2. SELECT ST_GeoSOTGrid(ST_GeomFromText('POINT(116.315 39.91027777777778)', 4490), 15);

【预期输出】:

【实际输出】:段错误

【原因分析】:in gsg_geosotgrid(fcinfo=0x7fe1530b3d0) at ST_GeoSOTGrid.cpp:282
输入图片说明
wkb是通过lwalloc申请的,释放的时候用的delete,应用lwfree。

【日志信息】(请附上日志文件、截图、coredump信息):

【测试代码】:

likedislike
AAtomGit-Bot
2022年12月12日 创建了缺陷
opengauss-bot
opengauss-bot成员
2022年12月12日 评论:

Hey @zhangchao_1018, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.

likedislike
AAtomGit-Bot
2022年12月12日 修改了描述
zhouqinsmzhouqinsm
2022年12月23日 将负责人设置为yuchj
AtomGit-Bot
2022年12月23日 评论:

已修复,在后续放出的版本中会解决这个问题

likedislike
AAtomGit-Bot
2022年12月23日 将任务状态从 待办的 修改为已确认
AAtomGit-Bot
2022年12月23日 将任务状态从 已确认 修改为修复中
opengauss_botopengauss_bot成员
2025年4月27日 重新打开了 issue
opengauss_botopengauss_bot成员
3月20日 添加了label:sig/GIS
opengauss_botopengauss_bot成员
3月20日 添加了label:sig/Community