Received: (at submit) by bugs.debian.org; 29 Nov 1999 13:49:31 +0000 Received: (qmail 7719 invoked from network); 29 Nov 1999 13:49:30 -0000 Received: from mercury.sun.com (192.9.25.1) by master.debian.org with SMTP; 29 Nov 1999 13:49:30 -0000 Received: from France.Sun.COM ([129.157.188.1]) by mercury.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id FAA08926 for ; Mon, 29 Nov 1999 05:49:25 -0800 (PST) Received: from sunchorus.france.sun.com by France.Sun.COM (SMI-8.6/SMI-SVR4-sd.fkk205) id OAA12973; Mon, 29 Nov 1999 14:49:23 +0100 Received: from ocarina.France.Sun.COM (ocarina [129.157.196.17]) by sunchorus.france.sun.com (8.8.8+Sun/8.8.8) with ESMTP id OAA12192 for ; Mon, 29 Nov 1999 14:49:22 +0100 (MET) Received: (from ydirson@localhost) by ocarina.France.Sun.COM (8.9.1b+Sun/8.9.1) id OAA17952; Mon, 29 Nov 1999 14:49:21 +0100 (MET) From: Yann Dirson - LOGATIQUE MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <14402.33889.160486.348017@gargle.gargle.HOWL> Date: Mon, 29 Nov 1999 14:49:21 +0100 (MET) To: submit@bugs.debian.org Subject: mgp: coredumps on error reporting X-Mailer: VM 6.72 under 21.1 (patch 7) "Biscayne" XEmacs Lucid Package: mgp Version: 1.06a-3 [using binary package recompiled from source on slink box] mgp writes the following and then segfaults: ===== undefined directive 248 at page 6 line 24: 0x824fab8: ===== Directive number varies. Bug appears to be triggered by: * run "mgp -o" * edit/save page being viewed * have page refreshed by expose event * next page Next page is drawn, then message is printed and core is dumped. Not easy to reproduce, maybe the random directive is sometimes valid - I often have my "next-slide" command duplicated :| GDB backtrace: #0 0x4011ca8e in vfprintf () from /lib/libc.so.6 #1 0x4011fab3 in vfprintf () from /lib/libc.so.6 #2 0x4011b426 in vfprintf () from /lib/libc.so.6 #3 0x401222c1 in fprintf () from /lib/libc.so.6 #4 0x8056b17 in debug0 (p=0x824fb78) at parse.c:1237 #5 0x804e8d0 in process_direc (state=0x8093b2c, seenpause=0xbfffd998) at draw.c:755 #6 0x804dd7d in draw_one (state=0x8093b2c, e=0xbfffdb08) at draw.c:347 #7 0x804c735 in main_loop (start_page=1) at mgp.c:709 #8 0x804bf0b in main (argc=1, argv=0xbffffc6c) at mgp.c:418 (gdb) f 4 #4 0x8056b17 in debug0 (p=0x824fb78) at parse.c:1237 1237 fprintf(stderr, " %s ", ctl_words[p->ct_op].ctl_string); (gdb) p p->ct_op $1 = 176 '°' It appears this value is a bit high... FWIW: (gdb) up #5 0x804e8d0 in process_direc (state=0x8093b2c, seenpause=0xbfffd998) at draw.c:755 755 debug0(cp); (gdb) p* state $19 = {page = 6, line = 24, cp = 0x824fb78, phase = P_PAGE, curprefix = 0x8243628 " ", tabprefix = 0x0, align = 3, special = 0, leftfillpos = 0, target = 121634817, height = 600, width = 800, ypos = 446, have_mark = 0, mark_ypos = 0, repaint = 0, maxascent = 18, maxdescent = 5, linewidth = 11, xfont = 0x82d16f8, obj = 0x0, objlast = 0x0} (gdb) p* state->cp $20 = {ct_op = 176 '°', ct_flag = 43 '+', ct_page = 137402760, ct_next = 0x0, ct_val = {ctrl_double = {ct_value = 0}, ctrl_int = {ct_value = 0}, ctrl_long = {ct_value = 0}, ctrl_char = {ct_value = 0x0}, ctrl_char2 = { ct_value1 = 0x0, ct_value2 = 0x0}, ctrl_image = {ct_fname = 0x0, ct_numcolor = 0, ct_ximagesize = 0, ct_yimagesize = 0, ct_zoomflag = 0}, ctrl_grad = {ct_numcolor = 0, ct_direction = 0, ct_width = 0, ct_height = 0, ct_zoomflag = 0, ct_mode = 0, ct_g_colors = 17, colors = 0x647473}, ctrl_bar = {ct_color = 0, ct_width = 0, ct_start = 0, ct_length = 0}, ctrl_args = {ct_argc = 0, ct_argv = 0x0, ct_flag = 0}, ctrl_icon = {ct_value = 0x0, ct_color = 0, ct_size = 0}, ctrl_pcache = {ct_cflag = 0, ct_cmode = 0, ct_ceffect = 0, ct_cvalue = 0}}} I kept the corefile in case more info is needed. Please tell me if I can help further. -- /\ Yann Dirson \\ \ \ \\ / Sun Microsystems Inc. / \/ / / Consumer and Embedded / ChorusOS Support / / \//\ \//\ / / Phone: +33 139 44 74 50 / / /\ / Phone: 44450 / \\ \ \ \\ \/ Subcontractant from Logatique