[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#138578: marked as done (libxaw7: SEGV in TextFocusOut())



Your message dated Mon, 9 Jan 2006 12:53:13 +0100
with message-id <200601091253.21109.ender@debian.org>
and subject line Bug fixed.
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 16 Mar 2002 15:24:16 +0000
>From lee@yun.yagibdah.de Sat Mar 16 09:24:16 2002
Return-path: <lee@yun.yagibdah.de>
Received: from bdbcd.pppool.de (little.yagibdah.de) [213.7.219.205] 
	by master.debian.org with smtp (Exim 3.12 1 (Debian))
	id 16mG2T-0002C3-00; Sat, 16 Mar 2002 09:24:11 -0600
Received: (qmail 1832 invoked from network); 16 Mar 2002 14:48:07 -0000
Received: from yun.yagibdah.de (8@192.168.0.1)
  by little.yagibdah.de with SMTP; 16 Mar 2002 14:48:07 -0000
Received: from lee by yun.yagibdah.de with local (Exim 3.32 #1 (Debian))
	id 16mFR2-0003SO-00; Sat, 16 Mar 2002 15:45:28 +0100
From: Hans Wilmer <lee@yun.yagibdah.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libxaw7: segmentation faults
X-Reportbug-Version: 1.36
X-Mailer: reportbug 1.36
Date: Sat, 16 Mar 2002 15:45:28 +0100
Message-Id: <E16mFR2-0003SO-00@yun.yagibdah.de>
Delivered-To: submit@bugs.debian.org

Package: libxaw7
Version: 4.1.0-9
Severity: normal

Program received signal SIGSEGV, Segmentation fault.
TextFocusOut (w=0x812cc48, event=0xbfd50540, p=0x0, n=0x400c7c74) at TextAction.c:2914
        in TextAction.c


(gdb) backtrace
#0  TextFocusOut (w=0x812cc48, event=0xbfd50540, p=0x0, n=0x400c7c74) at TextAction.c:2914
#1  0x40051557 in TextFocusIn (w=0x812e558, event=0xbfd50540, p=0x0, n=0x400c7c74) at TextAction.c:2896
#2  0x400b8593 in HandleActions (w=0x812e558, event=0xbfd50540, stateTree=0x81c1990, accelWidget=0x0, procs=0x81dbd44, actions=0x400c7c6c) at TMstate.c:628
#3  0x400b8a0c in HandleSimpleState (w=0x812e558, tmRecPtr=0x812e588, curEventPtr=0xbfd50478) at TMstate.c:866
#4  0x400b8f24 in _XtTranslateEvent (w=0x812e558, event=0xbfd50540) at TMstate.c:1084
#5  0x400965a2 in XtDispatchEventToWidget (widget=0x812e558, event=0xbfd50540) at Event.c:981
#6  0x4009777c in _XtSendFocusEvent (child=0x812e558, type=9) at Event.c:1711
#7  0x4009eafc in _XtHandleFocus (widget=0x812ebe0, client_data=0x812d520, event=0xbfd50640, cont=0xbfd505eb "\001¸Õ\022\b¾F\021@tn\f@àë\022\b@\006Õ¿\bO\f@") at Keyboard.c:600
#8  0x4009657f in XtDispatchEventToWidget (widget=0x812ebe0, event=0xbfd50640) at Event.c:976
#9  0x4009777c in _XtSendFocusEvent (child=0x812ebe0, type=9) at Event.c:1711
#10 0x4009eafc in _XtHandleFocus (widget=0x812e980, client_data=0x812d5b8, event=0xbfd507ec, cont=0xbfd506eb "\001¸Õ\022\b¾F\021@tn\f@\200é\022\bLé\t@\232l\t@ È\017\b") at Keyboard.c:600
#11 0x4009653f in XtDispatchEventToWidget (widget=0x812e980, event=0xbfd507ec) at Event.c:957
#12 0x40096d6e in _XtDefaultDispatcher (event=0xbfd507ec) at Event.c:1415
#13 0x40097108 in XtDispatchEvent (event=0xbfd507ec) at Event.c:1499
#14 0x0809d35b in PopupDialog ()
#15 0x0809bc17 in GetString ()
#16 0x08075ba3 in zoom (w=0x400c6e74, in=0x80f8200 "f", ud=136059280, data=0x400b872e) at keyboard.c:2618
#17 0x5f007472 in ?? ()
Cannot access memory at address 0x66
(gdb) 


The function 'zoom' is part of my own program. It calls GetString()
which is part of a library called libsx. PopupDialog() is probably
also part of the libsx. --- Before upgrading from Debian 2.2 r_0/r_2
to Woody the problem reported here didn't exist, and neither the
libsx, nor my program has changed in a way that could summon the
problem.

The problem is not so easy to reproduce because it doesn't occur each
time the GetString() function is called. GetString() may be called 1,
5 or 10 times before it fails, and also my not fail at all (when
called 100 times or so :/ I wrote a small program to help debugging
(see below), but I couldn't produce the problem with that program.

If you need it, I can supply the complete source code of my program
and of the libsx.


// testing program:

#include <stdio.h>
#include <libsx.h>


void bt_close(Widget ign, void *w)
{
  Widget x = *( (Widget *)w);

  if(w) {
    SetCurrentWindow(x);
    CloseWindow();
    exit(0);
  }
  else {
    puts("no window to close");
  }
}

void bt_gs(Widget ign, void *none)
{
  char *cptr;
  int n;

  for(n = 0; n < 10; n++) {
    cptr = GetString("This is a rather long label that should provoce a failure.", NULL);
    if(cptr) {
      puts(cptr);
    }
  }
}


int main(int argc, char *argv[] )
{
  Widget w, b1, b2;

   argc = OpenDisplay(argc, argv);
   if (argc == 0) {
      exit(1);
   }

   w = MakeWindow("debuglib", SAME_DISPLAY, NONEXCLUSIVE_WINDOW);
   b1 = MakeButton("Close", bt_close, (void *)(&w) );
   b2 = MakeButton("GetString()", bt_gs, (void *)NULL);
   SetWidgetPos(b2, PLACE_RIGHT, b1, NO_CARE, NULL);

   MainLoop();
   return 0;
}


// Makefile for the testing program:


OBJ = debuglib.o
SRC = debuglib.c

OPTS	= -march=i686 \
	-O6 \
	-Wall \
	-finline-functions \
	-malign-loops=2 \
	-malign-jumps=2 \
	-malign-functions=2 \
	-funroll-loops \
	-fexpensive-optimizations \
	-fomit-frame-pointer
# -ggdb


CC	= gcc $(OPTS)

LIBSX  = /usr/local/lib/libsx.a
LIB   =  $(LIBSX) -lXaw -lXmu -lXt -lX11 -lXext -L/usr/X11R6/lib


debuglib: $(OBJ) Makefile
	$(CC) -o debuglib $(OBJ) $(LIB)

//


To compile the testing program, you need the libsx. You can get
version 1.2 from www.yagibdah.de.


Let me know if I can do something else to help finding the bug.


gcc version 2.95.4 20011006 (Debian prerelease)

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux yun 2.4.18 #9 Wed Feb 27 17:46:58 CET 2002 i686
Locale: LANG=C, LC_CTYPE=de_DE

Versions of packages libxaw7 depends on:
ii  libc6                         2.2.4-5    GNU C Library: Shared libraries an
ii  xlibs                         4.1.0-9    X Window System client libraries


---------------------------------------
Received: (at 138578-done) by bugs.debian.org; 9 Jan 2006 11:53:18 +0000
>From ender@debian.org Mon Jan 09 03:53:18 2006
Return-path: <ender@debian.org>
Received: from cerrojo.elmundo.es ([193.110.128.12] helo=mail2.elmundo.es)
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1EvvaP-00025k-P3
	for 138578-done@bugs.debian.org; Mon, 09 Jan 2006 03:53:18 -0800
Received: from xanes.el-mundo.int (xanes.elmundo.int [10.5.222.50])
	by mail2.elmundo.es (Postfix) with ESMTP
	id B6D53460D5; Mon,  9 Jan 2006 12:53:17 +0100 (CET)
Received: by xanes.el-mundo.int (Postfix, from userid 65500)
	id B3B0617315; Mon,  9 Jan 2006 12:53:16 +0100 (CET)
Received: from ip6-localhost (localhost [127.0.0.1])
	by xanes.el-mundo.int (Postfix) with ESMTP
	id E479317313; Mon,  9 Jan 2006 12:53:15 +0100 (CET)
From: David =?iso-8859-15?q?Mart=EDnez_Moreno?= <ender@debian.org>
Organization: Debian
To: Hans Wilmer <lee@yun.yagibdah.de>
Subject: Bug fixed.
Date: Mon, 9 Jan 2006 12:53:13 +0100
User-Agent: KMail/1.8.3
Cc: 138578-done@bugs.debian.org
MIME-Version: 1.0
Content-Type: multipart/signed;
  boundary="nextPart1149512.DYZaWyfMmp";
  protocol="application/pgp-signature";
  micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
Message-Id: <200601091253.21109.ender@debian.org>
X-Bogosity: No, tests=bogofilter, spamicity=0.446550, version=0.10.3
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02

--nextPart1149512.DYZaWyfMmp
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Version: 6.9.dfsg.1-1

	Hello, Hans. It seems that at least X.Org 6.9 includes a fix for your bug=
=20
report, so I am closing this bug.

	Please reopen if necessary.

	Best regards,


		Ender.
=2D-=20
=2D Kyle, all those times I said you were a dumb, stupid Jew,
  well, I was wrong, you're not a Jew.
=2D Cartman, I *am* Jewish!
=2D There, there, don't be hard on yourself, Kyle.
		-- Cartman & Kyle (South Park).
=2D-
Desarrollador de Debian
Debian developer

--nextPart1149512.DYZaWyfMmp
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBDwk6wWs/EhA1iABsRAiNUAJ96pzWGunLGzP86J3jBu66tuUbHBACg0jQj
BT1RVzYGw1OkyQVpw9YIKps=
=JQJj
-----END PGP SIGNATURE-----

--nextPart1149512.DYZaWyfMmp--



Reply to: