Segmentation fault with Simple message logging
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Jabberd |
New
|
Undecided
|
Unassigned |
Bug Description
jabberd 2.2.16
gentoo linux
~700 users online
logging enabled in router.xml:
<message_logging>
<enabled/>
<file>
</message_
router crashed several times on the day:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000406950 in message_log (nad=0x654270, r=0x624010,
msg_
msg_to=0x6581c0 "<email address hidden>/SARATOV-4") at router.c:1158
1158 router.c: access denied.
in router.c
attached patch fix this problem and slightly modified logging format:
1. ISO8601 timestamps
2. space as field delimiter
3. character 0x01 for replace line endings in messages (simple code)