#0 0xb7b82b5d in SQLCloseCursor () from /usr/lib/libodbc.so.1 (gdb) bt full #0 0xb7b82b5d in SQLCloseCursor () from /usr/lib/libodbc.so.1 No symbol table info available. #1 0xb61b7510 in acf_odbc_read (chan=0xac9dac00, cmd=0xb05dbb30 "ODBC_SprawdzUprawnieniaSubProjekt", s=0xb05dbb52 "03", buf=0xb05dbbf0 "", len=4096) at func_odbc.c:516 res1 = 0 obj = (struct odbc_obj *) 0x99ae3a0 query = (struct acf_odbc_query *) 0x9d46e80 varname = "ARG5\000\033\bI\235---]-" rowcount = "0\000\000\000\000\000\000\000\000\000\000" colnames = (struct ast_str *) 0xa3f28d0 res = 100 x = 5 y = 135177575 buflen = 0 escapecommas = 1 rowlimit = 1 dsn = 0 bogus_chan = 0 args = {argc = 5, argv = 0xb05db8fc, field = {0xb05dbb52 "03", 0xb05dbb55 "07", 0xb05dbb58 "01", 0xb05dbb5b "13", 0xb05dbb5e "110", 0x0 }} stmt = (SQLHSTMT) 0xa107690 colcount = 6 indicator = 25 collength = -20387 resultset = (struct odbc_datastore *) 0x0 row = (struct odbc_datastore_row *) 0x0 sql = (struct ast_str *) 0x9fc3040 status = 0xb61bbdae "NODATA" __PRETTY_FUNCTION__ = "acf_odbc_read" __FUNCTION__ = "acf_odbc_read" #2 0x08102c63 in ast_func_read (chan=0xac9dac00, function=0xb05dcc00 "ODBC_SprawdzUprawnieniaSubProjekt(03,07,01,13,110)", workspace=0xb05dbbf0 "", len=4096) at pbx.c:3371 res = -1336034320 u = (struct ast_module_user *) 0x9b48390 copy = 0xb05dbb30 "ODBC_SprawdzUprawnieniaSubProjekt" args = 0xb05dbb52 "03" acfptr = (struct ast_custom_function *) 0x9d42ee8 __PRETTY_FUNCTION__ = "ast_func_read" #3 0x08103176 in pbx_substitute_variables_helper_full (c=0xac9dac00, headp=0xac9dad18, cp1=0xa0fcca8 "ARRAY(ODBC_PrefixOK,ODBC_Gateway,ODBC_ExtCallerID,ODBC_ExtClir,ODBC_ExtNOA,ODBC_ExtNumPrefix)=\"${ODBC_SprawdzUprawnieniaSubProjekt(${biuro},${projektGL},${projektPOD},${team},${typ})}\"", cp2=0xb05e0ef7 "", count=8096, used=0xb05ded04) at pbx.c:3506 cp4 = 0xb05decc8 "\b-]-47\020\b" tmp = 0xa0fcca8 "ARRAY(ODBC_PrefixOK,ODBC_Gateway,ODBC_ExtCallerID,ODBC_ExtClir,ODBC_ExtNOA,ODBC_ExtNumPrefix)=\"${ODBC_SprawdzUprawnieniaSubProjekt(${biuro},${projektGL},${projektPOD},${team},${typ})}\"" whereweare = 0xa0fcd5f "\"" orig_cp2 = 0xb05e0e98 "ARRAY(ODBC_PrefixOK,ODBC_Gateway,ODBC_ExtCallerID,ODBC_ExtClir,ODBC_ExtNOA,ODBC_ExtNumPrefix)=\"" length = 0 offset = 0 offset2 = 2147483647 isfunction = 1 workspace = 0xb05dbbf0 "" ltmp = 0xb05dcc00 "ODBC_SprawdzUprawnieniaSubProjekt(03,07,01,13,110)" var = 0xb05ddc10 "ODBC_SprawdzUprawnieniaSubProjekt(${biuro},${projektGL},${projektPOD},${team},${typ})" nextvar = 0xa0fcd07 "${ODBC_SprawdzUprawnieniaSubProjekt(${biuro},${projektGL},${projektPOD},${team},${typ})}\"" nextexp = 0x0 nextthing = 0xa0fcd07 "${ODBC_SprawdzUprawnieniaSubProjekt(${biuro},${projektGL},${projektPOD},${team},${typ})}\"" vars = 0xb05dcc00 "ODBC_SprawdzUprawnieniaSubProjekt(03,07,01,13,110)" vare = 0xa0fcd5f "\"" pos = 95 brackets = 0 ---Type to continue, or q to quit--- needsub = 5 len = 85 __PRETTY_FUNCTION__ = "pbx_substitute_variables_helper_full" __func__ = "pbx_substitute_variables_helper_full" #4 0x08103734 in pbx_substitute_variables_helper (c=0xac9dac00, cp1=0xa0fcca8 "ARRAY(ODBC_PrefixOK,ODBC_Gateway,ODBC_ExtCallerID,ODBC_ExtClir,ODBC_ExtNOA,ODBC_ExtNumPrefix)=\"${ODBC_SprawdzUprawnieniaSubProjekt(${biuro},${projektGL},${projektPOD},${team},${typ})}\"", cp2=0xb05e0e98 "ARRAY(ODBC_PrefixOK,ODBC_Gateway,ODBC_ExtCallerID,ODBC_ExtClir,ODBC_ExtNOA,ODBC_ExtNumPrefix)=\"", count=8191) at pbx.c:3601 used = 2958962860 #5 0x0810381b in pbx_substitute_variables (passdata=0xb05e0e98 "ARRAY(ODBC_PrefixOK,ODBC_Gateway,ODBC_ExtCallerID,ODBC_ExtClir,ODBC_ExtNOA,ODBC_ExtNumPrefix)=\"", datalen=8192, c=0xac9dac00, e=0xa297268) at pbx.c:3626 tmp = 0xa0fcd07 "${ODBC_SprawdzUprawnieniaSubProjekt(${biuro},${projektGL},${projektPOD},${team},${typ})}\"" #6 0x08103a63 in pbx_extension_helper (c=0xac9dac00, con=0x0, context=0xac9dae74 "ODBC-internal", exten=0xac9daec4 "03070113006942781107619", priority=19, label=0x0, callerid=0xaca301c0 "32143", action=E_SPAWN, found=0xb05e3300, combined_find_spawn=1) at pbx.c:3688 e = (struct ast_exten *) 0xa297268 app = (struct ast_app *) 0x9a1c998 res = -1404537432 q = {incstack = {0x9d9df48 "ODBC-internal", 0xac7cdb48 "kolejki", 0xaf4f2cb0 "dect", 0x0 }, stacklen = 3, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x9fe9dee "ODBC2"} passdata = "ARRAY(ODBC_PrefixOK,ODBC_Gateway,ODBC_ExtCallerID,ODBC_ExtClir,ODBC_ExtNOA,ODBC_ExtNumPrefix)=\"\000\0001010,500919900,prohib,N,\"", '\0' , "\230&^-m0\020\b-\025^-\215-#-", '\0' , "CDR(trunk)\000)\000\000\000)", '\0' , "#\214?", '\0' , "@\036"... matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #7 0x081051ae in ast_spawn_extension (c=0xac9dac00, context=0xac9dae74 "ODBC-internal", exten=0xac9daec4 "03070113006942781107619", priority=19, callerid=0xaca301c0 "32143", found=0xb05e3300, combined_find_spawn=1) at pbx.c:4170 No locals. #8 0x08105861 in __ast_pbx_run (c=0xac9dac00, args=0x0) at pbx.c:4264 digit = 0 invalid = 0 timeout = 0 dst_exten = '\0' , "\0243^-\0242^-(3^-\213]\r---?\000\000\000\000--?\000\000\000\000\2242^-\0243^-\000\000\000\000\0303^-T3^-\000\000\000\000X3^- 3^-$3^-\\3^-", '\0' , "\020\000\000" pos = 0 found = 1 res = 0 autoloopflag = 0 error = 0 __PRETTY_FUNCTION__ = "__ast_pbx_run" #9 0x08106c97 in pbx_thread (data=0xac9dac00) at pbx.c:4551 c = (struct ast_channel *) 0xac9dac00 #10 0x08158d95 in dummy_start (data=0xaca19ca8) at utils.c:968 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {-1210626060, 0, 0, -1336003640, -1469661026, 1058720750}, __mask_was_saved = 0}}, __pad = {0xb05e3490, 0x0, 0xb1d29168, 0xb7dec82e}} __cancel_routine = (void (*)(void *)) 0x8077793 __cancel_arg = (void *) 0xb05e3b90 not_first_call = 0 ret = (void *) 0xb7ea1d7e a = {start_routine = 0x8106c78 , data = 0xac9dac00, name = 0xaca25b38 "pbx_thread", ' ' , "started at [ 4572] pbx.c ast_pbx_start()"} #11 0xb7d654c0 in start_thread () from /lib/i686/cmov/libpthread.so.0 No symbol table info available. #12 0xb7e5c61e in clone () from /lib/i686/cmov/libc.so.6 No symbol table info available. (gdb) bt #0 0xb7b82b5d in SQLCloseCursor () from /usr/lib/libodbc.so.1 #1 0xb61b7510 in acf_odbc_read (chan=0xac9dac00, cmd=0xb05dbb30 "ODBC_SprawdzUprawnieniaSubProjekt", s=0xb05dbb52 "03", buf=0xb05dbbf0 "", len=4096) at func_odbc.c:516 #2 0x08102c63 in ast_func_read (chan=0xac9dac00, function=0xb05dcc00 "ODBC_SprawdzUprawnieniaSubProjekt(03,07,01,13,110)", workspace=0xb05dbbf0 "", len=4096) at pbx.c:3371 #3 0x08103176 in pbx_substitute_variables_helper_full (c=0xac9dac00, headp=0xac9dad18, cp1=0xa0fcca8 "ARRAY(ODBC_PrefixOK,ODBC_Gateway,ODBC_ExtCallerID,ODBC_ExtClir,ODBC_ExtNOA,ODBC_ExtNumPrefix)=\"${ODBC_SprawdzUprawnieniaSubProjekt(${biuro},${projektGL},${projektPOD},${team},${typ})}\"", cp2=0xb05e0ef7 "", count=8096, used=0xb05ded04) at pbx.c:3506 #4 0x08103734 in pbx_substitute_variables_helper (c=0xac9dac00, cp1=0xa0fcca8 "ARRAY(ODBC_PrefixOK,ODBC_Gateway,ODBC_ExtCallerID,ODBC_ExtClir,ODBC_ExtNOA,ODBC_ExtNumPrefix)=\"${ODBC_SprawdzUprawnieniaSubProjekt(${biuro},${projektGL},${projektPOD},${team},${typ})}\"", cp2=0xb05e0e98 "ARRAY(ODBC_PrefixOK,ODBC_Gateway,ODBC_ExtCallerID,ODBC_ExtClir,ODBC_ExtNOA,ODBC_ExtNumPrefix)=\"", count=8191) at pbx.c:3601 #5 0x0810381b in pbx_substitute_variables (passdata=0xb05e0e98 "ARRAY(ODBC_PrefixOK,ODBC_Gateway,ODBC_ExtCallerID,ODBC_ExtClir,ODBC_ExtNOA,ODBC_ExtNumPrefix)=\"", datalen=8192, c=0xac9dac00, e=0xa297268) at pbx.c:3626 #6 0x08103a63 in pbx_extension_helper (c=0xac9dac00, con=0x0, context=0xac9dae74 "ODBC-internal", exten=0xac9daec4 "03070113006942781107619", priority=19, label=0x0, callerid=0xaca301c0 "32143", action=E_SPAWN, found=0xb05e3300, combined_find_spawn=1) at pbx.c:3688 #7 0x081051ae in ast_spawn_extension (c=0xac9dac00, context=0xac9dae74 "ODBC-internal", exten=0xac9daec4 "03070113006942781107619", priority=19, callerid=0xaca301c0 "32143", found=0xb05e3300, combined_find_spawn=1) at pbx.c:4170 #8 0x08105861 in __ast_pbx_run (c=0xac9dac00, args=0x0) at pbx.c:4264 #9 0x08106c97 in pbx_thread (data=0xac9dac00) at pbx.c:4551 #10 0x08158d95 in dummy_start (data=0xaca19ca8) at utils.c:968 #11 0xb7d654c0 in start_thread () from /lib/i686/cmov/libpthread.so.0 #12 0xb7e5c61e in clone () from /lib/i686/cmov/libc.so.6 (gdb)