slang-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] Screen wider than 256 chars


Hello,
I have resolution of 265x91 (chars) in my xterm. slrn/Slang SEGFAULTS
because some has defined in /usr/include/slang.h:

	/* Maximum size of display */
	#define SLRL_DISPLAY_BUFFER_SIZE 256

which isn't exactly true. :-)

some information of my valgrind run:

/home/cip/adm/sithglan/work/valgrind-2.1.2/bin/valgrind --tool=memcheck \
	--run-libc-freeres=no --num-callers=10 --show-reachable=yes \
	--leak-check=yes --error-limit=no --log-file=/tmp/valgrind src/slrn

==10624== Invalid write of size 1
==10624==    at 0x1B94AA02: (within /lib/libslang.so.1.4.9)
==10624==    by 0x1B94AF1A: SLang_read_line (in /lib/libslang.so.1.4.9)
==10624==    by 0x806A89A: generic_read_input (misc.c:2120)
==10624==    by 0x806AA3C: slrn_read_input (misc.c:2173)
==10624==    by 0x806ABBE: slrn_read_integer (misc.c:2219)
==10624==    by 0x805BF85: slrn_group_select_group (group.c:890)
==10624==    by 0x805D384: select_group_cmd (group.c:1679)
==10624==    by 0x80784DC: slrn_do_keymap_key (slrn.c:1657)
==10624==    by 0x80786EB: main (slrn.c:1762)
==10624==  Address 0x20202020 is not stack'd, malloc'd or (recently) free'd
==10624==
==10624== Process terminating with default action of signal 11 (SIGSEGV)
==10624==  Access not within mapped region at address 0x20202020
==10624==    at 0x1B94AA02: (within /lib/libslang.so.1.4.9)
==10624==    by 0x1B94AF1A: SLang_read_line (in /lib/libslang.so.1.4.9)
==10624==    by 0x806A89A: generic_read_input (misc.c:2120)
==10624==    by 0x806AA3C: slrn_read_input (misc.c:2173)
==10624==    by 0x806ABBE: slrn_read_integer (misc.c:2219)
==10624==    by 0x805BF85: slrn_group_select_group (group.c:890)
==10624==    by 0x805D384: select_group_cmd (group.c:1679)
==10624==    by 0x80784DC: slrn_do_keymap_key (slrn.c:1657)
==10624==    by 0x80786EB: main (slrn.c:1762)

just use a big screen and open a group with several thousand messages and you
get an instead segfault.

	Thomas

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]