Can you confirm that the DISPLAY varialbe is set appropriately?
Thanks for the backtrace. Could you do the same with a local build
(preferably with debugging enabled (gcc -g). You can just:
cd /tmp/;
apt-get -b source xwatch;
cd xwatch-2.11;
gdb ./xwatch
r
[CRASH]
bt full
That will give us the parameters received by each of the function
calls.
Also, it would be good if you could preserve your mail.info file ASAP,
in case there is something special about it. If you can send it to
the bug, that would be best.
Thanks,
Justin
echo $DISPLAY
:0
The error occurs regardless of which log file I use. mail.info was just
given as an example - guess I should have made that clear.
Anyway, here's a new backtrace:
(gdb) r /var/log/messages
Starting program: /home/ben/xwatch-2.11/src/xwatch /var/log/messages
Program received signal SIGSEGV, Segmentation fault.
0xb7f5a403 in fl_get_browser_dimension () from /usr/X11R6/lib/libforms.so.1
(gdb)
(gdb) bt full
#0 0xb7f5a403 in fl_get_browser_dimension () from
/usr/X11R6/lib/libforms.so.1
No symbol table info available.
#1 0x0804a330 in addline (buf=0xbffff3c0 "Couldn't find color #000000
in RGB database /usr/share/xwatch/rgb.txt", colindex=0)
at addline.c:59
outbuf = "Èïÿ¿\200YÙ·äïÿ¿ ñÿ¿ÿ100\000\000\000\000ÿÿÿÿ\200~å·
ñÿ¿äïÿ¿\220ðÿ¿4DÙ·äïÿ¿\230¹û·\200~å·$ðÿ¿\bðÿ¿\200YÙ·$ðÿ¿`ñÿ¿ÿ100\000\000\000\000ÿÿÿÿ\200~å·`ñÿ¿$ðÿ¿Ððÿ¿[\226Ø·$ðÿ¿\230¹û·üðÿ¿`ñÿ¿\000\000\000\000\001\200û`ñÿ¿`ñÿ¿`ñÿ¿`ñÿ¿dñÿ¿ÿÿÿÿ`ñÿ¿ÿÿÿÿ",
'\0' <repeats 20 times>,
"Ñ_Ø·\000\000\000\000à\037\005\b\000\000\000\000\000\000\000\000é\203"...
i = -1208209716
length_so_far = -1208209716
extra_length = 0
curwidth = -1209696640
curheight = -1073745948
curx = 0
cury = 0
bufcopy = 0xb7d94434 "\201ÃL:\f"
cp = 0x0
#2 0x0804a279 in warning (fmt=0x0) at warning.c:41
buf = "Couldn't find color #000000 in RGB database
/usr/share/xwatch/rgb.txt", '\0' <repeats 11 times>,
"Ý\004\bQ<Ù·\004hÅ·\000\000\000¿Q<Ù·àôÿ¿$\216Ù·\022\000\000\000\000\000\000\000ÿÿÿÿI\000\000\000q:\000\000 ß\006\bp:[EMAIL PROTECTED]@\210å· [EMAIL PROTECTED] ß\006\b\200~å·\000\000\000\000 ß\006\b\230ôÿ¿°hØ· ß\006\b\000\000\000\000\000"...
#3 0x0804ab36 in colorname2rgb (name=0x804d2c0 "#000000", r=0x0, g=0x0,
b=0x0) at colorname2rgb.c:60
fp = (FILE *) 0x806dfb8
dummy =
"LightGreen\000\000\000\000\000\000d\000ow\000w\000¿\000\000\000\000lÒ\004\b\200~å·Hùÿ¿(úÿ¿ðùÿ¿-\227Ø·Hùÿ¿~½\004\b\030úÿ¿\000\000\000\000\000\000\000\000\001\200ûlÒ\004\blÒ\004\bfÒ\004\bfÒ\004\bfÒ\004\bfÒ\004\bfÒ\004\blÒ\004\b",
'\0' <repeats 56 times>, "ÿÿÿÿ", '\0' <repeats 52 times>, "
\020å·\000\000\000\000\000\000\000\000\200~å·ÄÅ\004\b\búÿ¿\rHØ·fÒ\004\b~½\004\b"
line = "144 238
144\t\tLightGreen\n\000\000\000\000\000\000\n\000w\n\000\n\000/20
18:39:36 rws Exp
$\n\000øÿ¿\000\000\000\000\003\000\000\000\000\001\000\000àóÿ¿", '\0'
<repeats 24 times>,
"¯\000\000\000\000\000\000\000Ò0зÐ0з\001\000\000\000\n", '\0' <repeats
15 times>, "ÿÿÿÿÿÿÿÿ\006\000\000\000\002\000\000\000\204½\004\b
úÿ¿\000\000\000\000\000\000\000\000ãóÿ¿", '\0' <repeats 64 times>,
"4DÙ·\000\000\000\000\000\000\000\000\200~å·"
red = 144
green = 238
blue = 144
retval = 0
#4 0x0804ac1d in parsecolors (fgstring=0xbfffef90 "",
bgstring=0x804d320 "#efefef") at parsecolors.c:42
r = 6
g = 134533920
b = 134530500
#5 0x08049430 in main (argc=2, argv=0xbffffb04) at xwatch.c:92
i = 134533920
border = 0
xpos = -2
ypos = -175
height = 70
printversion = 1
copyrightmsg = {0x804adc8 "XWatch V2.11\n", 0x804af80 "Copyright
(C) 1995, 1996 Karel Kubat <[EMAIL PROTECTED]>.\n",
0x804afc0 "See \"man xwatch\" and also
/usr/share/doc/xwatch/README.Debian\n"}
titlebuffer = '\0' <repeats 127 times>
gagbuffer = "last message repeated \000 Too much work at
interrupt", '\0' <repeats 973 times>
colorstring = "red:finger connection: \000 blue:auth
connection:", '\0' <repeats 977 times>
---Type <return> to continue, or q <return> to quit---
ignorestring = "/var/adm/mgetty-ttyS2.log", '\0' <repeats 998 times>
geometry = "400x70-2-175", '\0' <repeats 67 times>
fgstring = "#000000", '\0' <repeats 72 times>
bgstring = "#efefef", '\0' <repeats 72 times>
cmdopt = {{option = 0x804add6 "-border", specifier = 0x804adde
"*.border", argKind = XrmoptionSepArg, value = 0x0}, {
option = 0x804ade7 "-printtime", specifier = 0x804adf2
"*.printtime", argKind = XrmoptionSepArg, value = 0x0}, {
option = 0x804adfe "-printname", specifier = 0x804ae09 "*.filename",
argKind = XrmoptionSepArg, value = 0x0}, {
option = 0x804ae14 "-newline", specifier = 0x804ae1d "*.newline",
argKind = XrmoptionSepArg, value = 0x0}, {
option = 0x804ae27 "-nlines", specifier = 0x804ae2f "*.nlines",
argKind = XrmoptionSepArg, value = 0x0}, {
option = 0x804ae38 "-interval", specifier = 0x804ae42 "*.interval",
argKind = XrmoptionSepArg, value = 0x0}, {
option = 0x804ae4d "-linelen", specifier = 0x804ae56 "*.linelen",
argKind = XrmoptionSepArg, value = 0x0}, {
option = 0x804ae60 "-fontsize", specifier = 0x804ae6a "*.fontsize",
argKind = XrmoptionSepArg, value = 0x0}, {
option = 0x804ae75 "-fontstyle", specifier = 0x804ae80
"*.fontstyle", argKind = XrmoptionSepArg, value = 0x0}, {
option = 0x804ae8c "-firstwarnings", specifier = 0x804ae9b
"*.firstwarnings", argKind = XrmoptionSepArg, value = 0x0}, {
option = 0x804aeab "-printversion", specifier = 0x804aeb9
"*.printversion", argKind = XrmoptionSepArg, value = 0x0}, {
option = 0x804aec8 "-gag", specifier = 0x804aecd "*.gag", argKind =
XrmoptionSepArg, value = 0x0}, {option = 0x804aed3 "-title",
specifier = 0x804aeda "*.title", argKind = XrmoptionSepArg, value =
0x0}, {option = 0x804aee2 "-colorstring",
specifier = 0x804aeef "*.colorstring", argKind = XrmoptionSepArg,
value = 0x0}, {option = 0x804aefd "-geometry",
specifier = 0x804af07 "*.geometry", argKind = XrmoptionSepArg, value
= 0x0}, {option = 0x804af12 "-ignore",
specifier = 0x804af1a "*.ignore", argKind = XrmoptionSepArg, value =
0x0}, {option = 0x804af23 "-fg",
specifier = 0x804af27 "*.foreground", argKind = XrmoptionSepArg,
value = 0x0}, {option = 0x804af34 "-bg",
specifier = 0x804af38 "*.background", argKind = XrmoptionSepArg,
value = 0x0}}
res = {{res_name = 0x804add7 "border", res_class = 0x804af45
"XWatch", type = FL_INT, var = 0x804c5c0, defval = 0x804af4c "1",
nbytes = 0}, {res_name = 0x804ade8 "printtime", res_class =
0x804af45 "XWatch", type = FL_INT, var = 0x804d380, defval = 0x804af4c "1",
nbytes = 0}, {res_name = 0x804adff "printname", res_class =
0x804af45 "XWatch", type = FL_INT, var = 0x804d384, defval = 0x804af4c "1",
nbytes = 0}, {res_name = 0x804ae15 "newline", res_class = 0x804af45
"XWatch", type = FL_INT, var = 0x804d39c, defval = 0x804af5f "0",
nbytes = 0}, {res_name = 0x804ae28 "nlines", res_class = 0x804af45
"XWatch", type = FL_INT, var = 0x804d394, defval = 0x804af4e "200",
nbytes = 0}, {res_name = 0x804ae39 "interval", res_class = 0x804af45
"XWatch", type = FL_INT, var = 0x804d388, defval = 0x804af52 "5",
nbytes = 0}, {res_name = 0x804ae61 "fontsize", res_class = 0x804af45
"XWatch", type = FL_INT, var = 0x804d37c, defval = 0x804af54 "2",
nbytes = 0}, {res_name = 0x804ae76 "fontstyle", res_class =
0x804af45 "XWatch", type = FL_INT, var = 0x804d3b4, defval = 0x804af5f "0",
nbytes = 0}, {res_name = 0x804ae8d "firstwarnings", res_class =
0x804af45 "XWatch", type = FL_INT, var = 0x804d3ac,
defval = 0x804af4c "1", nbytes = 0}, {res_name = 0x804aeac
"printversion", res_class = 0x804af45 "XWatch", type = FL_INT,
var = 0x804c5d0, defval = 0x804af4c "1", nbytes = 0}, {res_name =
0x804aec9 "gag", res_class = 0x804af45 "XWatch", type = FL_STRING,
var = 0x804c660, defval = 0x804bce9 "", nbytes = 1023}, {res_name =
0x804aed4 "title", res_class = 0x804af45 "XWatch",
type = FL_STRING, var = 0x804c5e0, defval = 0x804bce9 "", nbytes =
127}, {res_name = 0x804aee3 "colorstring",
res_class = 0x804af45 "XWatch", type = FL_STRING, var = 0x804ca60,
defval = 0x804bce9 "", nbytes = 1023}, {
res_name = 0x804aefe "geometry", res_class = 0x804af45 "XWatch",
type = FL_STRING, var = 0x804d260, defval = 0x804af56 "550x70+0+0",
nbytes = 79}, {res_name = 0x804af13 "ignore", res_class = 0x804af45
"XWatch", type = FL_STRING, var = 0x804ce60, defval = 0x804bce9 "",
nbytes = 1023}, {res_name = 0x804af29 "foreground", res_class =
0x804af45 "XWatch", type = FL_STRING, var = 0x804d2c0,
defval = 0x804af61 "black", nbytes = 79}, {res_name = 0x804af3a
"background", res_class = 0x804af45 "XWatch", type = FL_STRING,
var = 0x804d320, defval = 0x804af67 "white", nbytes = 79}}
setting = {{var = 0x804c5c0, min = 0, max = 1, desc = 0x804add7
"border"}, {var = 0x804d380, min = 0, max = 1,
desc = 0x804ade8 "printtime"}, {var = 0x804d384, min = 0, max = 1,
desc = 0x804adff "printname"}, {var = 0x804d39c, min = 0, max = 1,
desc = 0x804ae15 "newline"}, {var = 0x804d394, min = 10, max = 1000,
desc = 0x804ae28 "nlines"}, {var = 0x804d388, min = 1, max = 30,
desc = 0x804ae39 "interval"}, {var = 0x804d37c, min = 1, max = 4,
desc = 0x804ae61 "fontsize"}, {var = 0x804d3b4, min = 0, max = 15,
desc = 0x804ae76 "fontstyle"}, {var = 0x804d3ac, min = 0, max = 1,
desc = 0x804ae8d "firstwarnings"}, {var = 0x804c5d0, min = 0,
max = 1, desc = 0x804aeac "printversion"}}
totlength = 134530500