URL: <http://gna.org/bugs/?19105>
Summary: File information in logged repeated messages can be misleading Project: Freeciv Submitted by: jtn Submitted on: Sat Dec 3 18:15:45 2011 Category: general Severity: 2 - Minor Priority: 5 - Normal Status: None Assigned to: None Originator Email: Open/Closed: Open Release: trunk r20621 Discussion Lock: Any Operating System: GNU/Linux Planned Release: _______________________________________________________ Details: When tracking down bug #19104 with "-d 3 -l file", the stuff in the file looked like: 3: [T000 - 2011/12/03 17:27:04] in sanity_check_size() [mem.c::61]: Warning: malloc with size 0 at line 570 of nation.c 3: [T000 - 2011/12/03 17:27:04] in sanity_check_size() [mem.c::61]: last message repeated 2 times 3: [T000 - 2011/12/03 17:27:04] in sanity_check_size() [mem.c::61]: last message repeated 2 times (total 4 repeats) 3: [T000 - 2011/12/03 17:27:04] in sanity_check_size() [mem.c::61]: last message repeated 4 times (total 8 repeats) 3: [T000 - 2011/12/03 17:27:04] in sanity_check_size() [mem.c::61]: last message repeated 8 times (total 16 repeats) 3: [T000 - 2011/12/03 17:27:04] in sanity_check_size() [mem.c::61]: last message repeated 16 times (total 32 repeats) 3: [T000 - 2011/12/03 17:27:04] in sanity_check_size() [mem.c::61]: last message repeated 32 times (total 64 repeats) 3: [T000 - 2011/12/03 17:27:04] in sanity_check_size() [mem.c::61]: last message repeated 64 times (total 128 repeats) 3: [T000 - 2011/12/03 17:27:04] in sanity_check_size() [mem.c::61]: last message repeated 128 times (total 256 repeats) 3: [T000 - 2011/12/03 17:27:04] in valid_ruleset_filename() [ruleset.c::205]: last message repeated 246 times (total 502 repeats) 3: [T000 - 2011/12/03 17:57:30] in valid_ruleset_filename() [ruleset.c::205]: Trying "default/effects.ruleset". The penultimate line is misleading -- the repeated message can't come from ruleset.c (that's the line that says "Trying..."). I assume the "mem.c::61" isn't being saved so that it can be output in the final "last message repeated X times" that's output when a different message comes along. _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?19105> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev