Hello,
I registered with the Source Forge (user name: steve_wood), but I could not
get anywhere from the login page. I kept getting an error (words to the
effect) "error in secure channel".
The reason I wanted to register is to report a bug. So, if you don't mind,
I would like to report this bug using this e-mail. PLEASE LET ME KNOW if
you cannot forward this to the appropriate party.
The following error message is printed on stderr when executing the
"XmManageChild(dialog)" command:
X Error of failed request: BadValue (integer parameter out of range for
operation)
Major opcode of failed request: 12 (X_ConfigureWindow)
Value in failed request: 0x0
Serial number of failed request: 197
Current serial number in output stream: 198
The code sequence that generated this error is from the sample code
provided for Volume Six A: Motif Programming Manual (Oreilly & Associates
Inc). The actual program is "hello_dialog.c" (Dan Heller and Paula
Ferguson Copyright 1994) and is enclosed below.
The actual fragment that causes this error is:
.
.
.
/* Create the InformationDialog as child of button */
dialog = XmCreateInformationDialog (button, "info", args, n);
/* no longer need the compound string, free it */
XmStringFree (xm_string);
/* add the callback routine */
XtAddCallback (dialog, XmNokCallback, activate, NULL);
/* manage the dialog */
XtManageChild (dialog);
(at which point it crashes and produces the above mentioned message)
I compiled and ran this program (unmodified) on a NEC Versa LX running
Redhat Linux 7.0 using the gcc compiler. I have never had any problems
with Linux. Motif, or gcc up until now. The motif library is actually
LessTif, installed from the binary 91.4-1.i386 rpm's. I get the same error
using the Motif 1.2 or 2.0 widgets.
I ran the program using gdb "run -sync" and it crumped at the same place
with the same message. I added a break point just before the call to
XtManageChild and did a stack trace. The results are included below in
gdb_output.txt.
I would appreciate any advice on how this problem can be overcome.
Sincerely,
Steve Wood
hello_dialog.c
GNU gdb 5.0
Copyright 2000 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 "i386-redhat-linux"...
(gdb) break 79
Breakpoint 1 at 0x8048b4b: file xt1.c, line 79.
(gdb) run -sync
Starting program: /home/steve/motif/src/xt1 -sync
Breakpoint 1, popup (button=0x8068750, client_data=0x8048c17, call_data=0xbffff7ac) at
xt1.c:79
79 XtManageChild (dialog);
(gdb) info stack
#0 popup (button=0x8068750, client_data=0x8048c17, call_data=0xbffff7ac) at xt1.c:79
#1 0x40081778 in XtCallCallbackList () from /usr/X11R6/lib/libXt.so.6
#2 0x4025191d in XmSetWMProtocolHooks () from /usr/X11R6/lib/libXm.so.1
#3 0x400b09b5 in _XtMatchAtom () from /usr/X11R6/lib/libXt.so.6
#4 0x400b1347 in _XtMatchAtom () from /usr/X11R6/lib/libXt.so.6
#5 0x400b13fe in _XtTranslateEvent () from /usr/X11R6/lib/libXt.so.6
#6 0x4008cecb in XtDispatchEventToWidget () from /usr/X11R6/lib/libXt.so.6
#7 0x4008d944 in _XtOnGrabList () from /usr/X11R6/lib/libXt.so.6
#8 0x4008db99 in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.6
#9 0x4008dfe2 in XtAppMainLoop () from /usr/X11R6/lib/libXt.so.6
#10 0x8048aa1 in main (argc=1, argv=0xbffffad4) at xt1.c:44
#11 0x40310b65 in __libc_start_main (main=0x80489bc <main>, argc=2, ubp_av=0xbffffad4,
init=0x804876c <_init>, fini=0x8048bdc <_fini>,
rtld_fini=0x4000df24 <_dl_fini>, stack_end=0xbffffacc) at
../sysdeps/generic/libc-start.c:111
(gdb) quit