Menu

#5 iconPixmaps

open
nobody
None
5
2004-11-12
2004-11-12
Anonymous
No

I have an old program that was originally build with xmt
2.12 and I'm try to build it with the lastest version
(4.00).

The programs makes use of iconPixmap and I can't seem
to find any docs on what this is. The problem is that
the program cores when compiled with xmt 4.00. I can
reproduce this with one of the sample programs.

Attached are details of the core dump.

Sorry if I'm posting to the wrong place.
Kevin
kevinliu80@hotmail.com

Using examples/29/net_directory.

Add the following line to the net_directory.ad file at line
18:
*net_dialog_shell.iconPixmap: terminal

the program will core dump when the push_me button is
pressed.

Here's the stack trace:

signal BUS (invalid address alignment) in XmtAllocColor
at line 171 in file "Color.c"
171 if ((visual->map_entries == 2) && (cmap
== root_colormap)) {
(dbx) where
=>[1] XmtAllocColor(w = 0xc4280, cmap = 32U, visual =
0xffffffff, ctable = 0xc3248, name =
0x6e410 "+$foreground", pixel_return = 0xffbfce5c), line
171 in "Color.c"
[2] XmtLookupPixmap(widget = 0xc4280, visual =
0xffffffff, colormap = 32U, depth = 24U, table =
0xc3248, name = 0x97af4 "terminal"), line 307
in "Pixmap.c"
[3] GetPixmap(object = 0xc4280, str =
0x97af4 "terminal", table = 0xc3248, get_bitmap = '\0'),
line 340 in "GetPixmap.c"
[4] XmtGetPixmap(object = 0xc4280, table = (nil), str
= 0x97af4 "terminal"), line 378 in "GetPixmap.c"
[5] XmtConvertStringToPixmap(dpy = 0x993f8, args =
0xffbfd160, num_args = 0xffbfd148, from = 0xffbfd238,
to = 0xffbfd230, data = 0xffbfd0ec), line 61
in "PixmapCvt.c"
[6] CallConverter(0x993f8, 0x37388, 0xffbfd254,
0xa8818, 0xddc4, 0xffbfd230), at 0xff12616c
[7] _XtConvert(0x1, 0xffbfd160, 0xffbfd238, 0x203,
0xffbfd230, 0xffbfd254), at 0xff1259c0
[8] GetResources(0x0, 0x31, 0xff174000, 0xffbfded4,
0xc4, 0xc3e3c), at 0xff125158
[9] _XtGetResources(0xff38cf48, 0xffbfeb10, 0x1, 0x0,
0xffbfea3c, 0x1), at 0xff12426c
[10] xtCreate(0x1, 0x0, 0x1, 0x0, 0xc4280,
0xffbfeb10), at 0xff122aac
[11] _XtCreatePopupShell(0x865a8, 0xff38cf48,
0xa9ee0, 0xffbfeb10, 0x1, 0x0), at 0xff12eaf4
[12] XtCreatePopupShell(0x865a8, 0xff38cf48,
0xa9ee0, 0xffbfeb10, 0x1, 0xff3f9784), at 0xff12ea14
[13] _XmtBuildDialog(parent = 0xa9ee0, dialog_name =
0x865a8 "net_dialog_shell", resources = 0x81070,
num_resources = 4U, names = (nil), num_names = 0),
line 869 in "Create.c"
[14] XmtBuildQueryDialog(parent = 0xa9ee0,
dialog_name = 0x865a8 "net_dialog_shell", resources =
0x81070, num_resources = 4U, ...), line 928 in "Create.c"
[15] do_directory(0xba6f0, 0x0, 0xffbfed0c,
0xff174000, 0x6f, 0x18), at 0x26a78
[16] XmtCallCallback(w = 0xba6f0, tag = 0xb4250,
data = 0xffbfed0c), line 548 in "CallbackCvt.c"
[17] ArmAndActivate(0x0, 0x1, 0x0, 0xff17a204,
0xff142084, 0xb9cb0), at 0xff283c30
[18] HandleActions(0x0, 0xffbff030, 0xb9040, 0x0,
0xc35bc, 0xff17a1fc), at 0xff13fe98
[19] HandleSimpleState(0x2, 0xb9cb0, 0xfffffff0,
0xff174000, 0xffbfee5c, 0xff17a1fc), at 0xff13ee7c
[20] _XtTranslateEvent(0xba6f0, 0xffbff030,
0xffbff030, 0xffbfef0f, 0x1, 0x1400018), at 0xff13e880
[21] XtDispatchEventToWidget(0xba6f0, 0xffbff030,
0xa9ee0, 0xba020, 0xba020, 0xffbfeea8), at 0xff13e610
[22] _XtDefaultDispatcher(0xffbff030, 0x0, 0x2,
0x99cbc, 0xff13d850, 0x1), at 0xff13dd18
[23] XtDispatchEvent(0xace5d93, 0xffbff030, 0xa9ee0,
0xff148774, 0xff177c18, 0xff0000), at 0xff13da34
[24] XtAppMainLoop(0x97f90, 0x26a38, 0x865e4,
0x865f8, 0x0, 0xd), at 0xff13b36c
[25] main(0x26bb8, 0xffbff184, 0xffbff18c, 0x80800,
0x0, 0x0), at 0x26e04

Discussion


Log in to post a comment.