第三方xbsa备份时调BSAGetEnvironment()之后报错:ASSERT: file bar_unix.c line 1318 - contact product support
为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【GBase版本】: GBase8sV8.8_3.6.3_3X1_1_e10e03_RHEL6_x86_64
【操作系统】: x86 centos7
【CPU】: 虚拟机 8核
【问题描述】*: 用自己开发的xbsa.so,备份命令“onbar -b -L 0”,日志显示调完BSAGetEnvironment()之后assert报错。【同一个so,备份恢复informix是可以的,而且看informix的dbug.log里也没有调BSAGetEnvironment()】。
bar_act.log:
2025-05-20 15:38:07 11947 11945 Working with 1.1.1 as generic storage manager.
2025-05-20 15:38:07 11947 11945 Successfully connected to Storage Manager.
2025-05-20 15:38:07* 11947 11945 (-43087) WARNING: BAR_TIMEOUT The storage manager progress might be stalled for
at least 18 minutes.
2025-05-20 15:58:42* 11947 11945 ASSERT: file bar_unix.c line 1318 - contact product support
2025-05-20 15:58:42* 11947 11945 See also: /opt/gbase/tmp/core
================================================
bar_dbug.log:
2025-05-20 16:17:58 11550 11548 bar_get_hostname: enter
2025-05-20 16:17:58 11550 11548 bar_get_hostname: input new_svr gbaseserver
2025-05-20 16:17:58 11550 11548 bar_get_hostname: output hostname 192.168.100.131
2025-05-20 16:17:58 11550 11548 bar_get_hostname: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 bar_get_fname: enter
2025-05-20 16:17:58 11550 11548 bar_get_fname: output fname: /opt/gbase/etc/ixbar.33
2025-05-20 16:17:58 11550 11548 bar_get_fname: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 bar_get_fname: enter
2025-05-20 16:17:58 11550 11548 bar_get_fname: output fname: /opt/gbase/etc/oncfg_gbaseserver.33
2025-05-20 16:17:58 11550 11548 bar_get_fname: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 bar_get_fname: enter
2025-05-20 16:17:58 11550 11548 bar_get_fname: output fname: /opt/gbase/etc/sqlhosts.gbaseserver
2025-05-20 16:17:58 11550 11548 bar_get_fname: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 setting progress_freq to 0
2025-05-20 16:17:58 11550 11548 setting alarm_freq to 240
2025-05-20 16:17:58 11550 11548 setting bar_timeout to 600
2025-05-20 16:17:58 11550 11548 read_config:server gbaseserver:33 max_backup 1 retry 1 actfd 3
2025-05-20 16:17:58 11550 11548 debugfd 4 debug 9 bootfd -1 log_blks 10000
2025-05-20 16:17:58 11550 11548 buf size 65536 buf count 20 ltapedev /opt/gbase/ltapedev
2025-05-20 16:17:58 11550 11548 backup filter , restore filter
2025-05-20 16:17:58 11550 11548 read_config: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 bar_srv_status: enter
2025-05-20 16:17:58 11550 11548 bar_srv_status: return 5 (0x05)
2025-05-20 16:17:58 11550 11548 bar_main: server status 5
2025-05-20 16:17:58 11550 11548 do_args: enter
2025-05-20 16:17:58 11550 11548 do_args: input status 5 argc 4 argv 0x7ffdd9226e40
2025-05-20 16:17:58 11550 11548 do_args: got command, -b
2025-05-20 16:17:58 11550 11548 do_args: got command, -L
2025-05-20 16:17:58 11550 11548 do_args: got command option, 0
2025-05-20 16:17:58 11550 11548 do_args: workflags 3 (0x3)
2025-05-20 16:17:58 11550 11548 do_args: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 bar_siginit: enter
2025-05-20 16:17:58 11550 11548 bar_siginit: return
2025-05-20 16:17:58 11550 11548 bar_alarm: enter
2025-05-20 16:17:58 11550 11548 bar_alarm: input 240 seconds
2025-05-20 16:17:58 11550 11548 bar_alarm: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 bar_is_drsec: enter
2025-05-20 16:17:58 11550 11548 bar_is_drsec: Server type '0'
2025-05-20 16:17:58 11550 11548 bar_is_drsec: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 bar_exec: enter
2025-05-20 16:17:58 11550 11548 BSAQueryApi: enter
2025-05-20 16:17:58 11550 11548 bar_loadXBSA: enter
2025-05-20 16:17:58 11550 11548 bar_loadXBSA: on entry shl_lib_open = 0
2025-05-20 16:17:58 11550 11548 bar_loadXBSA: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 BSAQueryApiVersion: enter
2025-05-20 16:17:58 11550 11548 bar_alarm: enter
2025-05-20 16:17:58 11550 11548 bar_alarm: input 240 seconds
2025-05-20 16:17:58 11550 11548 bar_alarm: return 240 (0xf0)
2025-05-20 16:17:58 11550 11548 BSAQueryApiVersion: return
2025-05-20 16:17:58 11550 11548 barQueryApi: BSA version 1.1.1
2025-05-20 16:17:58 11550 11548 BSAGetLastError: enter
2025-05-20 16:17:58 11550 11548 bar_alarm: enter
2025-05-20 16:17:58 11550 11548 bar_alarm: input 240 seconds
2025-05-20 16:17:58 11550 11548 bar_alarm: return 240 (0xf0)
2025-05-20 16:17:58 11550 11548 BSAGetLastError: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 BSAQueryServiceProvider: enter
2025-05-20 16:17:58 11550 11548 bar_alarm: enter
2025-05-20 16:17:58 11550 11548 bar_alarm: input 240 seconds
2025-05-20 16:17:58 11550 11548 bar_alarm: return 240 (0xf0)
2025-05-20 16:17:58 11550 11548 BSAQueryServiceProvider: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 barQueryApi: set ccb->bar_sm to 1.1.1
2025-05-20 16:17:58 11550 11548 macro: set ccb->bar_sm_code to 0
2025-05-20 16:17:58 11550 11548 barQueryApi: set ccb->bsa_ses_style to 0
2025-05-20 16:17:58 11550 11548 barBsaInit: enter
2025-05-20 16:17:58 11550 11548 initObjDesc: enter
2025-05-20 16:17:58 11550 11548 initObjDesc: input: obj_desc is NULL
2025-05-20 16:17:58 11550 11548 initObjOwner: enter
2025-05-20 16:17:58 11550 11548 initObjOwner:bsa owner GBASEDBT app owner
2025-05-20 16:17:58 11550 11548 initObjOwner: return
2025-05-20 16:17:58 11550 11548 buildObjName: enter
2025-05-20 16:17:58 11550 11548 buildObjName: obj_desc is NULL
2025-05-20 16:17:58 11550 11548 buildObjName: set server_name to gbaseserver
2025-05-20 16:17:58 11550 11548 buildObjName: output objectSpaceName /gbaseserver, pathName /gbaseserver/*
2025-05-20 16:17:58 11550 11548 buildObjName: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 initObjDesc: output: object owner name createTime
2025-05-20 16:17:58 11550 11548 initObjDesc: output: GBASEDBT /gbaseserver /gbaseserver/* 0 0 0 0 0 0
2025-05-20 16:17:58 11550 11548 initObjDesc: output: copytype copyid restoreOrder size resource type status desc objectInfo
2025-05-20 16:17:58 11550 11548 initObjDesc: output: 3 0 0 0 0 0 0 4 1
2025-05-20 16:17:58 11550 11548 initObjDesc: return
2025-05-20 16:17:58 11550 11548 barBsaInit: envtab[0] ISM_SERVER=192.168.100.131
2025-05-20 16:17:58 11550 11548 barBsaInit: envtab[1] ISM_DATA_VOLUME_POOL=ISMData
2025-05-20 16:17:58 11550 11548 barBsaInit: envtab[2] ISM_LOG_VOLUME_POOL=ISMLogs
2025-05-20 16:17:58 11550 11548 barBsaInit: envtab[3] ISM_SAVESET_NAME=GBASEDBT:/gbaseserver/*
2025-05-20 16:17:58 11550 11548 BSAInit: enter
2025-05-20 16:17:58 11550 11548 BSAInit: input tokenPtr owner GBASEDBT
2025-05-20 16:17:58 11550 11548 bar_alarm: enter
2025-05-20 16:17:58 11550 11548 bar_alarm: input 240 seconds
2025-05-20 16:17:58 11550 11548 bar_alarm: return 240 (0xf0)
2025-05-20 16:17:58 11550 11548 BSAInit: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 barBsaInit: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 barGetEnvironment: enter
2025-05-20 16:17:58 11550 11548 initObjOwner: enter
2025-05-20 16:17:58 11550 11548 initObjOwner:bsa owner GBASEDBT app owner
2025-05-20 16:17:58 11550 11548 initObjOwner: return
2025-05-20 16:17:58 11550 11548 BSAGetEnvironment: enter
2025-05-20 16:17:58 11550 11548 bar_alarm: enter
2025-05-20 16:17:58 11550 11548 bar_alarm: input 240 seconds
2025-05-20 16:17:58 11550 11548 bar_alarm: return 240 (0xf0)
2025-05-20 16:17:58 11550 11548 BSAGetEnvironment: return 0 (0x00)
2025-05-20 16:17:58 11550 11548 barGetEnvironment: return 0 (0x00)
2025-05-20 16:17:58* 11550 11548 bar_sighdlr: enter
2025-05-20 16:17:58* 11550 11548 bar_sighdlr: input signo: 11
2025-05-20 16:17:58* 11550 11548 get_pid: enter
2025-05-20 16:17:58* 11550 11548 getpid: return 11550 (0x2d1e)
2025-05-20 16:17:58* 11550 11548 barEndTxn: enter
2025-05-20 16:17:58* 11550 11548 barEndTxn: return 0 (0x00)
2025-05-20 16:17:58* 11550 11548 barTerminate: enter
2025-05-20 16:17:58* 11550 11548 BSATerminate: enter
2025-05-20 16:17:58* 11550 11548 bar_alarm: enter
2025-05-20 16:17:58* 11550 11548 bar_alarm: input 240 seconds
2025-05-20 16:17:58* 11550 11548 bar_alarm: return 240 (0xf0)
2025-05-20 16:17:58* 11550 11548 BSATerminate: return 0 (0x00)
2025-05-20 16:17:58* 11550 11548 barTerminate: return 141 (0x8d)
2025-05-20 16:17:58* 11550 11548 bar_debug: enter
2025-05-20 16:17:58* 11550 11548 bar_debug: Called from file bar_unix.c line 1318
评论
BTW:指的是你xbsa需要的环境变量。
热门帖子
- 12025-12-01浏览数:182759
- 22023-05-09浏览数:25052
- 42023-09-25浏览数:18521
- 52020-05-11浏览数:17526