From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f64a4a14cf9cf8df X-Google-Attributes: gidfee84,public X-Google-Thread: 10b6ac,f64a4a14cf9cf8df X-Google-Attributes: gid10b6ac,public X-Google-ArrivalTime: 1994-07-11 22:53:14 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!ihnp4.ucsd.edu!agate!darkstar.UCSC.EDU!news.hal.COM!olivea!decwrl!pa.dec.com!mets86.two.dec.com!lead.zk3.dec.com!mytoy.zk3.dec.com!ddhill From: ddhill@mytoy.zk3.dec.com (Dave Hill WhatGE) Newsgroups: comp.unix.osf.osf1,comp.windows.x.motif Subject: Re: Motif on DEC ALpha : I get some segmentation faults Date: 11 Jul 1994 21:54:08 GMT Organization: WHATX Distribution: world Message-ID: <2vsf20$i15@lead.zk3.dec.com> References: NNTP-Posting-Host: mytoy.zk3.dec.com Keywords: DEC Alpha Motif gcc gdb Xref: bga.com comp.unix.osf.osf1:2455 comp.windows.x.motif:7152 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 , 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 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. |