home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 32911 
 Eric Oulashin to GitLab issue in main/sbbs 
 JS: console.getstr() causes Synchronet t 
 14 Dec 25 17:16:20 
 
TZUTC: -0800
MSGID: 59051.sync_sys@1:103/705 2da57e0f
PID: Synchronet 3.21a-Linux master/637e4a3d2 Dec 13 2025 GCC 12.2.0
TID: SBBSecho 3.33-Linux master/637e4a3d2 Dec 13 2025 GCC 12.2.0
BBSID: VERT
CHRS: UTF-8 4
FORMAT: flowed
open https://gitlab.synchro.net/main/sbbs/-/issues/1032

From the [Synchronet JS object model documentation:](https://www
synchro.net/docs/jsobjs.html)

> console.getstr(\[_string_ default_value\] \[,_number_ maxlen=128\]
\[,_number_ k_mode=K_NONE\] \[,_array_ history\[\]\])

I'm currently using a Linux build from December 8 at 5:04PM (the latest code
failed to build). I've noticed I can pass 0 for the 2nd argument (maxlen), but
passing a negative value seems to cause Synchronet to crash.  For instance:

```
var input = console.getstr("", -1, K_UPPER|K_NOSPIN|K_TRIM);
```

When that line of code ran for me, I was disconnected, and I saw this in the
sbbs log output:

> Dec 14 17:05:54 EO-BBS-NIX systemd\[1\]: sbbs.service: Main process exited,
code=dumped, status=6/ABRT
>
> Dec 14 17:05:54 EO-BBS-NIX systemd\[1\]: sbbs.service: Failed with result
'core-dump'.

Normally I'd update my binaries, but it's failing to build due to the
following error:

> make: \*\*\* No rule to make target 'js_archive.c', needed by 
gcc.linux.x64.obj.release-mt/js_archive.o'. Stop.
--- SBBSecho 3.33-Linux
 * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
SEEN-BY: 103/13 705 105/81 106/201 124/5016 128/187 129/14 153/757
SEEN-BY: 153/7715 154/10 30 110 203/0 218/700 221/0 226/30 227/114
SEEN-BY: 229/110 112 134 206 317 400 426 428 470 700 705 240/1120
SEEN-BY: 240/5832 263/1 266/512 280/464 5003 5006 291/111 292/8125
SEEN-BY: 301/1 320/219 322/757 341/66 234 342/200 396/45 423/120 460/58
SEEN-BY: 460/256 1124 633/280 712/848 770/1 902/26 5020/400 8912 5054/30
SEEN-BY: 5075/35
PATH: 103/705 280/464 460/58 229/426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca