Just installed ddd via brew on macOS 10.12.6 and got immediate crash on first run. Full session ($ in bold is shell prompt):
$ ddd
-bash: ddd: command not found
$ brew install ddd
==> Installing dependencies for ddd: openmotif
==> Installing ddd dependency: openmotif
######################################################################## 100.0%
==> Pouring openmotif-2.3.8.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/openmotif/2.3.8: 1,245 files, 15.8MB
==> Installing ddd
######################################################################## 100.0%
==> Pouring ddd-3.3.12_1.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/ddd/3.3.12_1: 45 files, 4.4MB
$ ddd
Creating "/Users/mbo/.ddd/"...
Creating "/Users/mbo/.ddd/"...done.
Creating "/Users/mbo/.ddd/sessions/"...
Creating "/Users/mbo/.ddd/sessions/"...done.
Creating "/Users/mbo/.ddd/themes/"...
Creating "/Users/mbo/.ddd/themes/"...done.
Error: Unresolved inheritance operation
Xt error (Unresolved inheritance operation).
Oops! You have found a bug in DDD.
If you can reproduce this bug, please send a bug report
DDD 3.3.12 (i386-apple-darwin16.3.0) gets Xt error
To enable us to fix the bug, you should include the following information:
* What you were doing to get this message. Report all the facts.
* The contents of the `~/.ddd/log' file as generated by this session.
Please read also the section "Reporting Bugs" in the DDD manual.
We thank you for your support.
ddd: Cannot save options
$ cat ~/.ddd/log
GNU DDD 3.3.12 (i386-apple-darwin16.3.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-2009 Free Software Foundation, Inc.
Compiled with GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)
Requires X11R6, Xt11R6, Motif 2.3.6 (Motif Version 2.3.6)
Includes XPM 3.4.11, Athena Panner (7000002L), Manual, App defaults, DDD core
Built 2017-01-27 by (unknown).
$ ddd
! Xt error: Unresolved inheritance operation
! Xt error
! Cannot save options
$ uname -a
Darwin mbo 16.7.0 Darwin Kernel Version 16.7.0: Wed Oct 4 00:17:00 PDT 2017; root:xnu-3789.71.6~1/RELEASE_X86_64 x86_64
XQuartz started up with the ddd command and stayed open afterwards.
Best, Michael.