Pike 8.0.702 Release notes
Changes since Pike 8.0.610 (release 12)
New Features
Sql.mysql
In unicode decode mode, characters outside the BMP are now encoded as UTF-8 encoded UTF-16. This works around that MySQL/MariaDB don’t allow characters outside the BMP in utf8 strings (and instead require the character set to be declared as utf8mb4, which has quite a few side effects).
Bug fixes
Runtime
Fixed NULL dereference (SIGSEGV) in _disable_threads() if another thread is holding the compiler lock.
Fixed loss of Pike_interpreter_pointer (race, –with-debug only).
The Pike_interpreter_pointer must not be altered by threads not holding the interpreter lock…
Calendar
- Updated tzdata to 2018e.
Compiler
The machine code generator for ppc64 now generates correct code under ABI v2 (ppc64le)
Fixed an incompatibility between the machine code generator on ppc and GCC 7.
Support inherit of CompilerEnvironment.
Fix some bugs triggered in the supporter subsystem when executing in an inherited CompilerEnviroment.
Filesystem.Monitor
Fix NULL-dereference in bump().
Survive st being zero in bump().
Fuse
Switched the Fuse module to use a different libfuse API.
The way we used to use libfuse got first deprecated and support for it is now removed from the libfuse git repository entirely. In addition, our previous use of said libfuse API triggered a bug resulting in a segmentation fault in at least libfuse 2.9.2 and 2.9.7. We now use libfuse in a less elegant but more usual way, and do not trigger the bug anymore.
Handle errors in Fuse operations (i.e. Pike code implementing FUSE filesystems) gently by reporting ENOSYS instead of exiting the process.
Gmp.mpq
Fix numbers between -1.0 and 1.0 sometimes missing a leading 0.
Pike.identify_cycle
Fix various issues with LFUNs throwing errors.
LFUNs used by mapping operations may throw errors; this caused identify_loop_visit_leave() to also throw errors. The rest of the identify_cycle code was not happy about this and
Forgot to unlock the mc_mutex. This caused all following calls to Pike.identify_cycle() and Pike.count_memory() to hang.
Leaked memory.
The above issues are now avoided by instead using the addresses of objects as indices in the affected mapping. It also fixes the issue with hangs if there are objects with lfuns calling Pike.identify_cycle() or Pike.count_memory().
Protocols.HTTP.Server
Fix an issue with accounting of sent bytes that caused responses to requests over HTTPS to not finish on success, but instead the whole connection to time out. Data for the first request was usually fully written, but the connection neither was properly closed nor re-used.
Protocols.WebSocket
Added low_connect() and low_websocket_accept().
These make it easier to test the error handling in the module, and to replace the HTTP-layer.
Improved compliance with RFC 6455 section 4.1.
The nonce is now actually random.
The http version, method and headers are validated.
Header case-sensitivity issues have been fixed.
The module now has a testsuite.
Improved HTTP-header camel-case consistency.
Sass
Errors thrown by handle_sass_import() can now be caught and handled by the caller of compile_file() and compile_string().
Added the option “sass_syntax”.
This option will parse the input as having indented Sass syntax. This option only has effect in compile_string().
Added method sass2scss() to convert Sass syntax to SCSS syntax.
Sql.pgsql
Fix regression bug since rel 12 that hangs queries returning over 1024 records.
Fix all rare-deadlock-causes logged in the last two years.
Stdio.Buffer
Eliminate race condition in read_cstring().
Stdio.UDP
Fixed wait() failing with ENOTSOCK on NT.
Thread.Farm
Fixed lost error in provide_error() exception handling.
Avoid delayed deallocation of jobs by clearing references immediately after execution.
Tools.Standalone
extract_autodoc: Terminate on failure.
Reenable termination on extraction failure.
Building & Tools
Java
The location of libjvm is now detected on Ubuntu 18.04.
Detect and support OpenJDK 10.
Postgres
Support Postgresql 10 and later.
Sass
Improved detection of C++ runtime library on MacOS X.