I have found a set of annoying aesthetic bugs, as well as a crasher in
the Edit Workspace Name code.
First, the crasher:

Script started on Tue Jan 15 22:20:51 2002
export DISPLAY=:0.0
export DISPLAY=:0.0
xset r rate 1000 255
gdb code/blackbox-0.61.1/src/blackbox
GNU gdb 5.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) run code/blckbox-0.61.1/src/blackbox
Starting program: /home/woodblock/code/blackbox-0.61.1/src/blackbox 
code/blackbox-0.61.1/src/blackbox
failed to open catalog, using default messages
BScreen::BScreen: managing screen 0 using visual 0x23, depth 16
BlackboxWindow::BlackboxWindow(): creating 0x400003
BlackboxWindow::mapRequestEvent() for 0x400003
Program received signal SIGSEGV, Segmentation fault.
0x4008b833 in XkbTranslateKeyCode () from /usr/X11R6/lib/libX11.so.6
(gdb) bt
#0  0x4008b833 in XkbTranslateKeyCode () from /usr/X11R6/lib/libX11.so.6
#1  0x4008b71c in XkbLookupKeySym () from /usr/X11R6/lib/libX11.so.6
#2  0x4008c128 in XLookupString () from /usr/X11R6/lib/libX11.so.6
#3  0x0805fc19 in Toolbar::keyPressEvent (this=0x80974f8, ke=0xbfffea4c)
    at Toolbar.cc:1021
#4  0x08069b85 in Blackbox::process_event (this=0xbfffeaec, e=0xbfffea4c)
    at blackbox.cc:637
#5  0x0804ba4d in BaseDisplay::eventLoop (this=0xbfffeaec)
    at BaseDisplay.cc:429
#6  0x0806d8f4 in main (argc=2, argv=0xbffffb54) at main.cc:255
#7  0x401ad921 in __libc_start_main () from /lib/libc.so.6
(gdb) The program is running.  Exit anyway? (y or n) y
Script done on Tue Jan 15 22:22:02 2002

To reproduce this edit the workspace name and hammer on the keyboard
for a bit. The xset is there just to speed up the process. I've had
several wierd things happen when doing this. Sometimes it SEGVs as it
is shown here. Once, I recall it dumped core in libc. It looked like
it was trying to free bad memory, but I didn't manage to catch
that. The char s[1024] buffer seems a little extreme big, and also is
never checked for buffer overflows.

The aesthetic bugs are related to the same code. Enter a fairly long
workspace name, say 100 characters or so, and hit enter. The toolbar
gets ruined. Also, one can edit the workspace, switch to another
workspace, and begin typing. This will produce unexpected
results. There are also some minor bugs to do with typing odd
characters while inputting the workspace name. eg: control c.

-- 
Scott Moynes

Attachment: msg04937/pgp00000.pgp
Description: PGP signature

Reply via email to