fluent-bit icon indicating copy to clipboard operation
fluent-bit copied to clipboard

init: handle invalid parameters on Windows

Open MPeli opened this issue 4 years ago • 2 comments

I was experiencing a crash on Windows when trying to use output workers. See #3537 I am sure that the function will have to be moved.

I found out that the crash can be prevented when _set_invalid_parameter_handler and _set_thread_local_invalid_parameter_handler are used to set the invalid parameter handler. They must be called before calling write.


Enter [N/A] in the box, if an item is not applicable to your change.

Testing Before we can approve your change; please submit the following in a comment:

  • [N/A] Example configuration file for the change
  • [N/A] Debug log output from testing the change
  • [N/A] Attached Valgrind output that shows no leaks or memory corruption was found

Documentation

  • [N/A] Documentation required for this feature

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

MPeli avatar May 25 '21 16:05 MPeli

@MPeli there is a DCO error in the commit, would you please sign off your commit ? (git commit -s ...)

edsiper avatar May 26 '21 14:05 edsiper

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Jun 26 '21 01:06 github-actions[bot]

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Nov 26 '24 02:11 github-actions[bot]

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Aug 27 '25 02:08 github-actions[bot]