Open tavmem opened 9 years ago
i've noticed a similar ipc issue which can cause kona to crash when a what i believe (*) is a valid expression is send via ipc, if it is not wrapped into error trap. when wrapped into error trap the client hangs.
K Console - Enter \ for help
h: 3: (`"127.0.0.1";10000); ,'$!3 / check - ok (,[,"0";];,[,"1";];,[,"2";]) . ",'$!3" / evaluate as value (,[,"0";];,[,"1";];,[,"2";]) h 4: ",'$!3" / eval in remote zsh: segmentation fault rlwrap -n ./k
notes: 1/ the server was started with \e 0. hitting enter at the console after clients' segfault displays: \e 0 syntax error
2/ when the expression in the client is wrapped with error trap the client does not crash but hangs instead: h 4: .[{. x};",'$!3";:] / unable to recover, server console appears to be ok
3/ (*) - when evaluating the same expression in k2.8 results in a valence error. however, in kdb3.2 output agrees with kona:
K 2.8 2000-10-10 Copyright (C) 1993-2000 Kx Systems Evaluation. Not for commercial use. \ for help. \ to exit.
,'$!3
valence error
,'$!3
^
KDB+ 3.2 2014.11.01 Copyright (C) 1993-2014 Kx Systems
l32/ 2()core 3961MB theo debian-7v1 127.0.1.1 NONEXPIRE
q)\
,'$!3
,'[(,"0";,"1";,"2")]
This issue was raised by theosjp in the Kona-Users forum on Google Groups:
bakul commented on what he thought should be done about this in issue #102:
There is a warning on page 318 of the 2008 printing of "q For Mortals" by Jeffrey Borror:
Based on this comment, I consider this issue to be an "enhancement" rather than a "feature" that is in the scope of Version 1 of Kona.