All pastes #247532 Raw Edit

Someone

public text v1 · immutable
#247532 ·published 2006-11-13 16:51 UTC
rendered paste body
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 <reload>
#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 <Address 0xffffffff out of bounds>) at cli.c:1364
        argv = {0x817e0d8 "reload", 0x0, 0xbfae6d38 "hm&#65533;&#65533;\tn\016\b&#65533;#\024\b",
  0xb7d7eed6 "\211&#65533;\213]&#65533;\211&#65533;\213u&#65533;\213}&#65533;\211&#65533;]&#65533;\220\220\220\220\220\220\220\220\220U\211&#65533;\203&#65533;\030\211}&#65533;\213E\f\213}\b\211]&#65533;\211u&#65533;&#65533;\205&#65533;&#65533;&#65533;\201&#65533;6&#65533;\n", 0x8195538 "reload", 0x81423c8 "reload",
  0x7 <Address 0x7 out of bounds>, 0x8179f98 ")", 0x8143aa0 "", 0xbfae6e98 ")", 0xbfae6d68 "(n&#65533;&#65533;&#65533;x\016\b&#65533;:\024\b\230n&#65533;&#65533;&#65533;#\024\b\n", 0x80e6e09 "\211C\004\203&#65533;\020\213V\020\205&#65533;\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&#65533;&#65533;&#65533;\024\f\b\001",
  0x80e78a3 "\203&#65533;\020\203&#65533;&#65533;\211&#65533;\017\204U&#65533;&#65533;&#65533;\213>\213]\b\211{\004&#65533;H&#65533;&#65533;&#65533;\215J&#65533;\211M&#65533;&#65533;D\032&#65533;", 0x8143aa0 "", 0xbfae6e98 ")", 0x81423c8 "reload", 0xa <Address 0xa out of bounds>, 0xa <Address 0xa out of bounds>,
  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 "&#65533;m&#65533;&#65533;bD&#1527;&#65533;u&#65533;&#65533;",
  0xb7dc2754 "X=\001&#65533;&#65533;&#65533;s\001&#65533;&#65533;\214<\004", 0xa <Address 0xa out of bounds>,
  0xb7d75a8f "\205&#65533;x3)&#65533;\001&#65533;\205&#65533;\177&#65533;)u\020\213U\b\213zP\213rL\205&#65533;x\021\213E\020\231\001&#65533;\021&#65533;\213U\b\211rL\211zP\213E\020\203&#65533;\024^_]&#65533;\213E\b\203\b &#65533;&#65533;\211t$\b\211|$\004\213@8\211\004$&#65533;)&#65533;\004",
  0x1 <Address 0x1 out of bounds>,
  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 <Address 0xa out of bounds>, 0x0, 0x0, 0xb7e275e0 "\204*&#65533;&#65533;", 0x0, 0xbfae6ddc "&#65533;m&#65533;&#65533;\210E&#1527;\n", 0xb7d74462 "\017&#65533;ND\211&#65533;f\205&#65533;\017\225&#65533;1&#65533;\205&#65533;\017\225&#65533;\205&#65533;\017\205\203", 0xb7e275e0 "\204*&#65533;
  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 <Address 0xa out of bounds>, 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 "&#65533;l\021",
  0xa <Address 0xa out of bounds>, 0x0, 0xbfae6dec "\020n&#65533;&#65533;BQ&#1527;&#65533;u&#65533;&#65533;", 0xb7d74588 "9&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;t&#65533;\211&#65533;Z^]&#65533;\211&#65533;\215&#65533;'", 0xa <Address 0xa out of bounds>, 0xb7e275e0 "\204*&#65533;
  0xbfae6e10 "(n&#65533;&#65533;R&#65533;&#1463;&#65533;u&#65533;&#65533;&#65533;#\024\b\230n&#65533;&#65533;&#65533;n&#65533;&#65533;(r&#65533;&#65533;&#65533;\024\f\b\001", 0xb7d75142 "&#65533;^&#65533;&#65533;&#65533;\211&#65533;\215&#65533;'", 0xb7e275e0 "\204*&#65533;
  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 <Address 0xa out of bounds>, 0xbfae6e28 "(r&#65533;&#65533;&#65533;\024\f\b\001", 0xb7e2de40 "&#65533;l\021", 0xb7e275e0 "\204*&#65533;&#65533;", 0xb7b546c0 "&#65533;F&#65533;&#65533;&#65533;J&#65533;&#65533;&#65533;F&#65533;&#65533;\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&#65533;I&#65533;&#65533;\001\000\000\000,o&#65533;&#65533;\"\006&#65533;&#65533;\224K&#65533;&#65533;&#65533;R&#65533;&#65533;\001\000\000\000\001", '\0' <repeats 11 times>, "p&#65533;&#65533;&#65533;&#65533;\000\000\000&#65533;\026&#65533;&#65533;\000&#65533;&#1143;&#65533;&#65533;&#65533;&#65533;|o&#65533;&#65533;\000\000\000\000 \000\000\000\202o&#65533;&#65533;r&#65533;&#65533;&#65533;r&#65533;&#65533;&#65533;|o&#65533;&#65533;\000\000\000\000\030r&#65533;&#65533;\2019&#65533;&#65533;|o&#65533;&#65533;p&#65533;&#65533;&#65533;|o&#65533;&#65533;lo&#65533;&#65533;\000\000\000\000\000\000\000\000&#65533;&#65533;&#65533;&#65533;\200q&#65533;&#65533;#\000\000\000 \000\000\000\000\000\200\000&#65533;&#65533;&#65533;&#65533;#1 SMP Tue Oc"...
        c = -1
        filename = "/root/.asterisk_history", '\0' <repeats 56 times>
        hostname = "ceres", '\0' <repeats 58 times>
        tmp = "\033[1;37;40mAsterisk Ready.\n\033[0;37;40m\000q&#65533;&#65533;&#1651;&#1527;&#65533;&#65533;&#65533;&#65533;\033\000\000\000W`&#65533;&#65533;(%\023\b&#65533;&#65533;\f\b&#65533;\n\002\000\033\000\000\000 %\023\b(%\023\b"
        xarg = 0x0
        x = 0
        f = (FILE *) 0x81423c8
        sigs = {__val = {134238211, 0 <repeats 31 times>}}
        num = 7
        is_child_of_nonroot = -1
---Type <return> to continue, or q <return> to quit---
        buf = 0x81423c8 "reload"
        runuser = 0x0
        rungroup = 0x0
        cp = (struct cp_state *) 0x81423c8
        __PRETTY_FUNCTION__ = "main"
(gdb)