pike issueshttps://git.lysator.liu.se/pikelang/pike/-/issues2018-03-01T13:46:11Zhttps://git.lysator.liu.se/pikelang/pike/-/issues/8080Former Fix task of PIKE-79 (#8079). See it for details.2018-03-01T13:46:11ZPeter BortasFormer Fix task of PIKE-79 (#8079). See it for details.Imported from https://youtrack.roxen.com/issue/PIKE-80
Reported by @grubba
Blocking [PIKE-79](#8079)Imported from https://youtrack.roxen.com/issue/PIKE-80
Reported by @grubba
Blocking [PIKE-79](#8079)https://git.lysator.liu.se/pikelang/pike/-/issues/8079Unicode.normalize() in NFC mode is a noop for narrow strings.2020-03-05T17:27:31ZPeter BortasUnicode.normalize() in NFC mode is a noop for narrow strings.Imported from https://youtrack.roxen.com/issue/PIKE-79
Reported by @grubba
Optimize the case where `Unicode.normalize()` is called in *NFC* mode on an 8-bit string.Imported from https://youtrack.roxen.com/issue/PIKE-79
Reported by @grubba
Optimize the case where `Unicode.normalize()` is called in *NFC* mode on an 8-bit string.https://git.lysator.liu.se/pikelang/pike/-/issues/8078Pike hangs on exit when compiled --with-cleanup-on-exit.2018-02-26T17:12:30ZPeter BortasPike hangs on exit when compiled --with-cleanup-on-exit.Imported from https://youtrack.roxen.com/issue/PIKE-78
Reported by @grubba
Blocking [PIKE-62](#8062)
LysLysKOM 22448381:
```
22448381 igår 06:32 /23 rader/ Martin Nilsson (Coppermist)
Mottagare: Henrik Grubbström (Lysator) <15078>
Mot...Imported from https://youtrack.roxen.com/issue/PIKE-78
Reported by @grubba
Blocking [PIKE-62](#8062)
LysLysKOM 22448381:
```
22448381 igår 06:32 /23 rader/ Martin Nilsson (Coppermist)
Mottagare: Henrik Grubbström (Lysator) <15078>
Mottagare: Martin Nilsson (Coppermist) <16144>
Ärende: trådlås
------------------------------------------------------------
Pike kompilerad med --with-dmalloc hänger i exit.
(gdb) bt
1. 0 __lll_lock_wait () at
../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
1. 1 0x00007ffff7232b70 in pthread_cond_broadcast@@GLIBC_2.3.2 ()
at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:133
1. 2 0x00000000005728bd in unlock_pike_compiler ()
at /home/nilsson/pike/src/pike_compiler.cmod:69
1. 3 0x00000000005d7b1a in exit_threads_disable (o_UNUSED=0x0)
at /home/nilsson/pike/src/threads.c:1028
1. 4 exit_interleave_mutex (im# im@entry
0xa4fa20 <mc_mutex>)
at /home/nilsson/pike/src/threads.c:1086
1. 5 0x00000000004d116a in exit_mc () at
/home/nilsson/pike/src/gc.c:6342
1. 6 0x0000000000683733 in exit_builtin_modules ()
at /home/nilsson/pike/src/pike_modules.c:137
1. 7 0x0000000000684d92 in exit_modules ()
at /home/nilsson/pike/src/pike_modules.c:533
1. 8 0x000000000051cc28 in pike_do_exit (num=0)
at /home/nilsson/pike/src/pike_embed.c:436
1. 9 0x0000000000414a22 in main (argc# 2, argv
0x7fffffffe3f8)
at /home/nilsson/pike/src/main.c:682
(22448381) /Martin Nilsson (Coppermist)/------------
```https://git.lysator.liu.se/pikelang/pike/-/issues/8077Former QA Web.decode_jwt() et al fix. task of PIKE-76 (#8076). See it for det...2018-02-23T10:15:05ZPeter BortasFormer QA Web.decode_jwt() et al fix. task of PIKE-76 (#8076). See it for details.Imported from https://youtrack.roxen.com/issue/PIKE-77
Reported by @grubba
Blocking [PIKE-237](#8237)Imported from https://youtrack.roxen.com/issue/PIKE-77
Reported by @grubba
Blocking [PIKE-237](#8237)https://git.lysator.liu.se/pikelang/pike/-/issues/8076Fix insufficient character decoding in Web.decode_jwt2020-03-05T18:07:39ZPeter BortasFix insufficient character decoding in Web.decode_jwtImported from https://youtrack.roxen.com/issue/PIKE-76
Reported by Martin Karlgren <marty@roxen.com>
Blocking [PIKE-237](#8237)
`Web.decode_jwt` doesn't seem to decode UTF-8 characters correctly. `Web.decode_jws` should probably use `...Imported from https://youtrack.roxen.com/issue/PIKE-76
Reported by Martin Karlgren <marty@roxen.com>
Blocking [PIKE-237](#8237)
`Web.decode_jwt` doesn't seem to decode UTF-8 characters correctly. `Web.decode_jws` should probably use `Standards.JSON.decode_utf8`.https://git.lysator.liu.se/pikelang/pike/-/issues/8075Former Revert and fix. task of PIKE-63 (#8063). See it for details.2018-02-13T15:18:57ZPeter BortasFormer Revert and fix. task of PIKE-63 (#8063). See it for details.Imported from https://youtrack.roxen.com/issue/PIKE-75
Reported by @grubba
Blocking [PIKE-63](#8063)Imported from https://youtrack.roxen.com/issue/PIKE-75
Reported by @grubba
Blocking [PIKE-63](#8063)https://git.lysator.liu.se/pikelang/pike/-/issues/8074Former Fix task of PIKE-72 (#8072). See it for details.2018-02-13T15:14:32ZPeter BortasFormer Fix task of PIKE-72 (#8072). See it for details.Imported from https://youtrack.roxen.com/issue/PIKE-74
Reported by @grubba
Blocking [PIKE-72](#8072)Imported from https://youtrack.roxen.com/issue/PIKE-74
Reported by @grubba
Blocking [PIKE-72](#8072)https://git.lysator.liu.se/pikelang/pike/-/issues/8073Former Investigate task of PIKE-72 (#8072). See it for details.2018-02-13T15:12:34ZPeter BortasFormer Investigate task of PIKE-72 (#8072). See it for details.Imported from https://youtrack.roxen.com/issue/PIKE-73
Reported by @grubba
Blocking [PIKE-72](#8072)Imported from https://youtrack.roxen.com/issue/PIKE-73
Reported by @grubba
Blocking [PIKE-72](#8072)https://git.lysator.liu.se/pikelang/pike/-/issues/8072Nettle warning2020-03-05T17:25:40ZPeter BortasNettle warningImported from https://youtrack.roxen.com/issue/PIKE-72
Reported by Marcus Wellhardh <wellhard@roxen.com>
Latest build 6.2.84 gives the following warning:
```
pike/lib/modules/__builtin.pmod/Nettle.pmod/Hash.pike:446: Warning: Not a va...Imported from https://youtrack.roxen.com/issue/PIKE-72
Reported by Marcus Wellhardh <wellhard@roxen.com>
Latest build 6.2.84 gives the following warning:
```
pike/lib/modules/__builtin.pmod/Nettle.pmod/Hash.pike:446: Warning: Not a valid object type.
pike/lib/modules/__builtin.pmod/Nettle.pmod/Hash.pike:446: Warning: Expected: function(void | mixed ... : object) | object | program.
pike/lib/modules/__builtin.pmod/Nettle.pmod/Hash.pike:446: Warning: Got : mixed.
pike/lib/modules/__builtin.pmod/Nettle.pmod/Hash.pike:532: Warning: Invalid type.
pike/lib/modules/__builtin.pmod/Nettle.pmod/Hash.pike:532: Warning: Expected: function(void | mixed ... : object) | object | program | type(mixed).
pike/lib/modules/__builtin.pmod/Nettle.pmod/Hash.pike:532: Warning: Got : mixed.
pike/lib/modules/__builtin.pmod/Nettle.pmod/Hash.pike:593: Warning: Invalid type.
pike/lib/modules/__builtin.pmod/Nettle.pmod/Hash.pike:593: Warning: Expected: function(void | mixed ... : object) | object | program | type(mixed).
pike/lib/modules/__builtin.pmod/Nettle.pmod/Hash.pike:593: Warning: Got : mixed.
```https://git.lysator.liu.se/pikelang/pike/-/issues/8071WhiteFish: Detect and repair corrupted entries.2020-03-06T09:40:01ZPeter BortasWhiteFish: Detect and repair corrupted entries.Imported from https://youtrack.roxen.com/issue/PIKE-71
Reported by @grubba
The search engine causes performance issues because of high I/O-load partly because the compactor has nut run for a long time (corrupted blobs). Re-indexing is ...Imported from https://youtrack.roxen.com/issue/PIKE-71
Reported by @grubba
The search engine causes performance issues because of high I/O-load partly because the compactor has nut run for a long time (corrupted blobs). Re-indexing is not an option, takes too long time and the user can not search during the time. The fastest fix is probably to make the compactor handle corrupted blobs and fix them on the fly.
The search compactor exits with the following error, fix it!
```
Real len out of sync for word "10103"; 64 != 17
Real len out of sync for word "10107"; 128 != 28
Real len out of sync for word "10137"; 64 != 7
*** Error in `/usr/local/roxen/server-6.1.215/bin/roxen': free(): invalid next size (fast): 0x00000000025102d0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7c619)[0x7f65e4284619]
/usr/local/roxen/server-6.1.215/pike/lib/modules/_WhiteFish.so(+0x7fc9)[0x7f65d9e56fc9]
/usr/local/roxen/server-6.1.215/pike/lib/modules/_WhiteFish.so(+0x71c5)[0x7f65d9e561c5]
...
```https://git.lysator.liu.se/pikelang/pike/-/issues/8070Former Fix over aggressive constant folding in '.'-operator. task of PIKE-63 ...2018-02-12T10:49:20ZPeter BortasFormer Fix over aggressive constant folding in '.'-operator. task of PIKE-63 (#8063). See it for details.Imported from https://youtrack.roxen.com/issue/PIKE-70
Reported by @grubba
Blocking [PIKE-63](#8063)Imported from https://youtrack.roxen.com/issue/PIKE-70
Reported by @grubba
Blocking [PIKE-63](#8063)https://git.lysator.liu.se/pikelang/pike/-/issues/8069Former Merge [Pike-62] to Pike 8.0. task of PIKE-62 (#8062). See it for details.2018-02-21T10:32:23ZPeter BortasFormer Merge [Pike-62] to Pike 8.0. task of PIKE-62 (#8062). See it for details.Imported from https://youtrack.roxen.com/issue/PIKE-69
Reported by @grubbaImported from https://youtrack.roxen.com/issue/PIKE-69
Reported by @grubbahttps://git.lysator.liu.se/pikelang/pike/-/issues/8068Former QA [Pike-62] task of PIKE-62 (#8062). See it for details.2018-02-20T09:16:22ZPeter BortasFormer QA [Pike-62] task of PIKE-62 (#8062). See it for details.Imported from https://youtrack.roxen.com/issue/PIKE-68
Reported by @grubbaImported from https://youtrack.roxen.com/issue/PIKE-68
Reported by @grubbahttps://git.lysator.liu.se/pikelang/pike/-/issues/8066Former QA task of PIKE-65 (#8065). See it for details.2018-02-08T10:41:57ZPeter BortasFormer QA task of PIKE-65 (#8065). See it for details.Imported from https://youtrack.roxen.com/issue/PIKE-66
Reported by @grubbaImported from https://youtrack.roxen.com/issue/PIKE-66
Reported by @grubbahttps://git.lysator.liu.se/pikelang/pike/-/issues/8065register_path() doesn't reschedule the backend_check() call_out.2020-03-05T17:23:49ZPeter Bortasregister_path() doesn't reschedule the backend_check() call_out.Imported from https://youtrack.roxen.com/issue/PIKE-65
Reported by @grubba
If the newly added monitor ends up at the head of the `monitor_queue`, the `backend_check()` call_out likely needs to be rescheduled.Imported from https://youtrack.roxen.com/issue/PIKE-65
Reported by @grubba
If the newly added monitor ends up at the head of the `monitor_queue`, the `backend_check()` call_out likely needs to be rescheduled.https://git.lysator.liu.se/pikelang/pike/-/issues/8064backend_check() call_out not rescheduled properly by adjust_monitor().2018-02-07T16:26:12ZPeter Bortasbackend_check() call_out not rescheduled properly by adjust_monitor().Imported from https://youtrack.roxen.com/issue/PIKE-64
Reported by @grubba
The `backend_check()` call_out doesn't get rescheduled if the adjusted monitor already is at the head of the `monitor_queue`.Imported from https://youtrack.roxen.com/issue/PIKE-64
Reported by @grubba
The `backend_check()` call_out doesn't get rescheduled if the adjusted monitor already is at the head of the `monitor_queue`.https://git.lysator.liu.se/pikelang/pike/-/issues/8063Thread.Thread->id_number() sometimes returns same value for different threads2020-03-05T17:26:11ZPeter BortasThread.Thread->id_number() sometimes returns same value for different threadsImported from https://youtrack.roxen.com/issue/PIKE-63
Reported by KG Sterneberg <kg@roxen.com>
Encountered this problem when writing and running tests for the new Edition Purger.
Tried to reproduce the problem in an isolated test but ...Imported from https://youtrack.roxen.com/issue/PIKE-63
Reported by KG Sterneberg <kg@roxen.com>
Encountered this problem when writing and running tests for the new Edition Purger.
Tried to reproduce the problem in an isolated test but failed.
In order to reproduce, checkout branch kg/PIKE-X-thread-id-number-issue in Print and Roxen repos. Then run the the PurgerTest by executing:
`TEST_SUITE=PurgerTest ./start --self-test --tests=rep_archive -DARCHIVE_DEBUG`
NB: You need to have Elasticsearch installed and configured on localhost:9200 and test-indices created. Go to the directory `scripts` in the Archive repo and execute `sh create_indices.sh test` (NB: You must stand in directory 'scripts').
In the debug-log you will see stuff like this:
TRACE: Clearing cache. thread id: 140735632249664, Thread: Thread.Thread(0x70000c65a000)
TRACE: Clearing cache. thread id: 140735632249664, Thread: Thread.Thread(0x70000c14b000)
TRACE: Clearing cache. thread id: 140735632249664, Thread: Thread.Thread(0x70000c351000)
TRACE: Clearing cache. thread id: 140735632249664, Thread: Thread.Thread(0x70000c24e000)https://git.lysator.liu.se/pikelang/pike/-/issues/8062Locking of mutexes while threads disabled.2020-03-05T17:26:59ZPeter BortasLocking of mutexes while threads disabled.Imported from https://youtrack.roxen.com/issue/PIKE-62
Reported by @grubba
Blocked by [PIKE-78](#8078)
Attempting to lock mutexes (like lock_compiler()) ought to throw errors when threads are disabled.Imported from https://youtrack.roxen.com/issue/PIKE-62
Reported by @grubba
Blocked by [PIKE-78](#8078)
Attempting to lock mutexes (like lock_compiler()) ought to throw errors when threads are disabled.https://git.lysator.liu.se/pikelang/pike/-/issues/8061`== on Calendar.Events triggers compilation of Geography.Countries.2018-02-06T16:12:50ZPeter Bortas`== on Calendar.Events triggers compilation of Geography.Countries.Imported from https://youtrack.roxen.com/issue/PIKE-61
Reported by @grubbaImported from https://youtrack.roxen.com/issue/PIKE-61
Reported by @grubbahttps://git.lysator.liu.se/pikelang/pike/-/issues/8060Leak of types when getters or setters in some circumstances.2018-01-25T11:15:28ZPeter BortasLeak of types when getters or setters in some circumstances.Imported from https://youtrack.roxen.com/issue/PIKE-60
Reported by @grubba
The following leak appeared after commit `cc5e92a5b5c109f6e225101d94fa35e1ba00c0dd`:
```
Pike v8.1 release 11 running Hilfe v3.5 (Incremental Pike Frontend)
> ...Imported from https://youtrack.roxen.com/issue/PIKE-60
Reported by @grubba
The following leak appeared after commit `cc5e92a5b5c109f6e225101d94fa35e1ba00c0dd`:
```
Pike v8.1 release 11 running Hilfe v3.5 (Incremental Pike Frontend)
> Nettle;
(1) Result: Nettle
Terminal closed.
Leak(s) found at exit:
Type at 0x555557488e30 got 1 unaccounted refs (and 0 accounted): int(1..2147483647)
Type at 0x55555748a370 got 1 unaccounted refs (and 0 accounted): { Gmp.mpz = object(implements 32) }
Free of leaked type 0x555557488e30 from /home/grubba/src/Pike/8.1/src/pike_modules.c:318, 0 refs remaining
Free of leaked type 0x55555748a370 from /home/grubba/src/Pike/8.1/src/pike_modules.c:318, 0 refs remaining
```