Opened 11 years ago

Closed 11 years ago

Last modified 11 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 Changed 11 years ago by brucedechant

Owner: set to brucedechant
Status: newassigned

comment:2 Changed 11 years ago by brucedechant

Resolution: fixed
Status: assignedclosed

comment:3 Changed 11 years ago by zspitzer

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.