[sr-dev] current master fails to start

Juha Heinanen jh at tutpro.com
Sat Jan 21 03:22:30 CET 2012


daniel,

thanks for the MALLOC_CHECK_ tip.  after i set it to 2, i found out that
starting failure with current master is due to my local module that
contains a small number of non-general purpose functions.

gdb reports on the core file:

(gdb) where
#0  0xb7786424 in __kernel_vsyscall ()
#1  0xb7638751 in raise () from /lib/i686/cmov/libc.so.6
#2  0xb763bb82 in abort () from /lib/i686/cmov/libc.so.6
#3  0xb7679484 in ?? () from /lib/i686/cmov/libc.so.6
#4  0xb767bed4 in ?? () from /lib/i686/cmov/libc.so.6
#5  0xb767c9a8 in ?? () from /lib/i686/cmov/libc.so.6
#6  0xb767de08 in malloc () from /lib/i686/cmov/libc.so.6
#7  0xb778de23 in ?? () from /lib/ld-linux.so.2
#8  0xb778df7b in ?? () from /lib/ld-linux.so.2
#9  0xb778e526 in ?? () from /lib/ld-linux.so.2
#10 0xb7793e9c in ?? () from /lib/ld-linux.so.2
#11 0xb77947f6 in ?? () from /lib/ld-linux.so.2
#12 0xb7793192 in ?? () from /lib/ld-linux.so.2
#13 0xb7798b81 in ?? () from /lib/ld-linux.so.2
#14 0xb77947f6 in ?? () from /lib/ld-linux.so.2
#15 0xb77985c6 in ?? () from /lib/ld-linux.so.2
#16 0xb776cc0b in ?? () from /lib/i686/cmov/libdl.so.2
#17 0xb77947f6 in ?? () from /lib/ld-linux.so.2
#18 0xb776d09c in ?? () from /lib/i686/cmov/libdl.so.2
#19 0xb776cb41 in dlopen () from /lib/i686/cmov/libdl.so.2
#20 0x080f72e4 in load_module (mod_path=0xb7221478 "local") at sr_module.c:569
#21 0x0817e332 in yyparse () at cfg.y:1709
#22 0x08095a1f in main (argc=18, argv=0xbfb55c24) at main.c:2084

which does not tell much to me.  Makefile of the module is like this:

include ../../Makefile.defs

auto_gen=
NAME=local.so

DEFS+=-DOPENSER_MOD_INTERFACE

SERLIBPATH=../../lib
SER_LIBS+=$(SERLIBPATH)/kmi/kmi
SER_LIBS+=$(SERLIBPATH)/srdb1/srdb1
SER_LIBS+=$(SERLIBPATH)/kcore/kcore

include ../../Makefile.modules

the module contains mod_init, child_init, mi_child_init, and destroy
functions:

struct module_exports exports = {
    "local",
    DEFAULT_DLFLAGS, /* dlopen flags */
    cmds,      /* Exported functions */
    params,    /* Exported parameters */
    0,         /* exported statistics */
    mi_cmds,   /* exported MI functions */
    0,         /* exported pseudo-variables */
    0,         /* extra processes */
    mod_init,  /* module initialization function */
    0,         /* response function*/
    destroy,   /* destroy function */
    child_init /* child initialization function */
};

i added LM_INFO calls to the beginning of each, and nothing
gets printed to syslog, which makes me think that the crash happens
before any of them is called.

-- juha



More information about the sr-dev mailing list