* Motif on DEC ALpha : I get some segmentation faults
@ 1994-07-07 21:08 B.G. Mahesh
1994-07-11 21:54 ` Dave Hill WhatGE
1994-07-13 10:19 ` Conor P. Cahill
0 siblings, 2 replies; 6+ messages in thread
From: B.G. Mahesh @ 1994-07-07 21:08 UTC (permalink / raw)
I am using Motif 1.2.2 and gcc 2.5.8 on a DEC Alpha.
I get a core dump at times [very rare] ..before it dumps
core I see this message,
Unaligned access pid=2771 <rltunix> va=7a0061027000e5
pc=3ff80127660 ra=3ff803bfa68 type=stq
in the debugger [gdb]
(gdb) bt
#0 0x3ff80127660 in malloc ()
at ../../../../../src/usr/ccs/lib/libc/malloc.c:519
#1 0x3ff803bfa68 in XtMalloc () at Alloc.c:128
#2 0x3ff80c464f0 in miRegionOp () at Region.c:995
#3 0x3ff80c46e1c in _XmRegionIntersect () at Region.c:1331
#4 0x3ff80bf1f6c in IntersectWithWidgetAncestors () at DropSMgr.c:1466
#5 0x3ff80bf0ecc in DetectAllClippers () at DropSMgr.c:1030
#6 0x3ff80bf1324 in DetectAndInsertAllClippers () at DropSMgr.c:1140
#7 0x3ff80bf826c in SyncTree () at DropSMgr.c:4567
#8 0x3ff80bf5b28 in GetTreeFromDSM () at DropSMgr.c:3114
#9 0x3ff80bf842c in _XmDSMGetTreeFromDSM () at DropSMgr.c:4657
#10 0x3ff80be535c in _XmSetDragReceiverInfo () at DragICC.c:1441
#11 0x3ff80d14530 in TreeUpdateHandler () at Display.c:344
#12 0x3ff80bf7d34 in _XmIEndUpdate () at DropSMgr.c:4415
#13 0x3ff803dd590 in DoOtherSources () at NextEvent.c:825
#14 0x3ff803dd868 in XtAppNextEvent () at NextEvent.c:968
#15 0x3ff803d1f00 in XtAppMainLoop () at Event.c:1246
#16 0x12002893c in main (argc=1, argv=0x11fffe528) at product_Project.c:320
(gdb)
any ideas why this happens? and how it can avoided?
--
B.G. Mahesh | Email: mahesh@evb.com
Software Engineer | mahesh@sett.com
EVB Software Engineering, Inc. |
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Motif on DEC ALpha : I get some segmentation faults
1994-07-07 21:08 Motif on DEC ALpha : I get some segmentation faults B.G. Mahesh
@ 1994-07-11 21:54 ` Dave Hill WhatGE
1994-07-13 10:19 ` Conor P. Cahill
1 sibling, 0 replies; 6+ messages in thread
From: Dave Hill WhatGE @ 1994-07-11 21:54 UTC (permalink / raw)
This is almost always due to a heap corruption caused by the
application writing where is should not be writing, and almost
always then with at array overrun (past the end of the array).
A helpful tool for chasing heap corruptions can be found
via anonymous ftp from gatekeeper.dec.com:/pub/misc/malloc_dbg/*
Be sure to read the file ./contrib/dec_notes in the tar file,
and hide gcc while building the library (at least I had many,
many problems using gcc building the library).
/Dave
In article <CsL9Dv.790@evb.com>, mahesh@evb.com (B.G. Mahesh) writes:
|> I am using Motif 1.2.2 and gcc 2.5.8 on a DEC Alpha.
|> I get a core dump at times [very rare] ..before it dumps
|> core I see this message,
|>
|> Unaligned access pid=2771 <rltunix> va=7a0061027000e5
|> pc=3ff80127660 ra=3ff803bfa68 type=stq
|>
|> in the debugger [gdb]
|>
|> (gdb) bt
|> #0 0x3ff80127660 in malloc ()
|> at ../../../../../src/usr/ccs/lib/libc/malloc.c:519
|> #1 0x3ff803bfa68 in XtMalloc () at Alloc.c:128
|> #2 0x3ff80c464f0 in miRegionOp () at Region.c:995
|> #3 0x3ff80c46e1c in _XmRegionIntersect () at Region.c:1331
|> #4 0x3ff80bf1f6c in IntersectWithWidgetAncestors () at DropSMgr.c:1466
|> #5 0x3ff80bf0ecc in DetectAllClippers () at DropSMgr.c:1030
|> #6 0x3ff80bf1324 in DetectAndInsertAllClippers () at DropSMgr.c:1140
|> #7 0x3ff80bf826c in SyncTree () at DropSMgr.c:4567
|> #8 0x3ff80bf5b28 in GetTreeFromDSM () at DropSMgr.c:3114
|> #9 0x3ff80bf842c in _XmDSMGetTreeFromDSM () at DropSMgr.c:4657
|> #10 0x3ff80be535c in _XmSetDragReceiverInfo () at DragICC.c:1441
|> #11 0x3ff80d14530 in TreeUpdateHandler () at Display.c:344
|> #12 0x3ff80bf7d34 in _XmIEndUpdate () at DropSMgr.c:4415
|> #13 0x3ff803dd590 in DoOtherSources () at NextEvent.c:825
|> #14 0x3ff803dd868 in XtAppNextEvent () at NextEvent.c:968
|> #15 0x3ff803d1f00 in XtAppMainLoop () at Event.c:1246
|> #16 0x12002893c in main (argc=1, argv=0x11fffe528) at product_Project.c:320
|> (gdb)
|>
|> any ideas why this happens? and how it can avoided?
|>
|>
|> --
|> B.G. Mahesh | Email: mahesh@evb.com
|> Software Engineer | mahesh@sett.com
|> EVB Software Engineering, Inc. |
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Motif on DEC ALpha : I get some segmentation faults
1994-07-07 21:08 Motif on DEC ALpha : I get some segmentation faults B.G. Mahesh
1994-07-11 21:54 ` Dave Hill WhatGE
@ 1994-07-13 10:19 ` Conor P. Cahill
1994-07-15 13:15 ` schoeler
1 sibling, 1 reply; 6+ messages in thread
From: Conor P. Cahill @ 1994-07-13 10:19 UTC (permalink / raw)
In article <CsL9Dv.790@evb.com>, mahesh@evb.com (B.G. Mahesh) writes:
> I am using Motif 1.2.2 and gcc 2.5.8 on a DEC Alpha.
> I get a core dump at times [very rare] ..before it dumps
> core I see this message,
>
> (gdb) bt
> #0 0x3ff80127660 in malloc ()
> at ../../../../../src/usr/ccs/lib/libc/malloc.c:519
> #1 0x3ff803bfa68 in XtMalloc () at Alloc.c:128
This is most often caused by a corruption in the allocation chain due to
some overwrite or illegal free. Our product, SENTINEL, is desigend to
automatically catch and report such errors as they occur. SENTINEL is
currently in beta for the Alpha platform and will be released shortly.
If you would like further information, please contact info@aib.com (or
call 800-296-3000, 703-430-9247).
--
***** SENTINEL(tm) - the multi-platform run-time analysis tool *****
Conor P. Cahill (703)430-9247 conor.cahill@aib.com
AIB Software, Inc. 46030 Manekin Plaza Dulles, VA 20166
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Motif on DEC ALpha : I get some segmentation faults
1994-07-13 10:19 ` Conor P. Cahill
@ 1994-07-15 13:15 ` schoeler
1994-07-18 20:00 ` Eli Marmor
0 siblings, 1 reply; 6+ messages in thread
From: schoeler @ 1994-07-15 13:15 UTC (permalink / raw)
Since noone else has stepped in, I would recommend staying away from gcc
on Alpha. Working at OSF on Motif 2.0, we tried to build using gcc. The
compiler was still riddled with 64 bit problems that would yield very
strange errors. One example was a segmentation violation on an integer
divide with both components being non-zero and the target being an automatic
variable.
Use the default compiler, your mileage will be superior.
--
Dick Schoeller | dick@bgs.com | "Es ist ein Narr, der meint,
BGS Systems | 617.891.0000 x 374 | es sei nicht schad, das Kind
128 Technology Center | | auszuschu"tten mit dem Bad"
Waltham, MA 02254-9111 | | - Thomas Murner 1512
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Motif on DEC ALpha : I get some segmentation faults
1994-07-15 13:15 ` schoeler
@ 1994-07-18 20:00 ` Eli Marmor
1994-07-19 16:57 ` dick
0 siblings, 1 reply; 6+ messages in thread
From: Eli Marmor @ 1994-07-18 20:00 UTC (permalink / raw)
schoeler (schoeler@bgs.com) wrote:
: Since noone else has stepped in, I would recommend staying away from gcc
: on Alpha. Working at OSF on Motif 2.0, we tried to build using gcc. The
: compiler was still riddled with 64 bit problems that would yield very
: strange errors. One example was a segmentation violation on an integer
: divide with both components being non-zero and the target being an automatic
: variable.
: Use the default compiler, your mileage will be superior.
BTW, how can I compile Motif 1.2 on Alpha (OSF/1 2.0)? I used the default
compiler, fixed many things and code segments which dealt with 32-64 bit
in a wrong way, but it seems that there is no end for this porting :-(
After many patches, *only* 50% of the applications crash, but the other 50%
produce thousands of warnings like:
unaligned access, ...
Yes, I tried -taso...
Is there any solution? Is there a (pre 2.0) release or sub-release which
solves this problem?
ThanX in advance,
Eli Marmor
El-Mar Software Ltd.
marmor@bimacs.cs.biu.ac.il
"We don't need no 64 bit,
We don't need no multi-mips,
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Motif on DEC ALpha : I get some segmentation faults
1994-07-18 20:00 ` Eli Marmor
@ 1994-07-19 16:57 ` dick
0 siblings, 0 replies; 6+ messages in thread
From: dick @ 1994-07-19 16:57 UTC (permalink / raw)
In article <19940718.230158.793987.NETNEWS@VM.BIU.AC.IL>, marmor@sunblast.cs.biu.ac.il.cs.biu.ac.il (Eli Marmor) writes:
|>BTW, how can I compile Motif 1.2 on Alpha (OSF/1 2.0)? I used the default
|>compiler, fixed many things and code segments which dealt with 32-64 bit
|>in a wrong way, but it seems that there is no end for this porting :-(
|>
|>After many patches, *only* 50% of the applications crash, but the other 50%
|>produce thousands of warnings like:
|>unaligned access, ...
|>
|>Yes, I tried -taso...
|>
|>Is there any solution? Is there a (pre 2.0) release or sub-release which
|>solves this problem?
I presume that you have a source license and thus have reason to build Motif
yourself. In any case, 1.2.4 is supposed to be fully 64 bit clean in the
default distribution. Prior to that release only the DEC version had the
full set of 64 bit bug fixes. 2.0 is also clean and should be available
from OSF.
--
Dick Schoeller | dick@bgs.com | "Es ist ein Narr, der meint,
BGS Systems | 617.891.0000 x 374 | es sei nicht schad, das Kind
128 Technology Center | | auszuschu"tten mit dem Bad"
Waltham, MA 02254-9111 | | - Thomas Murner 1512
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1994-07-19 16:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-07 21:08 Motif on DEC ALpha : I get some segmentation faults B.G. Mahesh
1994-07-11 21:54 ` Dave Hill WhatGE
1994-07-13 10:19 ` Conor P. Cahill
1994-07-15 13:15 ` schoeler
1994-07-18 20:00 ` Eli Marmor
1994-07-19 16:57 ` dick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox