Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
Message ID: 68897     Entry time: Mon Feb 25 17:03:50 2019
Icon: Question  Author: Kester Habermann  Author Email: kester.habermann@gmail.com 
Category: Bug report  OS: Linux  ELOG Version: 3.1.4-1 
Subject: elogd hangs on self referencing log entry 

Hello,

Somehow when replying to a log entry, a log entry was created that was referring to itself. How this happened, I have no idea. The effect was that each time this enty was loaded, the elogd started to hang, going to 100% load and not responding to any http requests anymore. This problem can be reproduced by manually creating such a self-referencing log entry (see attachment). The problem entry that leads to the crash can be made by editing any elog entry and adding a line "Reply to: X" and a line "In reply to: X" where X is the MID of this entry.

1) Maybe it is possible to add a check when writing files that ensure, that is a log entry does not reference itself.
2) Maybe when loading files are preparing the thread view, elogd can detect cycles and abort.

 

 

Attachment 1: 011108a.log  415 Bytes  | Hide | Hide all
$@MID@$: 1
Date: Thu Nov 08 18:37:57 2001
Reply to: 1
In reply to: 1
Author: Stefan Ritt
Type: Routine
Category: General
Subject: Welcome
Attachment: 
Encoding: ELCode
========================================
[B]Congratulations for installing ELOG sucessfully!
[/B]

This is a demo entry to ensure the elogd server is working correctly. 
Click [I]"New"[/I] to add new pages and [I]"Delete"[/I] to delete this page.
ELOG V3.1.5-3fb85fa6