RE: DDD 3.3.11 (i686-apple-darwin9.1.0) gets `Bus error' signal

Roger Mc Murtrie <[email protected]> Mon, 24 Dec 2007 18:58:32 +1100
Newsgroups gmane.comp.debugging.ddd.bugs
Message-ID <[email protected]>
Further to my previous message, I tried running ddd with the following  
result:

:~/Downloads/ddd-3.3.11 Roger$ddd/ddd
ddd(79830) malloc: *** error for object 0xfffffe: Non-aligned pointer  
being freed
*** set a breakpoint in malloc_error_break to debug

I'm not too familiar with gdb; but if I can find time, I'l try running  
under gdb with the recommended breakpoint to see what happens.

Regards
Roger


On 24/12/2007, at 4:48 PM, Roger Mc Murtrie wrote:
> Intel Mac-mini
> OS X 10.5.1 (leopard)
> Xcode version 3.0
>
> After make of DDD
> Running make check produced
> Making check in ddd
> cat Ddd | cat | \
>        /usr/bin/sed -n -f ./ad2c.sed > Ddd.ad.h~ && mv Ddd.ad.h~  
> Ddd.ad.h
> if g++ -DHAVE_CONFIG_H -I. -I. -I.  -I./.. -isystem /usr/X11/ 
> include   -O2 -g -Wall -W -Wwrite-strings -trigraphs  -MT  
> resources.o -MD -MP -MF ".deps/resources.Tpo" -c -o resources.o  
> resources.C; \
>        then mv -f ".deps/resources.Tpo" ".deps/resources.Po"; else  
> rm -f ".deps/resources.Tpo"; exit 1; fi
> /bin/sh ../libtool --mode=link --tag=CXX g++  -O2 -g -Wall -W - 
> Wwrite-strings -trigraphs    -o ddd ..............
>
> MALLOC_CHECK_=2 \
>        DDD_HOME=./.. \
>        XUSERFILESEARCHPATH=%N XAPPLRESDIR=. \
>        ./ddd  cxxtest
>
> Internal error (Bus error).
>
> Oops!  You have found a bug in DDD.
>
> Running ddd --configuration also produced Bus error.
>
> Compiler:
> i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
>
> Debugger:
> GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct  2 04:07:49  
> UTC 2007)
> This GDB was configured as "i386-apple-darwin".
>
> cat ~/.ddd/log
> GNU DDD 3.3.11 (i686-apple-darwin9.1.0)
> Copyright (C) 1995-1999 Technische Universit?t Braunschweig, Germany.
> Copyright (C) 1999-2001 Universit?t Passau, Germany.
> Copyright (C) 2001 Universit?t des Saarlandes, Germany.
> Copyright (C) 2001-2004 Free Software Foundation, Inc.
>
> Compiled with GCC 4.0.1 (Apple Inc. build 5465)
> Requires X11R6, Xt11R6, Motif 2.1 (GNU/LessTif Version 2.1 Release  
> 0.95.0)
> Includes XPM 3.4.11, Athena Panner (7000002L), DDD core
> Built 2007-12-24 by Roger Mc Murtrie <[email protected]>.
> $  ./ddd cxxtest
> !  Bus error
>
> cxxtest works OK when run from the command line.
>
> Please advise of any testing or further investigation that I can do  
> to assist in solving this bug.
> I am very suspicious that this a leopard problem as since upgrading  
> to leopard and Xtools 3.0 I seem to be experiencing above normal  
> problems with software builds.
> In fact, the reason that I am trying to install ddd is to assist in  
> debugging these problems.
> I have previously had ddd working OK under Tiger. Because of  
> problems after "upgrading" to leopard, I ended up dong a clean- 
> install of leopard.
>
> Roger