Hi Mike,
Here's how to catch XErrors in gdb
(gdb) b main
Breakpoint 1 at 0x804dbb1: file vktest.cc, line 385.
(gdb) run -sync
Starting program: /usr/local/src/playpen/viewklass/test/vktest
Breakpoint 1, main (argc=1, argv=0xbfffd9a4) at vktest.cc:385
385 String defaultResources[] = {
(gdb) b _XError
Breakpoint 2 at 0x40333146
(gdb) c
Continuing.
Then you will be able to get the stack trace which led to the XError.
Have Fun,
John L.
Original Message:
-----------------
From: Mike Bezman [EMAIL PROTECTED]
Date: Thu, 11 Sep 2003 11:37:51 -0500
To: [EMAIL PROTECTED]
Subject: Follow up : [Lesstif] lesstif upgrade/ unable to find suitable
font for default locale error
Hi !!
I am following up on the e-mail sent by my colleague.
> Is something during the upgrade failing, or does your application
> stop working after the upgrade ?
>
> In the latter case, which application are we talking about?
>
> Can you use a debugger such as gdb to produce a stack trace ?
>
> Danny
Doesn't look like anything happened.
I ran gdb on the executable, but I was unable to get backtrace ("XError
occurred" message appeared after "unable to find suitable font" message and
no trace).
Here is graphical libraries linkage that was used:
-lXm -lXmu -lXp -lXt -lX11 -lXext ...
Thanks, Mike
(gdb) b main
Breakpoint 1 at 0x804dbb1: file vktest.cc, line 385.
(gdb) run
Starting program: /usr/local/src/playpen/viewklass/test/vktest
Breakpoint 1, main (argc=1, argv=0xbfffd9a4) at vktest.cc:385
385 String defaultResources[] = {
(gdb) b _XError
Breakpoint 2 at 0x40333146
(gdb) c
Continuing.
>> On Wed, 2003-09-10 at 19:10, Fred Burr wrote:
> > We upgraded our LessTiff (from lesstif-0.93.18-5 to
> > lesstif-0.93.49-1) distribution on Linux RedHat 8 in order to fix
> > an issue with XmText widget.
> > However upon the upgrade we are getting the following message:
> > "unable to find suitable font for default locale" and segmentation
> > fault. We have tried setting different locale and lang variables,
> > with no effect.
> > Could you please advise how we can resolve that ?
> >
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
_______________________________________________
Lesstif mailing list
[EMAIL PROTECTED]
https://terror.hungry.com/mailman/listinfo/lesstif