Ticket #199 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

Logit Access Violation

Reported by: Jiang Wenxiang Owned by: somebody
Priority: major Milestone:
Component: ALL modules Version:
Keywords: Cc:

Description

I guess there is a problem in log_it.

The case is: I open 'Verbose, Logfile, SocketDebug?' in export_generic. When messages come export_generic will die. I debug into it, VS says there is a 'access violation' in log_it(line 234). If I close 'Verbose, Logfile, SocketDebug?' or open only one of them, the case disappear. I guess it is because many threads access the static variable 'now' or 'res' at the same time. Could you please check it or present me a solution.

Change History

comment:1 Changed 9 years ago by paulf

Jiang,

Please try and move the variables now and res from being static inside the logit_core() where they are used...if this solves the segmentation violation for your test case, then we will accept the change into the Earthworm SVN repository. It is often difficult to create a test case where things fail consistently and if you have a case that is consistent now, please use it to test this.

Let me know if my instructions are not clear.

Thanks to you for trying this and helping out with Earthworm.

Paul

comment:2 Changed 9 years ago by paulf

  • Status changed from new to closed
  • Resolution set to fixed

Moved res and now static variables to temporary variables inside logit_core and logit_init. There were clashes for using these variables in Windows when multi-threaded EW modules were logging simultaneously....not a good thing.

Note: See TracTickets for help on using tickets.