This happens on a reload of asterisk Parsing '/etc/asterisk/cdr_odbc.conf': Found -- Reloading module 'app_meetme.so' (MeetMe conference bridge) == Parsing '/etc/asterisk/meetme.conf': Found -- Reloading module 'app_osplookup.so' (OSP Lookup) -- Reloading module 'cdr_pgsql.so' (PostgreSQL CDR Backend) Program received signal SIGSEGV, Segmentation fault. 0xb5f31e23 in PQconninfoFree () from /usr/lib/libpq.so.4 (gdb) bt full #0 0xb5f31e23 in PQconninfoFree () from /usr/lib/libpq.so.4 No symbol table info available. #1 0xb5f31f77 in PQfinish () from /usr/lib/libpq.so.4 No symbol table info available. #2 0xb5f58d1a in my_unload_module () at cdr_pgsql.c:185 No locals. #3 0xb5f5952f in reload () at cdr_pgsql.c:336 No locals. #4 0x0805c68d in ast_module_reload (name=0xb5f59510 "\203�,\211\\$ �\032\001") at loader.c:257 m = (struct module *) 0x819e228 reloaded = 2 oldversion = 127751950 reload = (int (*)(void)) 0xb5f59510 #5 0x0809583c in handle_reload (fd=1, argc=1, argv=0xbfae6d10) at cli.c:159 x = 135392672 res = -1 #6 0x08098aeb in ast_cli_command (fd=1, s=0xffffffff
) at cli.c:1364 argv = {0x817e0d8 "reload", 0x0, 0xbfae6d38 "hm��\tn\016\b�#\024\b", 0xb7d7eed6 "\211�\213]�\211�\213u�\213}�\211�]�\220\220\220\220\220\220\220\220\220U\211�\203�\030\211}�\213E\f\213}\b\211]�\211u��\205���\201�6�\n", 0x8195538 "reload", 0x81423c8 "reload", 0x7
, 0x8179f98 ")", 0x8143aa0 "", 0xbfae6e98 ")", 0xbfae6d68 "(n���x\016\b�:\024\b\230n���#\024\b\n", 0x80e6e09 "\211C\004\203�\020\213V\020\205�\017\204\216", 0x81423c8 "reload", 0x0, 0x0, 0x0, 0x0, 0x0, 0x81492c0 "400/400,0/350,400/225,0/525", 0x81423c8 "reload", 0xbfae6e98 ")", 0xbfae6ea4 "\a", 0xbfae6e28 "(r���\024\f\b\001", 0x80e78a3 "\203�\020\203��\211�\017\204U���\213>\213]\b\211{\004�H���\215J�\211M��D\032�", 0x8143aa0 "", 0xbfae6e98 ")", 0x81423c8 "reload", 0xa
, 0xa
, 0xb7f02000 "\r\033[1;30;40m -- \033[0;37;40mReloading module 'cdr_pgsql.so' (PostgreSQL CDR Backend)\ne)\nl System))\ne mailbox has messages in a given folder.)\n\033[0;37;40m: 0;37;40m: ", 0xbfae6db4 "�m��bD׷�u��", 0xb7dc2754 "X=\001���s\001��\214<\004", 0xa
, 0xb7d75a8f "\205�x3)�\001�\205�\177�)u\020\213U\b\213zP\213rL\205�x\021\213E\020\231\001�\021�\213U\b\211rL\211zP\213E\020\203�\024^_]�\213E\b\203\b ��\211t$\b\211|$\004\213@8\211\004$�)�\004", 0x1
, 0xb7f02000 "\r\033[1;30;40m -- \033[0;37;40mReloading module 'cdr_pgsql.so' (PostgreSQL CDR Backend)\ne)\nl System))\ne mailbox has messages in a given folder.)\n\033[0;37;40m: 0;37;40m: ", 0xa
, 0x0, 0x0, 0xb7e275e0 "\204*��", 0x0, 0xbfae6ddc "�m��\210E׷\n", 0xb7d74462 "\017�ND\211�f\205�\017\225�1�\205�\017\225�\205�\017\205\203", 0xb7e275e0 "\204*� 0xb7f02000 "\r\033[1;30;40m -- \033[0;37;40mReloading module 'cdr_pgsql.so' (PostgreSQL CDR Backend)\ne)\nl System))\ne mailbox has messages in a given folder.)\n\033[0;37;40m: 0;37;40m: ", 0xa
, 0x0, 0xb7f02000 "\r\033[1;30;40m -- \033[0;37;40mReloading module 'cdr_pgsql.so' (PostgreSQL CDR Backend)\ne)\nl System))\ne mailbox has messages in a given folder.)\n\033[0;37;40m: 0;37;40m: ", 0xb7e2de40 "�l\021", 0xa
, 0x0, 0xbfae6dec "\020n��BQ׷�u��", 0xb7d74588 "9������t�\211�Z^]�\211�\215�'", 0xa
, 0xb7e275e0 "\204*� 0xbfae6e10 "(n��R�ַ�u���#\024\b\230n���n��(r���\024\f\b\001", 0xb7d75142 "�^���\211�\215�'", 0xb7e275e0 "\204*� 0xb7f02000 "\r\033[1;30;40m -- \033[0;37;40mReloading module 'cdr_pgsql.so' (PostgreSQL CDR Backend)\ne)\nl System))\ne mailbox has messages in a given folder.)\n\033[0;37;40m: 0;37;40m: ", 0xa
, 0xbfae6e28 "(r���\024\f\b\001", 0xb7e2de40 "�l\021", 0xb7e275e0 "\204*��", 0xb7b546c0 "�F���J���F��\001"} e = (struct ast_cli_entry *) 0x811eda0 x = 1 dup = 0x817e0d8 "reload" tws = 0 __PRETTY_FUNCTION__ = "ast_cli_command" #7 0x080c14cf in main (argc=2, argv=0xbfae72b4) at asterisk.c:1012 title = "Asterisk Console on 'ceres' (pid 20769)\000�I��\001\000\000\000,o��\"\006��\224K���R��\001\000\000\000\001", '\0' , "p����\000\000\000�\026��\000�ѷ����|o��\000\000\000\000 \000\000\000\202o��r���r���|o��\000\000\000\000\030r��\2019��|o��p���|o��lo��\000\000\000\000\000\000\000\000����\200q��#\000\000\000 \000\000\000\000\000\200\000����#1 SMP Tue Oc"... c = -1 filename = "/root/.asterisk_history", '\0' hostname = "ceres", '\0' tmp = "\033[1;37;40mAsterisk Ready.\n\033[0;37;40m\000q��ٳ׷����\033\000\000\000W`��(%\023\b��\f\b�\n\002\000\033\000\000\000 %\023\b(%\023\b" xarg = 0x0 x = 0 f = (FILE *) 0x81423c8 sigs = {__val = {134238211, 0 }} num = 7 is_child_of_nonroot = -1 ---Type to continue, or q to quit--- buf = 0x81423c8 "reload" runuser = 0x0 rungroup = 0x0 cp = (struct cp_state *) 0x81423c8 __PRETTY_FUNCTION__ = "main" (gdb)