Core was generated by `asterisk -vvv -c'. Program terminated with signal 11, Segmentation fault. (gdb) bt #0 0xb7cc717d in fclose () from /lib/i686/libc.so.6 #1 0xb6c95758 in custom_log (cdr=0x828e6d0) at cdr_custom.c:130 #2 0x08084401 in post_cdr (cdr=0x828e6d0) at cdr.c:1003 #3 0x080851bb in ast_cdr_detach (cdr=0x828e6d0) at cdr.c:1170 #4 0x0808b044 in ast_hangup (chan=0xb5a0cb50) at channel.c:1493 #5 0x080e8a85 in __ast_pbx_run (c=0xb5a0cb50) at pbx.c:3428 #6 0x080e8dbf in pbx_thread (data=0xb5a0cb50) at pbx.c:3518 #7 0x08130518 in dummy_start (data=0xb5a0c730) at utils.c:857 #8 0xb7df3462 in start_thread () from /lib/i686/libpthread.so.0 #9 0xb7d4082e in clone () from /lib/i686/libc.so.6 (gdb) bt full #0 0xb7cc717d in fclose () from /lib/i686/libc.so.6 No symbol table info available. #1 0xb6c95758 in custom_log (cdr=0x828e6d0) at cdr_custom.c:130 buf = "\"\"Pavel Jezek\" <324>\",\"324\",\"777\",\"from-bill\",\"IAX2/bill-8\",\"SIP/777-082833f8\",\"Dial\",\"SIP/777,20,tT\",\"2008-01-05 13:27:26\",\"2008-01-05 13:27:30\",\"2008-01-05 13:29:16\",\"110\",\"106\",\"ANSWERED\",\"DOCUMENT"... 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 = {mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __kind = 0, __nusers = 0, {__spins = 0, __list = {__next = 0x0}}}, __size = '\0' , __align = 0}, track = 0, file = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lineno = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, reentrancy = 0, func = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, thread = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, reentr_mutex = {__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 = 0x828e6d0, 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 0x08084401 in post_cdr (cdr=0x828e6d0) at cdr.c:1003 chan = 0x828e810 "IAX2/bill-8" i = (struct ast_cdr_beitem *) 0x8220068 __PRETTY_FUNCTION__ = "post_cdr" #3 0x080851bb in ast_cdr_detach (cdr=0x828e6d0) at cdr.c:1170 newtail = (struct ast_cdr_batch_item *) 0x0 curr = 0 __PRETTY_FUNCTION__ = "ast_cdr_detach" #4 0x0808b044 in ast_hangup (chan=0xb5a0cb50) at channel.c:1493 res = 0 cdr = (struct ast_cdr *) 0x828e6d0 __PRETTY_FUNCTION__ = "ast_hangup" #5 0x080e8a85 in __ast_pbx_run (c=0xb5a0cb50) at pbx.c:3428 found = 1 res = -1 autoloopflag = 0 error = 1 __PRETTY_FUNCTION__ = "__ast_pbx_run" #6 0x080e8dbf in pbx_thread (data=0xb5a0cb50) at pbx.c:3518 c = (struct ast_channel *) 0xb5a0cb50 #7 0x08130518 in dummy_start (data=0xb5a0c730) at utils.c:857 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {-1210048524, 0, -1234674800, -1234676792, -164573384, 10371652}, __mask_was_saved = 0}}, __pad = {0xb6685480, 0x0, 0x0, 0xb7dace70}} __cancel_routine = (void (*)(void *)) 0x806d3f0 __cancel_arg = (void *) 0xb6685b90 not_first_call = 0 ret = (void *) 0xb7d7ef94 a = {start_routine = 0x80e8da8 , data = 0xb5a0cb50, name = 0xb5a0d4d8 "pbx_thread", ' ' , "started at [ 3539] pbx.c ast_pbx_start()"} lock_info = (struct thr_lock_info *) 0x824df30 mutex_attr = {__size = "\001\000\000", __align = 1} #8 0xb7df3462 in start_thread () from /lib/i686/libpthread.so.0 No symbol table info available. #9 0xb7d4082e in clone () from /lib/i686/libc.so.6 No symbol table info available. (gdb) quit