Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  09 Jan 2009, Derek Escontrias, Forum, mlogger problem 
    Reply  13 Jan 2009, Stefan Ritt, Forum, mlogger problem 
       Reply  13 Jan 2009, Derek Escontrias, Forum, mlogger problem 
          Reply  13 Jan 2009, Stefan Ritt, Forum, mlogger problem 
             Reply  14 Jan 2009, Konstantin Olchanski, Forum, mlogger problem 
Message ID: 551     Entry time: 13 Jan 2009     In reply to: 550     Reply to this: 554
Author: Stefan Ritt 
Topic: Forum 
Subject: mlogger problem 
> Sorry for being vague. I cleaned up the ODB, but it doesn't seem to be the
> problem. Here is a sample run of mlogger and gdb:

Thanks for the info, that explained the problem. It is related to the lines

rargv[rargc] = (char *)malloc(3);
rargv[rargc++] = "-b";

where one first allocates some memory (3 bytes), but then overwrites the pointer with 
another pointer to some static memory ("-b"). The following

free(rargv[1]);

then tries to free the static memory which fails.

The problem was already fixed some time ago, so please update your version from the SVN 
revision (see https://midas.psi.ch/download.html for details).
ELOG V3.1.4-2e1708b5