Did you know ... Search Documentation:
Title for pldoc(default)
Branch: stable (switch to development),
version to version

SWI-Prolog Changelog from version 11.0.0 to 11.0.1

[Nov 23 2026]

  • FIXED: WASM: concurrent processes staged files under the same name All Emscripten processes have pid 42, so concurrent builds of e.g. INDEX.pl files that auto-compile a .qlf file used the same staging file, causing rename_file/2 errors and invalid .qlf files.
  • FIXED: sandbox: allow call_residual_program/2 and friends from library(wfs) call_residual_program/2, answer_residual/2 and delays_residual_program/2 were rejected because their implementation uses internal tabling primitives. Like call_delays/2 and current_table/2, they only read the tables of the calling thread.
  • FIXED: #1596 undo/1: GC could drop all but the last scheduled undo goal When garbage collection ran between two calls to undo/1 and backtracking over them, it merged the trailed assignments to the undo goal list into the oldest one. Undoing each assignment schedules one goal, so only the last undo goal ran. GC now keeps all trailed assignments to this list.

[Nov 21 2026]

  • CLEANUP: remove '$btree_find_node'/5 get_assoc/3 now uses '$btree_avl_get'/3 and nothing else uses this predicate. Also make the documentation of '$btree_avl_get'/3 stand on its own.

[Nov 20 2026]

  • ENHANCED: get_assoc/3: lookup implemented in C Adds '$btree_avl_get'/3 next to '$btree_find_node'/5. It does the test for the empty tree, the search and the unification of the value in one call. Keys that are small integers are compared inline.

[Nov 21 2026]

  • CLEANUP: remove unused LD->pipe; rename JMPBUF_ALIGNMENT to QUERY_FRAME_ALIGNMENT The jmp_buf moved out of the queryFrame in 2009. The alignment is still useful for the 64-bit members of the queryFrame on systems where these need more than word alignment. Drop the ia64 case, which was only needed for the jmp_buf.
  • ENHANCED: Thread performance on MacOS: avoid saving the signal mask on PL_throw() On macOS (and other BSD derived systems), setjmp()/longjmp() save and restore the signal mask. These are system calls that take a process-wide lock, which made many threads that run nested queries spend their time in the kernel. Use sigsetjmp(env, 0)/siglongjmp() if available, detected using check_symbol_exists() as sigsetjmp() is a macro in glibc. Unblock a fatal signal before leaving its handler using PL_rethrow(), as longjmp() no longer restores the mask.
  • BUILD: fix O_DEBUG compilation of pl_garbage_collect() Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • FIXED: atom-GC could see partially written findall/3 answers on weakly ordered CPUs Atom-GC scans the findall/3 bags of other threads asynchronously. Pushing an answer stored the record pointer and updated the stack top without a release barrier, so on e.g. LoongArch, POWER or ARM, the scanner could see the new top before the record. This caused "markAtomsRecord: Assertion failed" in trie_children_threads:agc_concurrent on Alpine loongarch64. See #1590.
  • TEST: thread_handle_gc: use small C stacks for the unjoined threads The 2,000 threads are never joined, so their C stacks stay allocated until atom-GC reclaims the handles. With the default 8Mb stack this exhausts the address space on 32-bit systems (Alpine x86, armv7). See #1590.

[Nov 20 2026]

  • BUILD: silence doc-build warnings for syspred.pl and tabling.pl Move the predicate_property/2 meta_predicate declaration to the top-level block so it precedes its use in source_file/2, and use the PlDoc determinism keyword failure for completion_step/1.
  • FIXED: pldoc2tex: load the comments of predicates re-exported by a preloaded library If the library was loaded from .qlf files, only the comments of the library itself were recovered using the cross-referencer. This lost the documentation of e.g. rdf_current_prefix/2, defined in rdf_prefixes and re-exported by rdf_db.
  • DOC: design proposal for compact atoms with flag bits Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • ENHANCED: read/1, write/1: quickly decide that an atom is not an operator Most atoms are not operators. A filter records every name that has been declared an operator in any module. If a name is not in the filter, currentOperator() and priorityOperator() skip searching the operator tables of the module and its super modules. read_clause/3 on 200,000 facts takes 0.89 -> 0.79 sec; writeq/1 is about 4% faster.
  • ENHANCED: read_term/2,3: faster construction of subterm positions Build the position terms directly on the global stack rather than using PL_unify_term(). Reading terms with subterm positions is about 13% faster.

[Nov 19 2026]

  • ENHANCED: load/qcompile: call replace_functions/4 only when there are functions to replace Loading or qcompiling a file takes 31% fewer inferences per fact.

[Nov 20 2026]

  • FIXED: clang -Os: crash on backtracking into a clause choicepoint copyWordsScalarUp() and copyWordsScalarDown() copied structures that contain pointers, such as struct clause_choice, through `word*`. Under strict aliasing, clang considers these stores not to initialise the pointer fields. At -Os it removed the code that reads them, which made shallow_backtrack call raiseStackOverflow() with true after a successful growLocalSpace() and crash (MacPorts 11.0.0 build). Copy through a MAY_ALIAS word type.
  • FIXED: clang -Os: crash on backtracking into a clause choicepoint copyWordsScalarUp() and copyWordsScalarDown() copied structures that contain pointers, such as struct clause_choice, through `word*`. Under strict aliasing, clang considers these stores not to initialise the pointer fields. At -Os it removed the code that reads them, which made shallow_backtrack call raiseStackOverflow() with true after a successful growLocalSpace() and crash (MacPorts 11.0.0 build). Copy through a MAY_ALIAS word type.

[Nov 19 2026]

  • DOC: the culprit of representation_error(nul_terminated_string(Text)) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • ADDED: PL_save_ctty() and PL_restore_ctty() Expose the terminal repair shell/1 does after a child that adopted the pty of an Epilog window exits, which on MacOS and other BSD systems revokes that terminal. Foreign code that runs such a child itself, in particular process_create/3, needs the same.
  • FIXED: use-after-free on source files destroyed by procedure GC '$time_source_file'/3 and abolish_module/1 accessed source files from the index without a reference while procedure GC could destroy them. Add acquireIndexSourceFile(), which acquires the file under L_SRCFILE, and make releaseSourceFile() drop the last reference under L_SRCFILE, such that a file cannot be acquired from zero and destroyed twice.
  • FIXED: #1583 abolish_module/1 crashed if procedure GC collected one of its procedures unlinkSourceFilesModule() walked the module's procedure table without acquiring the procedures. Procedure GC reuses the source_no field of a collected procedure as free-list link, which made set_bit() write far out of bounds. Enumerate using acquireTableProcedure() and guard against source file indexes beyond the bit vector.
  • FIXED: API error when the kernel raises an error on a frame argument With the flag validate_api (default unless -O), C functions such as PL_type_error() also validated their term_t arguments when called from the kernel, which may pass an argument slot of a Prolog frame. This aborted the process, e.g., when tabling added a cyclic answer.

[Nov 13 2026]

  • FIXED: transaction/1 and snapshot/1: clauses erased by another thread A goal must see the clauses that were visible when it started. For a goal in a transaction or snapshot these are the clauses at the start of the transaction. A clause that is erased afterwards remains in the clause list and is found if the goal scans this list or uses a clause index that existed before the erase. It was lost in two cases:

[Nov 18 2026]

  • ENHANCED: put_assoc/4: insert and update implemented in C Adds '$btree_avl_put'/4 next to '$btree_find_node'/5. It does the search, the copy of the path and the rebalancing in one pass.

[Nov 12 2026]

  • FIXED: assert and retract while another thread fills a new clause index hashDefinition() fills a new index from the clause list without holding the predicate lock. A thread that asserts or retracts a clause changed the clause list first and only then waited for the incomplete index, so it could not know whether the scan had seen its change:

[Nov 14 2026]

  • FIXED: retract/1 and retractall/1 erased clauses that the pattern's constraints reject When the pattern holds attributed variables, unifying it with a clause only schedules the constraint goals. They ran after retract/1 or retractall/1 returned, when the clause was already erased. A clause the constraints reject is now neither returned nor erased. The constraint goals of retract/1 run as normal goals: if they leave choicepoints, backtracking into them succeeds again with the clause removed. This is compatible with SICStus Prolog.

[Nov 15 2026]

  • FIXED: assert could publish a clause before its content on weakly ordered processors Readers walk clause lists and index buckets without the predicate lock. assertDefinition_() and insertIntoSparseList() linked a new clause reference with a plain store, so on a processor that may reorder stores (ARM, POWER) a reader could follow the link and read the clause reference or the clause before their content was visible. Also, assertDefinition_() advanced the global generation before it stamped the clause, so a goal at the new generation could find the clause invisible and, a moment later, visible.

[Nov 18 2026]

  • FIXED: transaction/1 and snapshot/1 published their start generation unchecked The start generation of a transaction (LD->transaction.gen_start) pins the global view of its goal: clause GC marks it for every dirty predicate. transaction/1 and snapshot/1 stored it with a plain store, without the second read of the global generation that setGenerationFrame() uses for a frame. A clause GC that started between the read of the global generation and the moment the store became visible could miss the pin and reclaim clauses visible to the goal: a clause erased in between disappears from the goal's view, which then matches no generation, and a clause the goal is already walking can be freed under it. The same holds when a transaction with a constraint moves its start generation forward before it runs the constraint.

[Nov 15 2026]

  • FIXED: an access object popped out of order could hide another from clause GC popPredicateAccess() of an access object that is not the latest one moves the later ones down, one slot at a time. Clause GC marks the access objects of another thread under that thread's scan_lock and reads the slots in order, so it could read a slot before the move and the next one after it, missing the access object that moved between them; the clauses visible only at its generation could then be reclaimed. The move now holds scan_lock. Access objects are popped out of order only by nested enumerations, such as forall(clause(...), use_module(...)) while loading.

[Nov 18 2026]

  • FIXED: retract/1 could miss clauses after it lost its candidate If another thread erased the clause retract/1 was about to remove, or an update event refused to erase it, retract/1 continues at the current generation. It resumed from the next candidate chosen at the older generation. That skipped a clause only the current generation sees, and was NULL if the lost clause was the last candidate, so retract/1 failed although another thread added a matching clause. If the clause index it walked had been replaced or deleted since, it also missed the clauses added after that, as such an index no longer receives clauses.
  • FIXED: retract/1 could free the clause index it walks after losing its candidate If another thread erased the first matching clause, retract/1 continues at the current generation. Since a2fb283 it moves its predicate access object to that generation, so that clause GC protects the clauses created since. But ctx->chp, the clause retract/1 continues from, may be in a clause index that was replaced after retract/1 started, and clause GC frees a replaced index once every generation it marks is after the replacement. After the move, clause GC therefore freed the index retract/1 continued in. Debug builds then abort with "Ditching clause" in lingerClauseRef(), AddressSanitizer reports a heap-use-after-free in next_clause_primary_index() and release builds lose a clause.
  • FIXED: retract/1 did not check pushPredicateAccessObj() for failure pushPredicateAccessObj() returns NULL after raising an exception when a thread has too many predicate access objects or memory runs out. retract/1 then read the generation through a null pointer. retractall/1 already checks the result.

[Nov 14 2026]

  • FIXED: debug builds counted protected clause references without a lock protectCRef() and unprotectCRef() keep a count per clause reference in a table that all threads share, and updated it without a lock. Two threads protecting the same clause reference could lose an update. A lost increment made unprotectCRef() fail its assertion; a lost decrement left the reference marked as protected, so lingerClauseRef() later reported "Ditching clause" for a clause that no retract/1 still used. Only O_DEBUG builds keep this table.

[Nov 18 2026]

  • FIXED: a static predicate could run a clause that reconsult or abolish erased The supervisors of static predicates with one or two clauses (S_TRUSTME, S_LIST) embed their clauses and run them without checking whether they are visible. reconsultFinalizePredicate() erases clauses without replacing the supervisor. Usually fix_metapredicate() has replaced it before, but not for a meta-predicate whose declaration did not change. For example, after reloading
  • FIXED: a goal could see clauses that a reload added to a static predicate it runs Walking the clause list of a static predicate skips the generation tests when the predicate is clean (is_clean_definition()): not dynamic, not reloading and not registered dirty. Three gaps let a goal see another clause set than the one of its generation:
  • FIXED: unload, reload and abolish erased clauses without the predicate lock removeClausesPredicate() documents that its caller holds L_PREDICATE. unloadFile(), delete_old_predicate() and destroyDefinition() called it without the lock, and reconsultFinalizePredicate() erased clauses without it. They update the clause counts and the clause indexes of the predicate, which assert, retract and clause GC update while holding the lock.

[Nov 12 2026]

  • FIXED: undo/1: first goal after backtracking did not see the undo A scheduled undo goal runs at the call port of the next goal, after the frame of that goal was given its database generation. If the undo goal changes the database, e.g., undo(erase(Ref)), this first goal still resolved against the database as it was before the undo.

[Nov 14 2026]

  • FIXED: a cyclic module-qualified meta argument could crash the call m_qualify_argument() raises a type error if a meta argument is a cyclic
  • M:Goal term. It called PL_error() while lTop was still at the frame of the call (normal_call leaves it there and the supervisor moves it), so PL_error() allocated over that frame and the exception was unwound through what it wrote: three calls such as m(X, _) with X = m:X, where m/2 is declared with meta_predicate m(:, -), end in "failed to recover from local-overflow" or, in a debug build, a SIGSEGV in helper_b_throw(). The branch that grows the global stack already moves lTop above the arguments first; the error branch now does the same.

[Nov 18 2026]

  • BUILD: debug builds failed: assert_proc() printed an undeclared term 0451759 moved the compilation of a clause from assert_term() into the new assert_proc(), which gets the head and body, but kept the debug message that printed the clause term. It now prints the head.
  • FIXED: xref: no missing-file warning for loads inside :- if The cross-referencer processes both branches of conditional compilation, so a load guarded by exists_source/1 was reported as a missing file whenever the guard was false. This printed a warning while generating the documentation of library(http/http_path) in single threaded builds, where library(http/http_host) is not installed.

[Nov 17 2026]

  • BUILD: move TEST_PROTOBUFS_PROTOC to packages/protobufs
  • ENHANCED: S_STATIC: do not set lTop before selecting the clause S_STATIC used to raise lTop before firstClause() so the arguments were safe if clause selection touched the stacks. The common static cases do not use the stacks, so that was wasted work on every static call. firstClauseVM() tries the fast path without moving lTop and only raises it when falling back to the general search. S_STATIC then sets lTop once, after the clause is known (or when there is no match / the local stack must grow).
  • ENHANCED: VM: avoid passing hot values through memory With one C function per VM instruction, jumping to a shared helper means parking values in the in-memory register file and reading them back. B_VAR/B_VAR0-2 now handle the common "already bound" case in the instruction itself and I_CALL opens the new frame using a local pointer instead of passing it through NFR to normal_call. The work is done by the inline functions put_bound_var() and open_call_frame().
  • DOC: VM survey: avoiding memset() in H/B_RFUNCTOR landed as 6752b79cc Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • ENHANCED: integer fast paths for the arithmetic VM instructions Everyday arithmetic is mostly small integers. Special-case the common paths in A_VAR/A_VAR0-2, A_ADD, A_MUL, the A_LT..A_NE comparisons and A_FIRSTVAR_IS so tagged integers that do not overflow avoid the general helpers and the register save/restore around them.

[Nov 13 2026]

  • ENHANCED: clear the arguments of new terms without calling memset() GCC and Clang turn the short loops that set the arguments of a new compound to variables (B_RFUNCTOR, H_RFUNCTOR, T_FUNCTOR and C_VAR_N) into a call to memset()/bzero(). For the typical small arity that is more expensive than a few stores and forces the VM instruction to save its registers. clearWordsScalar() keeps one store per word by using an empty asm on the pointer so the loop is not recognised as memset().

[Nov 14 2026]

  • ENHANCED: omit the frame pointer in the VMI functions Using VMI functions, each VM instruction is a small function that continues with a tail call. Compilers that keep the frame pointer by default, notably Clang on macOS x86_64, add a push/mov/pop of the frame pointer to most of them. When using Clang, compile pl-wam.c using -fomit-frame-pointer, except for the Debug and Sanitize builds. GCC already omits the frame pointer at -O2.

[Nov 13 2026]

  • ENHANCED: firstClause() and nextClause(): inline the common cases Prolog predicates that are neither dynamic nor dirty do not need a generation check. For those, firstClause() and nextClause() now take the matching clause from the clause list inline in pl-index.h when:

[Nov 17 2026]

  • FIXED: help/1: clicking a link in Epilog called the non-existing follow_link/2 The help library is module prolog_help.
  • ADDED: Prolog flag gc_code and garbage collection of modules The flag gc_code selects which code is garbage collected: false, clause (default), procedure or module, where each level includes the previous ones. At procedure, predicates created at runtime are reclaimed (see above). At module, modules that are empty and no longer referenced are removed as well, e.g., modules created by calling M:G or asserting into a new M, or reset using abolish_module/1. At this level, in_temporary_module/3 safely reclaims the module and its predicates when they are no longer referenced, rather than freeing them immediately, which was unsafe if other threads or clauses still referred to them. library(pengines) sets gc_code to module.

[Nov 16 2026]

  • ADDED: abolish_module/1 to reset a module to a new empty module abolish_module(+Module) abolishes all predicates of Module, removes its exports and operators, resets its import module, class and flags and unloads the file it was loaded from. The memory used by its clauses and runtime predicates is reclaimed. Unlike '$destroy_module'/1, this is safe while other threads run code of the module.

[Nov 17 2026]

  • ENHANCED: garbage collection of procedures created at runtime Procedures created at runtime are reclaimed by clause garbage collection if nothing refers to them: stubs that call/N creates for undefined predicates, stubs for undefined predicates called from clauses that were removed, and predicates created using assert/1, dynamic/1, etc. that were abolished using abolish/1. This avoids leaking memory in programs that create predicates from data. Predicates loaded from files and predicates accessed from C (PL_predicate(), etc.) are not reclaimed.
  • FIXED: race between assert/1 and auto-importing the same predicate If a thread asserted into a module while another thread auto-imported the same predicate into that module, the clause could get lost or be added to the static imported predicate.
  • FIXED: clauses overriding an imported predicate referred to the import If a file defines a local version of a predicate that is imported, the clauses belong to the local definition, but they were compiled before the import was overruled and recorded the imported definition. For example, clause_property/2 reported the imported predicate and the imported predicate was marked as having clauses with a different context module.
  • FIXED: crash when aborting at the debugger redo port of retract/1 If a thread was aborted while the debugger was at the redo port of a non-deterministic foreign predicate such as retract/1 or clause/2, the predicate was called twice to discard its choice point. For retract/1, the second call used its context after it was freed. This crashed SWISH if a user closed the tracer at such a port.

[Nov 16 2026]

  • FIXED: seen/0 after set_input/1 dropped a reference to user_input The current input is reference counted by setStandardStream(), but pop_input_context(), used by seen/0, and see/1 assigned it directly. After set_input/1 released user_input, seen/0 made it current again without a reference. Repeating this dropped the reference count of user_input to zero while a stream handle to it was still alive, which failed an assertion in get_stream_handle().
  • FIXED: assert/1, retract/1, retractall/1 could raise a false permission error Running assert/1, retract/1 or retractall/1 concurrently with abolish/1 or other updates on the same predicate could raise "No permission to modify static procedure" on a predicate that is dynamic or undefined.
  • FIXED: retract/1 could access clauses reclaimed by clause GC retract/1 on a predicate that is concurrently modified could access freed memory, leading to crashes or hangs.
  • FIXED: assert/1 racing with abolish/1 could write to a freed clause Asserting clauses to a predicate while another thread abolishes it could corrupt memory, leading to crashes or hangs.
  • FIXED: (re)loading a module file could crash threads calling into it Loading a module file, as well as set_module/1 with base(Module), freed and reallocated the cell holding the import module, also if the import module did not change. Threads that walk the import modules, for example to resolve an undefined predicate, could access freed memory.
  • BUILD: Windows ARM64 cross-build: use the host pkg-config MSYS2 installs a Windows pkg-config without .exe in ${MINGW_ROOT}/bin. As CMAKE_FIND_ROOT_PATH is ${MINGW_ROOT}, FindPkgConfig found this one before the host's, could not run it and failed with "Could NOT find PkgConfig". Find pkg-config outside the target root and default PKG_CONFIG_LIBDIR to the MSYS2 .pc files.
  • BUILD: Compile without threads after the thread_property/2 fixes init_interactor_mutex() only exists with O_PLMT, as only then the thread handle has room for the mutex. Also avoid unused variable warnings for detached without O_PLMT and for LD in gc_trace_handler() with NDEBUG.
  • FIXED: Local sweep kept sparse empty chunks rather than full ones Chunks lose the slots of promoted atoms, so chunks reused from the pool may have few slots. returnEmptyLocalChunks() returned empty chunks from the end of the list while the remaining slots sufficed, so it returned the new, full chunks and kept the sparse ones from the pool: up to 165 chunks for 1024 slots. It now keeps the empty chunks with the most slots. This made local_blobs:empty_chunks_returned fail under load.
  • ENHANCED: Local sweep returns empty chunks without slots; report slots An empty chunk whose slots all left to ordinary atoms adds nothing to the slots a thread keeps for its local atoms, but it was only returned if the remaining chunks had enough slots. It now always goes.
  • FIXED: assert/1 concurrent with abolish/1 could add a clause to a static predicate If abolish/1 ran while assert/1 added a clause to an undefined predicate, the clause could end up in a static predicate. Further assert/1 calls then raised a permission error.
  • FIXED: abolish/1 concurrent with assert/1 could leave a clause that is never reclaimed If abolish/1 erased a clause that assert/1 was adding, the clause could remain visible and was never reclaimed. The predicate then remained defined after abolish/1, so assert/1 raised a permission error.
  • FIXED: thread_property/2 could crash while detached threads are created Enumerating thread properties while other threads create detached threads could reclaim the handle of a running detached thread, leading to a crash or "invalid atom" error when the thread terminates.
  • FIXED: thread_property/2 could crash while engines are created or destroyed Enumerating thread properties while other threads create and destroy engines could crash, either in thread_property/2 or in engine_next/2.
  • BUILD: make-ppa: do not check build dependencies for the source package The source package is built locally, but the binaries are built on Launchpad, which installs the build dependencies itself. Checking them locally required installing e.g. the graphviz and ffmpeg development packages on the machine that creates the source package.
  • FIXED: \term{F}{Args} failed in LaTeX if Args contains a nested \term The emptiness test used \ifthenelse{\equal{}{#2}}, which fully expands #2 and breaks on a nested \ifthenelse, e.g. for \term{error}{\term{syntax_error}{\term{encoding}{Message}}, Context}. Compare an unexpanded \def using \ifx instead.
  • TEST: stop the gc thread in test_cgc_last garbage_collect_clauses/0 returns immediately if the gc thread is running clause GC that started before the clause was erased, which made the test fail sporadically. As with garbage_collect_atoms/0, this is acceptable outside tests.
  • FIXED: assert/2 could crash if another thread retracted the new clause If another thread retracted a clause right after assert/1 or assert/2 added it, clause garbage collection could reclaim it while assert was still using it. This could crash assert/2 and, less likely, assert/1 or an assert that triggers a predicate event.

[Nov 13 2026]

  • FIXED: generational GC leaked its remembered set for each thread The remembered set of gen_remember() was never freed, so each thread that used it leaked it when it ended. Free it with the stacks.
  • CLEANUP: static int -> bool for functions that return a truth value Mechanical, by a tool that only converts static functions whose every return is a truth value (literal, comparison, logical expression, call to a bool function, or an int variable that only holds truth values), whose address is never taken and that use no macro returning other values. Return values are unchanged.
  • CLEANUP: use false instead of FALSE, remove trailing white space Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y7pJ6r44CrdPMcpJvHR8Eb
  • ADDED: PL_utf8_code_point() to decode UTF-8 as Prolog does Foreign code had no access to Prolog's UTF-8 decoder and packages carried their own copies, which disagreed with Prolog on invalid input. ASCII is decoded inline; other sequences call _PL_utf8_code_point().
  • MODIFIED: help/1: use epilog:tty_link_hook/5 for manual links The Epilog report bar now says "Help on format/2" or "More matches for apropos(Query)" while the pointer is on such a link.

[Nov 12 2026]

  • SECURITY: prolog_file_directives/3 ran the :- if conditions of the file Cross-referencing a file that imports another read the directives of the imported file and called the condition of every :- if or :- elif in it. Opening an untrusted project in an editor that cross-references (PceEmacs, an LSP server) thus ran code from it. Conditions are now only evaluated if they are built from side-effect free predicates such as current_prolog_flag/2, current_predicate/1 and exists_source/1; anything else is false, as was already the case for a predicate of the file itself.
  • FIXED: edit/1: file names could end the quotes of the editor command An external editor is started using shell/1 on a command built from an edit_command/2 template such as '%e +%d '%f''. A file name holding a quote, $ or a backquote ended the quoted text or was expanded by the shell. Such file names now raise domain_error(shell_safe_file_name, File).
  • MODIFIED: sandbox: setting/2 only reads settings of the calling module setting/2 was declared a safe meta-predicate, so sandboxed code could read the settings of any module, e.g., setting(_:_, Value), which may hold passwords or keys. It is now only safe for an unqualified name, which refers to the calling module.
  • MODIFIED: format(Fmt, Args) inside an exception is not formatted if Fmt calls goals Exceptions may be data that was received from elsewhere. When printing error(format(Fmt, Args), _), or a format(Fmt, Args) ball inside a message that holds an exception (unhandled_exception/1, thread and initialization errors), Fmt is no longer used if it contains ~@ or ~W, which call goals. The term is printed instead. A format(Fmt, Args) message issued by the program itself is unchanged.
  • FIXED: libraries became system predicates after the boot compilation Loading a file whose .qlf file is out of date recompiles the .qlf file. In system mode (flag access_level), as during the boot compilation, the predicates are compiled as system predicates and the .qlf file records this, so they remain system predicates when later loaded in user mode. The boot compilation loads library(debug) (autoload/2 in tabling.pl), which loads more libraries. After a change that makes the .qlf files incompatible, e.g., lists:append/3 became a built-in. In system mode we now load the source and leave the .qlf file for a later load.
  • TEST: profile_default: disable the GUI profile hook instead of skipping The unit was skipped whenever xpce defines show_profile_hook/1, which is always the case on macOS. Wrap the hook to fail while the unit runs, so profile/2 gives its text report on every platform.
  • FIXED: profile/2 showed a profile if another thread was profiling If another thread is profiling, profile/2 raises a permission error without running the goal. It still showed the (empty) profile, which opens the profiler GUI if xpce is loaded. On macOS without a display this made test_profile fail.
  • FIXED: races between atom-GC of thread handles and their use Thread handles are blobs that atom-GC reclaims when unreferenced. Their release hook clears PL_thread_info_t->symbol, but several places used that symbol without holding the mutex that serialises this, crashing with "invalid atom_t" or joining a thread twice.
  • FIXED: use-after-free accessing the local data of a completed thread acquire_ldata() published the hazard pointer and then read the magic of the thread's local data, which another thread could have freed before the hazard was visible. It now verifies that info->thread_data still holds the pointer before using it, as freePrologThread() clears it before scanning the hazards. Seen in atom-GC under load with asan.
  • FIXED: crash validating atom_t in threads without a Prolog engine The validate_api flag is a thread-local Prolog flag. Checking it in a thread without engine, e.g., the thread that joins threads whose handle was garbage collected, dereferenced a NULL LD in PL_blob_data(). Atoms and functors are now always checked in such threads.
  • ENHANCED: debug builds check that GC handles all VM variable arguments At startup, debug builds walk each VM instruction that has a variable argument through walk_and_mark() and verify the variable is marked or cleared. A missing case makes GC reset a variable the clause still uses, as happened for I_RATIONAL and A_ROUNDTOWARDS_V. A new instruction that walk_and_mark() does not handle now stops the debug build when it creates boot.prc.
  • FIXED: crash on roundtoward/2 with an invalid variable rounding mode The compiled A_ROUNDTOWARDS_V raised no error and left the arithmetic context open. It now raises the same errors as the interpreted version.
  • FIXED: GC reset variables still used by rational/1 and roundtoward/2 When GC runs inside a call, it walks the remainder of the clause to find the environment variables that are still used and resets the others. The walk did not know I_RATIONAL (rational/1) and A_ROUNDTOWARDS_V (roundtoward/2 with a variable mode), so their variable was reset to an atom, e.g., making A is 1 rdiv 3, garbage_collect, rational(A) fail. Generational GC made this show in the WASM tests.
  • FIXED: Windows (MinGW): crash in engine_yield/1 With VMI functions, engine_yield/1 returns from the VM using longjmp(). The MinGW-w64 longjmp() unwinds the stack using SEH, which crashed (seen under Wine) while unwinding from a VMI function. We now use the non-SEH setjmp()/longjmp(), as we only jump over C frames.
  • FIXED: Windows: tmp_file_stream/3 ignored the extension(Ext) option The name from _wtempnam() was used without adding the extension, so, e.g., PceEmacs chose the wrong mode for a temporary file.
  • FIXED: size_t conversion of a big integer on 32-bit systems PL_get_size_ex() raised type_error(integer, Value) rather than representation_error(size_t(Value)) for an integer that needs a bignum when size_t is 32 bits (e.g., WASM), because the bignum case was not reached. Negative bignums now raise domain_error(not_less_than_zero, Value).
  • TEST: trace_gc: the user_error test needs threads Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y7pJ6r44CrdPMcpJvHR8Eb
  • TEST: local_blobs:empty_chunks_returned: bound by the live blobs, not a constant The number of chunks that remain depends on how many blobs survive and how they are spread over chunks, which depends on the earlier tests and the stacks. Under load the test found 58 chunks against a bound of 50. Check what the sweep promises instead: only chunks holding a live blob and the empty ones that make room for max(2*Live, 1024) blobs remain.
  • TEST: test.pl: do not warn about the type tests on constants type_test(type-2) tests atom/1 on constants on purpose. The compiler warned that these are always true or false while loading test.pl, outside any test, which made a run with --on-error=status exit with status 1 after all tests passed.
  • FIXED: library(persistency): spurious encoding warning on a truncated database A database truncated inside a multibyte character printed an "Illegal UTF-8 continuation" warning besides the truncated_db warning. The file is now read with encoding_errors(error), so the decoding problem is handled as the syntax error at the end of the file that triggers the recovery.
  • ADDED: stream property encoding_errors(Mode) to raise on undecodable input With encoding_errors(error), input that cannot be decoded raises error(syntax_error(encoding(Message)), Context) rather than printing a warning and returning U+FFFD. The default is warning. The option is accepted by open/4 and set_stream/2 and reported by stream_property/2.
  • FIXED: xref_defined_class/3 only enumerated the first local class A cut in the clause for local classes stopped enumeration after the first class of a file. As a result, the xpce class index listed only one class per library file.
  • FIXED: prolog_canonical_source/2: relative name of a loaded file If the file was loaded, a relative name or alias such as library('lists.pl') was returned as its own identifier rather than the absolute file name, because source_file/1 resolves such names. The identifier thus depended on whether the file was loaded. This made xref_source/2 store its data under a different identifier than later queries use if cross-referencing autoloaded the file itself, e.g., the xpce class index lost all classes of library(pce_colour_item).

[Nov 11 2026]

  • ADDED: garbage collection of functors Functors created from data, e.g., by =../2, functor/3 or read/1, are now collected by atom garbage collection if no term, clause or record uses them, together with their name atoms. Before, every functor and its name were kept forever, so a program that builds compounds from external data grew without bound.
  • FIXED: clause GC did not reclaim the last clause erased before it started A clause erased at the generation at which clause garbage collection started was considered visible, so it was kept until some other database update advanced the generation. A clause erased at generation G is not visible for a frame at generation G.
  • FIXED: race between garbage collecting a thread handle and reclaiming the thread free_thread_info() read the thread handle without holding the handle lock, so atom garbage collection could reclaim the handle while it was used. This could crash the gc thread.
  • FIXED: sizes of thread-local predicates could access freed clause indexes Completes the previous fix: '$thread_local_predicate_size'/3 and the thread_property/2 size also walk the clause indexes of another thread's thread-local predicate, which clause garbage collection could free concurrently.
  • FIXED: memory ordering between creating atoms and rehashing the atom table Creating an atom checked whether the table was being rehashed without a full barrier between publishing the new atom and reading the flag. On hardware that reorders a store with a later load the rehash could miss the new atom, and another thread could create a duplicate atom.
  • FIXED: concurrently creating functors could create duplicates A functor created while another thread rehashed the functor table could be missing from the new table, after which another thread created a second functor with the same name and arity. Functors are now created under a lock; lookup remains lock-free.
  • FIXED: clause garbage collection could miss a frame that is being created A new frame gets its generation before the top of the local stack is moved over it. If clause garbage collection scanned the thread at that moment, it could reclaim a clause erased after the frame started, so the call did not see this clause.
  • FIXED: sizes of thread-local predicates of other threads could access freed clauses thread_property/2 size and '$thread_local_predicate_size'/3 walked the clauses of another thread while that thread reclaimed them. The local clause garbage collector now waits for such walks. Also, the thread-local definitions of a thread are no longer accessed after the thread stopped running.
  • FIXED: message_queue_property/2 enumerating anonymous queues during atom-GC Enumerating queues could access an anonymous queue reclaimed concurrently by atom garbage collection. A queue being enumerated is no longer reclaimed, and the enumeration holds a reference to its handle.
  • FIXED: thread_create/3 inherit_from(T) while T terminates The new thread copied data from T while T could free it. A terminating thread now waits until such copies are completed. Also release T on the error paths of thread_create/3.
  • FIXED: thread_detach/1 was sometimes lost The thread flags were bit fields that share a word. Updating one flag, e.g., by the thread itself while it starts, could undo a concurrent thread_detach/1, leaving a completed thread that is never reclaimed.
  • FIXED: joining a thread by id while its handle is garbage collected If the handle of a completed thread was garbage collected while the thread was joined using its integer id, both the garbage collector and thread_join/2 could reclaim the thread. The handle now keeps a link with the thread that is protected by a dedicated lock, as handles are released by atom garbage collection, which cannot use the thread lock.
  • MODIFIED: release mutexes held by a terminating thread A mutex locked by a thread that terminates without unlocking it, e.g., using thread_exit/1 or mutex_lock/1 without mutex_unlock/1, remained locked. A new thread that reuses the thread id was considered its owner. Such mutexes are now unlocked when the thread terminates.
  • FIXED: halting accessed exiting threads unsafely and did not join At halt, the data of running threads was accessed without protecting it against the thread exiting concurrently. Completed threads were only joined if another thread was joining them as well, due to an inverted test. Completed threads that are not detached are now joined and the status true is handled as well.
  • FIXED: garbage collecting a thread handle while the thread is joined If the handle of a completed thread was garbage collected while another thread was joining it by its integer id, both reclaimed the thread. Discarding a handle whose thread was already reclaimed crashed.
  • FIXED: race reusing thread slots could give two threads the same slot The free list of thread slots was a lock-free stack that suffers from the ABA problem. Slots are now added to and taken from the free list while holding the thread lock.
  • FIXED: thread_detach/1 did not reclaim completed threads Detaching a thread that completed, or was completing, marked it as detached, but its resources were never reclaimed. The completing thread now decides whether it is detached while holding the thread lock and thread_detach/1 reclaims threads that completed before.
  • FIXED: crashes using threads and engines that are exiting or destroyed
    • engine_destroy/1 deleted the engine mutex while another thread could be waiting for it in engine_next/2 or engine_post/2,3. The mutex is now deleted when the engine handle is garbage collected and waiting threads raise an existence error. - thread_create/3 using inherit_from(T) crashed if T completed but was not joined. It now raises an existence error if T is not alive.
    • set_thread/2 using debug_mode or class could access the data of a thread that exited concurrently.
  • FIXED: goals woken when receiving a message ran holding the queue lock Receiving a message whose unification wakes goals, e.g., from freeze/2, ran these goals while holding the lock of the queue. If such a goal used the queue, e.g., sending a message to it, the thread deadlocked. The message is now claimed while the woken goals run without the lock. If they fail the message remains at its position in the queue.
  • FIXED: use of mutexes after another thread destroyed them A thread that found a mutex could lock it after another thread destroyed it. Mutexes now count their users and mutex_destroy/1 defers destroying a mutex in use to its last user.
  • FIXED: use of named message queues after another thread destroyed them A thread that found a named queue could lock it after another thread destroyed and freed it. message_queue_property/2 and is_message_queue/1 read queues after releasing them or without locking. Queues are now destroyed under the same lock used to find them and queues are pinned while their properties are enumerated.
  • FIXED: hazard pointer races on the atom and functor tables Threads announce the atom table, atom bucket, functor table or the local data of another thread they use in a hazard slot, which is scanned before the object is freed. The announcement was not ordered before reading the object and the table was not checked to be still current after the announcement, so a resized table could be freed while a thread started using it.
  • FIXED: thread_wait/2 deadlocked if the goal changed a watched predicate If another thread was waiting, a goal of thread_wait/2 that modified a predicate it waits on, e.g., two threads running thread_wait(retract(job(X)), [wait_preds([job/1])]), deadlocked on the first call. Waiting threads were also removed from the list of waiters without holding the lock used to walk this list.
  • FIXED: thread_signal/2, set_thread/2 and thread_property/2 bugs - thread_signal/2 with an integer signal used an uninitialised thread if the thread does not exist and succeeded after raising an error.
    • set_thread(T, alias(A)) gave the alias to the calling thread. - thread_property(T, size(S)) crashed if a temporary module with a thread local predicate was destroyed. - Clause garbage collection could scan an exiting thread's predicate references after they were freed.
  • FIXED: message_queue_set/2: changing max_size could hang writers Setting max_size of a queue to 0 (unlimited) left writers that waited for space blocked. Setting max_size on a queue created without one waited on an uninitialised condition variable. Raising max_size only woke a single waiting writer.
  • FIXED: '$vm_assert' accepted only rationals for big integer operands Also initialise a global stack cell in updating delay lists that could be seen uninitialised by the garbage collector after an error.
  • FIXED: tabling used variable pointers after compiling an answer trie Calling a completed table whose answer trie was not yet compiled, and claiming a shared table, could shift the stacks between finding the variables of the call and building the answer skeleton from them. The lookup is now redone if the stacks moved.
  • FIXED: debugger and frame events used frame pointers after a shift The tracer and the frame_finished event kept pointers to local stack frames across calls that may shift the stacks: the / and S commands of the tracer, finding a goal using the / command, printing a C-level backtrace and creating the arguments for the frame_finished event.
  • FIXED: PL_error() read pointer arguments after a possible stack shift Errors whose culprit is passed as a pointer (occurs check, standard order of cyclic terms, and type and domain errors from arithmetic) read the culprit after creating a foreign frame and term references, which may shift the stacks.
  • FIXED: \=/2, nb_setarg/3 and can_unify() used pointers after a shift These took pointers to their arguments and then created a foreign frame or term reference, which may shift the stacks, before using the pointers.
  • FIXED: stale stack pointers in nb_current/2, continuations and others These used a pointer or value on the stacks after a call that may shift the stacks or run garbage collection.
  • FIXED: get_dict/3 enumeration could use the dict after it moved get_dict/3 with an unbound key kept pointers into the dict while unifying the values, which may shift the stacks or run garbage collection. '$get_dict_kv'/6,8 had a similar problem.
  • FIXED: stale stack data in arithmetic, reading a variable and writing rationals Several built-ins used data on the stacks after a call that may shift the stacks or run garbage collection.
  • FIXED: retract/1 and retractall/1 could use stale argument pointers retract/1 kept a pointer to the arguments of the head while decompiling clauses, which may shift the stacks or run GC, and used it to find the next clause. retractall/1 obtained it before opening a foreign frame. The pointer is now recomputed after these calls.
  • ENHANCED: pack_install/2 verifies downloaded archives against their hash If the pack server knows the SHA1 hash of an archive, the downloaded archive must have this hash. On a mismatch pack_install/2 asks for confirmation or, if not interactive, fails with an error. Archives generated by GitHub are not verified because GitHub may regenerate them.
  • FIXED: pack_install/2: do not let git read URLs and refs as options The URL passed to git clone and the commit, tag or branch passed to git checkout can come from the pack server or the repository. The clone URL is now preceded by "--" and refs that start with a "-" raise a domain error.
  • MODIFIED: library(git): reject arguments that git would read as options Commits, branches, remotes, revision ranges and URLs passed to the library are positional arguments of git. If such an argument starts with a "-", git processes it as an option, e.g., --upload-pack or --output. These now raise a domain_error(git_argument, Arg).
  • FIXED: www_open_url/1: pass the URL to the browser without the shell The browser was started using shell/1 with the URL between double quotes, where the shell still expands $(...) and backquotes. The browser is now started using process_create/3. URLs that start with a "-" are rejected.
  • MODIFIED: writeq/1 writes a 0-code in quoted text as \0\ Quoted atoms and strings with a 0-code were written with the raw 0 byte. They are now written using the octal escape \0\, which reads back as the same text.
  • ADDED: PL_recorded_external_len() to decode untrusted external records PL_recorded_external_len() validates a record of the given length before copying it to the Prolog stack and fails if it is invalid. Use it for records read from files or databases. PL_recorded_external() still trusts its input.
  • MODIFIED: errors for text with a 0-code and integers that do not fit C Converting text with an embedded 0-code to a 0-terminated C string, as done by PL_get_chars() and the other functions that do not return the length, raises representation_error(nul_terminated_string(Text)) instead of silently using the text before the 0-code.
  • MODIFIED: read_pending_codes/3 on invalid UTF-8 returns U+FFFD read_pending_codes/3 and read_pending_chars/3 failed on an illegal UTF-8 start byte and judged sequences only by their first byte. They now decode as get_code/2 does, returning U+FFFD for invalid sequences and for an incomplete sequence at the end of the input.
  • FIXED: converting text ending in an incomplete multibyte sequence Converting multibyte (locale) text, e.g. environment values and file names, did not handle an incomplete sequence at the end of the text and read before the start of the text. This now raises an incomplete_multibyte_sequence error.
  • MODIFIED: reject overlong and out-of-range UTF-8 sequences Decoding UTF-8 from streams and from text now only accepts the shortest encoding of a code point up to 0x10FFFF. Streams return U+FFFD with a warning for other sequences, decoding text maps the first byte to its code as for other invalid UTF-8.

[Nov 10 2026]

  • ENHANCED: faster compilation of deeply nested disjunctions Balancing the variables of the alternatives of a disjunction scanned both alternatives, which made compiling nested disjunctions quadratic in the size of the clause. The variable analysis now computes the set of frame slots used by each alternative bottom-up, so the cost is limited to the number of slots times the nesting depth. The generated code is unchanged.
  • FIXED: loading clauses with more than 65535 variables from .qlf files The variable counts of a clause were truncated to 16 bits when loading a .qlf file.
  • ENHANCED: share frame slots between alternatives of disjunctions Variables that only appear in one alternative of a disjunction, if-then-else or soft-cut now share their frame slot with variables local to the other alternatives. This reduces the frame size and removes most of the C_VAR instructions needed to balance the variables of the branches.
  • FIXED: unbounded alloca() when loading QLF terms and in setenv/2 Loading a QLF term allocated its variable table on the C stack using a size from the file and did not check variable indexes. Large tables now use the heap and invalid counts and indexes are QLF format errors. On systems without setenv(), setenv/2 allocated its argument on the C stack.
  • ENHANCED: reduce C-stack usage of the VM and arithmetic GMP_STACK_ALLOC is reduced from 1024 to 256 units. This buffer for GMP temporaries is part of the frame of PL_next_solution() and arithmetic functions such as is/2 and comparison. The smaller buffer has no measurable impact on bignum performance and allows threads with a 64Kb C stack to run code that needs to call Prolog from C, such as autoloading.
  • FIXED: crashes compiling and decompiling deeply nested clause bodies Compiling clauses with deeply nested disjunctions, if-then-else or negation and decompiling such clauses (clause/2, retract/1, listing/1) could exhaust the C stack. Clauses with many variables could do so in threads with a small C stack.

Package RDF

[Nov 20 2026]

  • DOC: do not load the times package after pl.sty pl.sty selects the fonts. Loading times later selected Type 1 fonts that lualatex cannot use with the TU encoding.

Package clib

[Nov 19 2026]

  • MODIFIED: process_create/3: text with a 0-code raises the kernel error Arguments, environment values and the working directory that contain a 0-code now raise representation_error(nul_terminated_string(Text)) as the kernel does for PL_get_chars(), rather than domain_error(text_non_zero_code, Text) or (Windows) domain_error(no_zero_code_atom, Text).
  • FIXED: MacOS: process_create/3 child could kill the Epilog window A child that inherits the pty of an Epilog window adopts it as its controlling terminal. On BSD systems, MacOS among them, the kernel revokes the terminal when that child exits, so the next write of the calling thread failed with EIO and the window went down. Like shell/1, save the terminal before forking and repair it when the child is reaped. Requires PL_save_ctty()/PL_restore_ctty() from the core.

Package cql

[Nov 23 2026]

Package http

[Nov 21 2026]

  • FIXED: http_unix_daemon: --ip=Host and --http=Host:Port `--ip=Host` combined with `--http=Port` left the server options unbound, causing an error from option/2. `--http=Host:Port and --https=Host:Port` were rejected by the option type check, although documented and handled by make_address/5.

[Nov 20 2026]

  • FIXED: HTTP server leaked the socket if a reply failed on close If the handler succeeded but cgi_finish/4 raised (typically because the client went away), the CGI stream was never closed. It keeps the socket stream open, so closing the connection did not release the file descriptor. This affects, for example, SSE handlers that catch the I/O error from a dead client and succeed.
  • FIXED: Writing a parsed Set-Cookie header used wrong attribute names Max-Age was emitted as max_age, which browsers ignore, and Expires was quoted. Cookie attributes now use their canonical names and their values are emitted verbatim (RFC 6265).

Package mqi

[Nov 20 2026]

  • DOC: section id mqi-messages was used twice Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Package nlp

[Nov 21 2026]

  • FIXED: porter_stem/2, unaccent/2: crash on long words on 32-bit systems unaccent() advanced its output pointer beyond the end of the buffer to compute the required size. With a buffer on the stack near the top of the address space this pointer could wrap around and pass the bounds check again, writing to low memory. Count using an index instead. See SWI-Prolog/swipl-devel#1590.

Package pldoc

[Nov 20 2026]

  • FIXED: LaTeX backend: a [[Name/Arity]] list without documented predicates created an empty description environment This is a LaTeX error. Now emit an item with the reference. Also added the missing message for pldoc(no_predicates_from(Spec)).

Package xpce

[Nov 23 2026]

  • FIXED: video: live HTTP streams ended in an I/O error with FFmpeg 9 FFmpeg 9 ends an HTTP body without a known length, such as a chunked response, with AVERROR(EIO) instead of AVERROR_EOF. Treat this as the end of a non-seekable network stream.

[Nov 22 2026]

  • TEST: disable SDL's AltiVec code for the xpce tests on ppc64le On little-endian POWER, SDL3's AltiVec code scrambles the bytes when SDL_ConvertSurface() converts XRGB8888, BGRA8888 or XBGR8888 to ARGB8888, failing the pixel tests. See SWI-Prolog/swipl-devel#1590.
  • FIXED: starting a process took seconds with a high file descriptor limit The child closed every possible descriptor up to RLIMIT_NOFILE one by one. Containers often set this to a million or more, which made each process start take 50ms on a fast x86 machine and seconds on riscv64, failing the process_exit test in the Alpine CI. Now uses close_range() on Linux and closefrom() where available.

[Nov 21 2026]

  • PORT: pcePP(): fall back to setjmp() if sigsetjmp() is not available Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

[Nov 20 2026]

  • FIXED: pp() of an invalid object crashed after an earlier recovery pcePP() recovers from SIGSEGV/SIGBUS using longjmp() out of the signal handler. Where setjmp() does not save the signal mask (Linux), the signal remained blocked after the first recovery, so a second fault killed the process. Install the handler with SA_NODEFER and use sigsetjmp(env, 0)/siglongjmp(). This also avoids the cost of saving the signal mask on macOS, where setjmp() does so under a process-wide lock.

[Nov 19 2026]

  • FIXED: MacOS: swipl-win exited after running a child process E.g., pack_upgrade/1 of a git pack. When a child that adopted the window's pty exits, the kernel revokes the pty and the window reads end of file. rlc_reclaim_pty() reconnected it, but since the pty is drained by the watcher thread the end of file stayed recorded on the watch, so the next read reported it again and the window closed, halting swipl-win. Clear it after reclaiming the pty.
  • TEST: #1582 deleting on a full first row of a wrapped input line Regression test for the libedit fix: delete a character from the first row of a wrapped input line whose first row fills the width exactly.

[Nov 18 2026]

  • FIXED: SDL: crash in CtoEvent() handling the end of a visual flash The flash timer took its reference on the frame only when it fired, in SDL's timer thread, so a frame destroyed during the flash left a dangling pointer in MY_EVENT_FLASH_END. Take the reference when the flash is scheduled. Also do not end a newer flash early.