Skip to content

Postfix for #8430#8752

Merged
dyemanov merged 8 commits intoFirebirdSQL:v5.0-releasefrom
Ev3nt:v5.0-release
Nov 5, 2025
Merged

Postfix for #8430#8752
dyemanov merged 8 commits intoFirebirdSQL:v5.0-releasefrom
Ev3nt:v5.0-release

Conversation

@Ev3nt
Copy link
Copy Markdown
Contributor

@Ev3nt Ev3nt commented Sep 22, 2025

As I see, there is a problem with fbsvcmgr again (#8431 (comment)), so I offer my solution. It is that ALICE_print calls tdgbl->uSvc->started(), which immediately after the output of information releases the stream, which does not allow further output of information.

Comment thread src/alice/alice.cpp Outdated
if (any_error)
{
ALICE_print(24); // msg 24: Summary of validation errors\n
ALICE_print(24, SafeArg(), false); // msg 24: Summary of validation errors\n
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we know the service has been already started, I'd consider to do:

if (tdgbl->uSvc->isService())
			tdgbl->uSvc->started();

explicitly before this ALICE_print() call instead of hacking ALICE_print() itself for this particular case.

@Ev3nt Ev3nt requested a review from dyemanov October 31, 2025 09:34
Changed `EXE_two_phase` and `EXE_action` so that `tdgbl->uSvc->started()` works correctly.
@dyemanov dyemanov merged commit 04b143a into FirebirdSQL:v5.0-release Nov 5, 2025
22 checks passed
dyemanov pushed a commit that referenced this pull request Nov 6, 2025
* Fixed crash after calling incorrectly parametrized request

* Patch: Fixed crash after calling incorrectly parametrized request

* ALICE_print fix, isError flag added

* Revert "ALICE_print fix, isError flag added"

This reverts commit 24c74e1.

* Fix incorrect order of procedure calls

* `ALICE_print` was returned to previous state.
Changed `EXE_two_phase` and `EXE_action` so that `tdgbl->uSvc->started()` works correctly.

---------

Co-authored-by: bogdan.khavronin <[email protected]>
dyemanov pushed a commit that referenced this pull request Mar 26, 2026
* Errors don't have enough time to be printed (fix)

* Optimization
dyemanov pushed a commit that referenced this pull request Apr 12, 2026
* Errors don't have enough time to be printed (fix)

* Optimization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants