Bugs item #1714133, was opened at 2007-05-07 11:45
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1714133&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PFtijah
Group: Pathfinder CVS Head
Status: Open
Resolution: None
Priority: 7
Private: No
Submitted By: Stefan Manegold (stmane)
Assigned to: Jan Flokstra (jflokstra)
Summary: PFtijah: "/tmp/TIJAH_LOGGER" never cleaned => fills /tmp/ !

Initial Comment:
from modules/pftijah/pftijah.mx:

========
#define LOGGERFILE "/tmp/TIJAH_LOGGER"

/*
 * the CMDtj_log is created to be able to print in very difficult IO areas
 */
int CMDtj_log(str format, int* i) {
        FILE* f;

        if ( (f = fopen(LOGGERFILE,"a")) ) {
                                   ^^^
            fprintf(f,(const char*)format,*i);
            fclose(f);
        }
        return GDK_SUCCEED;
}
========

apparently, "/tmp/TIJAH_LOGGER" is only appended to, but never cleaned or 
overwritten;
this eventually causes /tmp/ to filled if one uses pathfinder regularly --- 
even *without* using pftijah --- except from having it loaded via pathfinder...

$ l -h /tmp/TIJAH_LOGGER 
-rw-rw-rw- 1 manegold ins 6.9G May  7 11:25 /tmp/TIJAH_LOGGER
                          ^^^^
$ wc -l /tmp/TIJAH_LOGGER 
423802741 /tmp/TIJAH_LOGGER

$ head -9 /tmp/TIJAH_LOGGER 
+ mps(start-0)
+ mps(start-1)
+ mps(finish-1)
+ mps(start-2)
+ mps(start-3)
+ mps(start-4)
+ mps(finish-4)
+ mps(start-5)
+ mps(start-6)

$ tail -9 /tmp/TIJAH_LOGGER 
+ mps(start-85)
+ mps(finish-85)
+ mps(finish-80)
+ mps(finish-79)
+ mps(finish-78)
+ mps(finish-77)
+ mps(start-77)
+ mps(start-78)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1714133&group_id=56967

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to