Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#482 closed defect (fixed)

Logging mechanism can sometimes crash if GetCurrentUserInfo() throws an exception

Reported by: brucedechant Owned by: brucedechant
Priority: high Milestone: 2.1
Component: Server Version: 2.0.0
Severity: major Keywords:
Cc: External ID: 1050025

Description

The logging macro MG_CONNECTION_INFO calls MgUserInformation::GetCurrentUserInfo() and in some cases (especially on Linux) this API can throw the MgConnectionNotOpenException exception which is not being caught by the macro. This then causes the server to crash because it is an uncaught exception.

The fix for this is to add a try/catch block to the macro.

Change History (3)

comment:1 by brucedechant, 16 years ago

Owner: set to brucedechant
Status: newassigned

comment:2 by brucedechant, 16 years ago

Resolution: fixed
Status: assignedclosed

comment:3 by zspitzer, 16 years ago

This occured when you try and enable the

[TraceLogProperties] Enabled=1

in serverconfig.ini on XP as well

Note: See TracTickets for help on using tickets.