Crash on Opteron

"Mindaugas Riauba" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
  Hello,

  I tried to compile kannel on Opteron 64bit. OS is
TAO Linux (RHEL clone).

  But bearerbox crashes on the very start. Backtrace is
at the end of the message.

  gwlib/octstr:2139 is parsing string from arguments:

         case 's':
           s = va_arg(VALST(args), char *);
           if (format->has_prec && format->prec < (long) strlen(s))
             n = format->prec;
           else
==2139==>    n = (long) strlen(s);

  Mindaugas

(gdb) bt full
#0  0x0000002a95edac10 in strlen () from /lib64/tls/libc.so.6
No symbol table info available.
#1  0x00000000004869f2 in convert (os=0x65cfb0, format=0x7fbfeecd50,
    fmt=0x7fbfeecd98, args=0x7fbfeecd90) at gwlib/octstr.c:2139
        new = (Octstr *) 0x0
        s = 0x6f69737265762073 <Address 0x6f69737265762073 out of bounds>
        pad = 0x4861f7 "H\211?H\213E?H\213"
        n = 7
        u = 4737732
        tmpfmt =
"Ä\r¢\225*\000\000\000\000??\225*\000\000\000p??\225*\000\000\000\t\000\000\
000\000\000\000\000
\034W\225*\000\000\000\004\000\000\000\000\000\000\0000???\177\000\000\000\2
20\021@\000\000\000\000\000¤?\200\v\000\000\000\0009\030@\000\000\000\000\00
0`???\177\000\000\0000³V\225*\000\000\000p???\177\000\000\0009\030@\000\000\
000\000\0000???\177\000\000\000H\035W\225*\000\000\000¤?\200\v\000\000\000\0
00\207ØU\225*\000\000\000H\035W\225*", '\0' <repeats 11 times>,
"\001\000\000\000*\000\000\000\000°V\225*\000\000\000°???\177\000\000\000\00
0°V\225*\000\000\0000³V\225*\000\000\000\220"...
        tmpbuf = "???????? ???\177\000\000\000????????", '\0' <repeats 40
times>, "\017\000\000\000\000\000\000\000\031??\225*", '\0' <repeats 27
times>,
"\001\000\000\000\000\000\000\000°??@\000\000\000\000????\000\000\000\000
???\177", '\0' <repeats 19 times>, "\031??\225*\000\000\000
\000\000\0000\000\000\000\200\227\t\226*", '\0' <repeats 11 times>,
"\001\000\000\000\000\000\000\000°??@\000\000\000\000%\000\000\000\000\000\0
00\000p???\177", '\0' <repeats 19 times>, "J??\225*\000\000\000
\000\000\0000\000\000\000°Æ??\177\000\000\000\000\000\000\000\177", '\0'
<repeats 19 times>...
        c = 0 '\0'
        p = (void *) 0x7fbfeecba0
#2  0x0000000000486ece in octstr_format_valist_real (
    fmt=0x491168 "n `%s'.\nBuild `%s', compiler `%s'.\nSystem %s, release
%s, version %s, machine %s.\nHostname %s, IP %s.\nLibxml version %s.\nUsing
%s malloc.\n", args=0x7fbfeecdc0) at gwlib/octstr.c:2233
        format = {minus = 0, zero = 0, min_width = 0, has_prec = 0, prec =
0,
  type = 0}
        os = (Octstr *) 0x65cfb0
        n = 7
#3  0x0000000000486dcb in octstr_format (
    fmt=0x491158 "Kannel %s version `%s'.\nBuild `%s', compiler
`%s'.\nSystem %s, release %s, version %s, machine %s.\nHostname %s, IP
%s.\nLibxml version %s.\nUsing %s malloc.\n") at gwlib/octstr.c:2204
        os = (Octstr *) 0x20
        args = {{gp_offset = 8, fp_offset = 48,
    overflow_arg_area = 0x7fbfeeceb0, reg_save_area = 0x7fbfeecdf0}}
#4  0x0000000000411e4b in version_report_string (boxname=0x48d4cf
"bearerbox")
    at gw/shared.c:101
        u = {sysname = "Linux", '\0' <repeats 59 times>,
  nodename = "opteron", '\0' <repeats 57 times>,
  release = "2.4.21-15.0.2.TLsmp", '\0' <repeats 45 times>,
  version = "#1 SMP Fri Jun 18 20:28:01 EEST 2004", '\0' <repeats 28 times>,
  machine = "x86_64", '\0' <repeats 58 times>,
  __domainname = "(none)", '\0' <repeats 58 times>}
#5  0x0000000000411d11 in report_versions (boxname=0x48d4cf "bearerbox")
    at gw/shared.c:90
        os = (Octstr *) 0x65b2b0
#6  0x00000000004044b1 in main (argc=2, argv=0x7fbfeed1f8)
    at gw/bearerbox.c:567
        cf_index = 1
        cfg = (Cfg *) 0x65a090
        filename = (Octstr *) 0x659c10
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.