Ticket #285 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

stratcon_datastore crash on empty log files

Reported by: jesus Assigned to: jesus
Priority: major Milestone:
Component: stratcond Severity: annoying
Keywords: Cc:


If you end up with empty files in your /var/log/stratcon.persist files, stratcond crashes. If you run it with -D, it ends up with an error like this:

mmap(0, 25)(/var/log/stratcon.persist/<ip>/<hostname>/0/<filename>) => Invalid argument
stratcond: stratcon_datastore.c:1077: build_insert_batch: Assertion`buff != (void *)-1' failed.

Deleting the file appears to fix it, perhaps the stratcond code should be updated to handle this edge-case?

Change History

05/25/10 13:32:36 changed by jesus

  • status changed from new to closed.
  • resolution set to fixed.

(In [1298]) fixes #285