Class OpenEvents in src/common/os/win32/isc_ipc.cpp

24 views
Skip to first unread message

Adriano dos Santos Fernandes

unread,
Aug 5, 2025, 8:08:37 PMAug 5
to firebir...@googlegroups.com
Hi!

This class, through the global openEvents variable, looks to be
incorrectly used without any synchronization.


Adriano

Vlad Khorsun

unread,
Aug 6, 2025, 2:32:34 AMAug 6
to firebir...@googlegroups.com
06.08.2025 3:08, Adriano dos Santos Fernandes:
> Hi!
>
> This class, through the global openEvents variable, looks to be
> incorrectly used without any synchronization.

It used in Classic only, iirc

Regards,
Vlad

Adriano dos Santos Fernandes

unread,
Aug 6, 2025, 6:39:24 AMAug 6
to firebir...@googlegroups.com
Isn't it a problem for SuperClassic?


Adriano

Vlad Khorsun

unread,
Aug 6, 2025, 6:54:26 AMAug 6
to firebir...@googlegroups.com
06.08.2025 13:39, Adriano dos Santos Fernandes:
For single process - no. But we need to analyze multi-process case.

Regards,
Vlad

Vlad Khorsun

unread,
Aug 6, 2025, 7:37:55 AMAug 6
to firebir...@googlegroups.com
06.08.2025 13:54, Vlad Khorsun:
Well, it seems that sync is needed in this case. I think simple mutex in
OpenEvents::getEvent() is enough and should not harm in single-proces case.
Do you want me to add it, or you already doing it ?

Regards,
Vlad

Adriano dos Santos Fernandes

unread,
Aug 6, 2025, 5:16:26 PMAug 6
to firebir...@googlegroups.com

   Well, it seems that sync is needed in this case. I think simple mutex in
OpenEvents::getEvent() is enough and should not harm in single-proces case.
Do you want me to add it, or you already doing it ?

Please do it.


Adriano

Vlad Khorsun

unread,
Aug 6, 2025, 5:56:52 PMAug 6
to firebir...@googlegroups.com
07.08.2025 0:16, Adriano dos Santos Fernandes:
Done in master, to be backported after QA pass.

Regards,
Vlad

Reply all
Reply to author
Forward
0 new messages