bug-ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DDD 3.2.91 (i686-pc-linux-gnu) gets `Segmentation fault' signal


From: Doug Owens
Subject: DDD 3.2.91 (i686-pc-linux-gnu) gets `Segmentation fault' signal
Date: Sun, 26 Nov 2000 06:38:41 -0600

Hi,

I am trying to debug a shared library buildt with symbols that is loaded
by an application that was built without symbols.  The application is
started by a script that sets envirionment variables and other things. 
I have included the script as an attachment.  The script reads an
environment variable called DEBUGGER which I have set to "ddd" and
launches ddd with the application as its only argument. e.g.
'DEBUGGER=ddd ./cwide'.

The ddd start-up window displays and then I get:
 "Internal error (Segmentation fault).

 Oops!  You have found a bug in DDD.

 If you can reproduce this bug, please send a bug report
 to <address@hidden>, giving a subject like

     DDD 3.2.91 (i686-pc-linux-gnu) gets `Segmentation fault' signal

 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."

This happens regardless if I have a .ddd preference folder in my home
directory or not.

I am running Redhat Linux 6.2 with GNOME GTK as my window manager.  I
have Open Motif 2.1 installed.  I also tried to use version 3.4 of ddd
from a prebuilt rpm, with the same result.  I built 3.2.91 with gcc
2.95.2.

Please let me know if I can give you any additional information.

Sincerely,
Doug Owens
#!/bin/sh

# cwide    19990328
#
# Command script to run IDE for Linux
#
# Usage:
#    cwide

# Uncomment the next line if you wish to disable missing link warnings 
# when starting the IDE. This only needs to be done if you see the 
# warnings and they bother you.
# See the documentation for more details.

#DISABLE_MISSING_LINK_WARNINGS="true"

#COMPILED_RSRC="enabled" #enable when the resource file is compiled into the ide

BASE="/home/dowens/metro38/metrowerks/CodeWarrior_Pro6"
CWDIR="$BASE/CodeWarrior4.1"
APPSPEC="$CWDIR/CodeWarrior"
JAVA="$CWDIR/Java_Support/(cwjdk)"
GCC_CHECK="ENABLED"

IDE="./CodeWarrior_IDE_4.1"


# Export the CWDIR environment so that the plugins
# that need to know where CodeWarrior is installed
# can have access to the directory.
export CWDIR

######################################################################
# Besides the executable, running CodeWarrior uses
# - system and GCC run-time dynamic libraries
# - customized X resources (optional)
# - compiler, linker and debugger plugins (optional)


# Make available our settings for the CodeWarrior X resources
APPDEF_DIR="$CWDIR/app-defaults"
APPDEF_CW="$APPDEF_DIR/CodeWarrior"
if [ -f $APPDEF_CW ]; then
        if [ "$XUSERFILESEARCHPATH" ]; then
                : "Add to existing search path"
                XUSERFILESEARCHPATH="$XUSERFILESEARCHPATH:$APPDEF_DIR/%N"
        else
                : "Start new search path"
                XUSERFILESEARCHPATH="$APPDEF_DIR/%N"
        fi
        export XUSERFILESEARCHPATH
else
        echo "Note: no app-defaults file for CodeWarrior"
fi


# Force the mounting of these directories as MacOS volumes.  They are:
# - application directory
# - user home directory (contains .CodeWarrior directory)
# - remainder of UNIX paths
CODEWARRIOR_PATH="$CWDIR:$HOME:/"
export CODEWARRIOR_PATH


#if [-z "$COMPILED_RSRC"]; then
## Identify the application path to activate in-memory application resource.
# If the application uses a %-file for its resource, comment this out
CODEWARRIOR_APPSPEC_PATH="$APPSPEC"
export CODEWARRIOR_APPSPEC_PATH
#fi

# Limit CodeWarrior to the server's outline fonts
CODEWARRIOR_SERVER_FONTS="-*-*-*-*-*-*-*-*-*-*-*-*"
export CODEWARRIOR_SERVER_FONTS



# Make sure to use in-memory tmp directory for temporary files.
if [ ! "$TMPDIR" ]; then
    TMPDIR=/tmp
    export TMPDIR
fi


# Change directory to where the executable is located
#chdir "$CWDIR"
cd "$CWDIR"     # Linux does NOT seem to have the chdir command ?????.

# Set the shared library path to null since users may have paths
# which can overwrite the IDE's location for libraries which
# can lead to conflicts.

# this needs to be expanded for other machine types
MW_ARCH=`uname -m`
if (test ${MW_ARCH} = "ppc"); then
    MW_ARCH="ppc"
else
    MW_ARCH="i386"
fi

LD_LIBRARY_PATH="$CWDIR/lib:$JAVA/jre/lib/$MW_ARCH:$JAVA/jre/lib/$MW_ARCH/classic:$JAVA/jre/lib/$MW_ARCH/native_threads:$JAVA/lib/$MW_ARCH/native_threads"
export LD_LIBRARY_PATH

# Run Pro6
if [ "$DEBUGGER" ]; then
  "$DEBUGGER" "$IDE" "$@"
else
exec "$IDE" "$@"
fi

##
GNU DDD 3.2.91 (i686-pc-linux-gnu)
Copyright (C) 1995-1999 Technische Universit├Ąt Braunschweig, Germany.
Copyright (C) 1999-2000 Universit├Ąt Passau, Germany.

Compiled with GCC 2.95.2 19991024 (release), GNU libc 2.1
Requires X11R6, Xt11R6, Motif 2.1.30 (Motif Version 2.1.30)
Includes XPM 3.4.11, Athena Panner, DDD core
Built 2000-11-26 by root <address@hidden>.
$  ddd ./CodeWarrior_IDE_4.1
+  /bin/sh -c 'exec gdb -q -fullname '\''./CodeWarrior_IDE_4.1'\'''
!  Segmentation fault
+  /bin/sh -c 'gdb -x /tmp/filecky2Sm ddd core'
GNU gdb 20000504
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Core was generated by `ddd ./CodeWarrior_IDE_4.1'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from 
/home/dowens/metro38/metrowerks/CodeWarrior_Pro6/CodeWarrior4.1/lib/libXm.so.2...done.
Loaded symbols for 
/home/dowens/metro38/metrowerks/CodeWarrior_Pro6/CodeWarrior4.1/lib/libXm.so.2
Reading symbols from /usr/X11R6/lib/libXp.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXp.so.6
Reading symbols from /usr/X11R6/lib/libXpm.so.4...done.
Loaded symbols for /usr/X11R6/lib/libXpm.so.4
Reading symbols from /usr/X11R6/lib/libXaw.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXaw.so.6
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXmu.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXt.so.6
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/lib/libncurses.so.5...done.
Loaded symbols for /usr/lib/libncurses.so.5
Reading symbols from 
/home/dowens/metro38/metrowerks/CodeWarrior_Pro6/CodeWarrior4.1/lib/libstdc++-libc6.1-2.so.3...done.
Loaded symbols for 
/home/dowens/metro38/metrowerks/CodeWarrior_Pro6/CodeWarrior4.1/lib/libstdc++-libc6.1-2.so.3
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_nisplus.so.2...done.
Loaded symbols for /lib/libnss_nisplus.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_nis.so.2...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
#0  0x402b2190 in XrmPermStringToQuark () from /usr/X11R6/lib/libX11.so.6
#0  0x402b2190 in XrmPermStringToQuark () from /usr/X11R6/lib/libX11.so.6
#1  0x402569b8 in _XtCompileResourceList () from /usr/X11R6/lib/libXt.so.6
#2  0x40254bb4 in ObjectClassPartInitialize () from /usr/X11R6/lib/libXt.so.6
#3  0x4005137c in ClassPartInitRootWrapper () from 
/home/dowens/metro38/metrowerks/CodeWarrior_Pro6/CodeWarrior4.1/lib/libXm.so.2
#4  0x40243df2 in CallClassPartInit () from /usr/X11R6/lib/libXt.so.6
#5  0x40243de5 in CallClassPartInit () from /usr/X11R6/lib/libXt.so.6
#6  0x40243de5 in CallClassPartInit () from /usr/X11R6/lib/libXt.so.6
#7  0x40243de5 in CallClassPartInit () from /usr/X11R6/lib/libXt.so.6
#8  0x40243de5 in CallClassPartInit () from /usr/X11R6/lib/libXt.so.6
#9  0x40243de5 in CallClassPartInit () from /usr/X11R6/lib/libXt.so.6
#10 0x40244035 in XtInitializeWidgetClass () from /usr/X11R6/lib/libXt.so.6
#11 0x4024401c in XtInitializeWidgetClass () from /usr/X11R6/lib/libXt.so.6
#12 0x400f59af in Initialize () from 
/home/dowens/metro38/metrowerks/CodeWarrior_Pro6/CodeWarrior4.1/lib/libXm.so.2
#13 0x402440e5 in CallInitialize () from /usr/X11R6/lib/libXt.so.6
#14 0x402445f3 in xtCreate () from /usr/X11R6/lib/libXt.so.6
#15 0x40244ab1 in _XtCreateWidget () from /usr/X11R6/lib/libXt.so.6
#16 0x40244b21 in XtCreateWidget () from /usr/X11R6/lib/libXt.so.6
#17 0x400f60a7 in create () from 
/home/dowens/metro38/metrowerks/CodeWarrior_Pro6/CodeWarrior4.1/lib/libXm.so.2
#18 0x400f640b in XmCreateMenuBar () from 
/home/dowens/metro38/metrowerks/CodeWarrior_Pro6/CodeWarrior4.1/lib/libXm.so.2
#19 0x80919b4 in MMcreateMenuBar (parent=0x83e0500, name=0x82635ee "menubar", 
items=0x82bcaa0, args=0x0, arg=0) at MakeMenu.C:681
#20 0x8053dbe in main (argc=2, argv=0xbffff4f4) at ddd.C:2366
#21 0x403fe9cb in __libc_start_main (main=0x8050c30 <main>, argc=2, 
argv=0xbffff4f4, init=0x804ec68 <_init>, 
    fini=0x82620a0 <_fini>, rtld_fini=0x4000ae60 <_dl_fini>, 
stack_end=0xbffff4ec) at ../sysdeps/generic/libc-start.c:92

reply via email to

[Prev in Thread] Current Thread [Next in Thread]