Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue 2278, loop->terminated == true when restarting a loop #2282

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

ihatechoosingusernames
Copy link

Problem: Issue 2278; loop->terminated == true when restarting a loop allowing timer callbacks to update loop->timers in place.

Solution: Set loop->terminated = false at beginning of zloop_start. Add test to both demonstrate the issue and test the fix.

@sphaero
Copy link
Contributor

sphaero commented Apr 2, 2024

It seems to fail on macOS?

make[3]: Circular src/selftest-ro <- src/selftest-ro dependency dropped.
/bin/sh ./libtool --mode=execute ./src/czmq_selftest
Assertion failed: (timer_end_called_1 == false), function zloop_test, file zloop.c, line 1027.
Running czmq selftests...
make[3]: *** [check-local] Abort trap: 6
 * zgossip_msg: OK
 * zactor: OK
 * zarmour: OK
 * zcert: OK
make[2]: *** [check-am] Error 2
 * zcertstore: OK
 * zchunk: OK
 * zclock: OK
 * zconfig: OK
 * zdigest: OK
 * zdir: OK
 * zdir_patch: OK
 * zfile: OK
 * zframe: OK
 * zhash: OK
 * zhashx: OK
 * ziflist: OK
 * zlist: OK
 * zlistx: OK
make[1]: *** [check-recursive] Error 1
make: *** [distcheck] Error 1
 * zloop: 
Error: Process completed with exit code 2.

…lowing timer callbacks to update loop->timers in place.
@sphaero sphaero merged commit 4af175a into zeromq:master Apr 12, 2024
7 of 11 checks passed
@sphaero
Copy link
Contributor

sphaero commented Apr 12, 2024

MacOS is off again but it can hardly be caused by this. I'm merging this anyway. Thanks

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.

None yet

2 participants