Ticket #482 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Changed 4 years ago by brucedechant

  • owner set to brucedechant
  • status changed from new to assigned

Changed 4 years ago by brucedechant

  • status changed from assigned to closed
  • resolution set to fixed

Changed 4 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.