(gdb) bt #0 0xb7cb917d in fclose () from /lib/i686/libc.so.6 #1 0xb7756f10 in custom_log (cdr=0xc70c290) at cdr_custom.c:130 #2 0x08080af1 in post_cdr (cdr=0xc70c290) at cdr.c:1003 #3 0x080811b6 in ast_cdr_detach (cdr=0xc70c290) at cdr.c:1170 #4 0x080857e0 in ast_hangup (chan=0xc70bda0) at channel.c:1493 #5 0x080d5441 in __ast_pbx_run (c=0xc70bda0) at pbx.c:3429 #6 0x080d56fb in pbx_thread (data=0xc70bda0) at pbx.c:3519 #7 0x08118504 in dummy_start (data=0xc70c7b0) at utils.c:857 #8 0xb7de5462 in start_thread () from /lib/i686/libpthread.so.0 #9 0xb7d3282e in clone () from /lib/i686/libc.so.6 (gdb) bt full #0 0xb7cb917d in fclose () from /lib/i686/libc.so.6 No symbol table info available. #1 0xb7756f10 in custom_log (cdr=0xc70c290) at cdr_custom.c:130 buf = "\"\"Pavel Jezek\" <324>\",\"324\",\"324\",\"from-bill\",\"SIP/ipbx-gw-0c707a68\",\"Skinny/324@PJ3-23\",\"Congestion\",\"\",\"2008-01-14 18:51:53\",\"1970-01-01 01:00:00\",\"2008-01-14 18:51:53\",\"0\",\"0\",\"FAILED\",\"DOCUMENTATI"... dummy = {tech = 0x0, tech_pvt = 0x0, __field_mgr_pool = 0x0, name = 0x0, language = 0x0, musicclass = 0x0, accountcode = 0x0, call_forward = 0x0, uniqueid = 0x0, __field_mgr = {size = 0, used = 0}, fds = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, music_state = 0x0, generatordata = 0x0, generator = 0x0, _bridge = 0x0, masq = 0x0, masqr = 0x0, cdrflags = 0, _softhangup = 0, whentohangup = 0, blocker = 0, lock_dont_use = {__data = {__lock = 0, __count = 0, __owner = 0, __kind = 0, __nusers = 0, {__spins = 0, __list = { __next = 0x0}}}, __size = '\0' , __align = 0}, blockproc = 0x0, appl = 0x0, data = 0x0, fdno = 0, sched = 0x0, streamid = 0, stream = 0x0, vstreamid = 0, vstream = 0x0, oldwriteformat = 0, timingfd = 0, timingfunc = 0, timingdata = 0x0, _state = AST_STATE_DOWN, rings = 0, cid = {cid_dnid = 0x0, cid_num = 0x0, cid_name = 0x0, cid_ani = 0x0, cid_rdnis = 0x0, cid_pres = 0, cid_ani2 = 0, cid_ton = 0, cid_tns = 0}, dtmfq = '\0' , dtmff = {frametype = 0, subclass = 0, datalen = 0, samples = 0, mallocd = 0, mallocd_hdr_len = 0, offset = 0, src = 0x0, data = 0x0, delivery = {tv_sec = 0, tv_usec = 0}, frame_list = {next = 0x0}, has_timing_info = 0, ts = 0, len = 0, seqno = 0}, context = '\0' , exten = '\0' , priority = 0, macrocontext = '\0' , macroexten = '\0' , macropriority = 0, dialcontext = '\0' , pbx = 0x0, amaflags = 0, cdr = 0xc70c290, adsicpe = AST_ADSI_UNKNOWN, zone = 0x0, monitor = 0x0, insmpl = 0, outsmpl = 0, fin = 0, fout = 0, hangupcause = 0, varshead = {first = 0x0, last = 0x0}, callgroup = 0, pickupgroup = 0, flags = 0, transfercapability = 0, readq = {first = 0x0, last = 0x0}, alertpipe = {0, 0}, nativeformats = 0, readformat = 0, writeformat = 0, writetrans = 0x0, readtrans = 0x0, rawreadformat = 0, rawwriteformat = 0, audiohooks = 0x0, chan_list = {next = 0x0}, jb = {conf = {flags = 0, max_size = 0, resync_threshold = 0, impl = '\0' }, impl = 0x0, jbobj = 0x0, timebase = { tv_sec = 0, tv_usec = 0}, next = 0, last_format = 0, logfile = 0x0, flags = 0}, emulate_dtmf_digit = 0 '\0', emulate_dtmf_duration = 0, dtmf_tv = {tv_sec = 0, tv_usec = 0}, datastores = {first = 0x0, last = 0x0}, epfd = 0, epfd_data = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, visible_indication = 0} __PRETTY_FUNCTION__ = "custom_log" #2 0x08080af1 in post_cdr (cdr=0xc70c290) at cdr.c:1003 chan = 0xc70c3d0 "SIP/ipbx-gw-0c707a68" i = (struct ast_cdr_beitem *) 0x81d5510 __PRETTY_FUNCTION__ = "post_cdr" #3 0x080811b6 in ast_cdr_detach (cdr=0xc70c290) at cdr.c:1170 newtail = (struct ast_cdr_batch_item *) 0x0 curr = 0 __PRETTY_FUNCTION__ = "ast_cdr_detach" #4 0x080857e0 in ast_hangup (chan=0xc70bda0) at channel.c:1493 res = 0 cdr = (struct ast_cdr *) 0xc70c290 __PRETTY_FUNCTION__ = "ast_hangup" #5 0x080d5441 in __ast_pbx_run (c=0xc70bda0) at pbx.c:3429 found = 1 res = -1 autoloopflag = 0 error = 1 __PRETTY_FUNCTION__ = "__ast_pbx_run" #6 0x080d56fb in pbx_thread (data=0xc70bda0) at pbx.c:3519 c = (struct ast_channel *) 0xc70bda0 #7 0x08118504 in dummy_start (data=0xc70c7b0) at utils.c:857 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {-1210105868, 0, -1222263920, -1222265912, 1354757655, 953196393}, __mask_was_saved = 0}}, __pad = {0xb725b480, 0x0, 0x0, 0xb7d9ee70}} __cancel_routine = (void (*)(void *)) 0x806caba __cancel_arg = (void *) 0xb725bb90 not_first_call = 0 ret = (void *) 0xb7d9d274 a = {start_routine = 0x80d56e4 , data = 0xc70bda0, name = 0xc70c7c0 "pbx_thread", ' ' , "started at [ 3540] pbx.c ast_pbx_start()"} #8 0xb7de5462 in start_thread () from /lib/i686/libpthread.so.0 No symbol table info available. #9 0xb7d3282e in clone () from /lib/i686/libc.so.6 No symbol table info available.