ddd
[Top][All Lists]
Advanced

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

Re: ddd crash on Red Hat Linux 7.4


From: Michael Eager
Subject: Re: ddd crash on Red Hat Linux 7.4
Date: Tue, 21 Nov 2017 14:13:18 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

Hi Zaiwen --

Third thing to try is to run DDD under GDB, repeat your test, and see where (or if) it is crashing.

If it crashes, then you can get a backtrace in GDB. That might give a hint about why it is crashing and possibly answer your question about your configuration. (I see a variety of odd behaviors with DDD on CentOS 7.4, the most common being that it stalls waiting for GDB.)

Hope this helps. I've done very little internal work with DDD and most of the problems seem to be in the Motif interface, which is (to me, at least) unclear.


On 11/21/2017 12:46 PM, Zaiwen Gong wrote:
Hi Michael,

Thank you very much for the reply.

First, I tried to to do the same operation without DDD, using GDB from the command line:

    #gdb ./simpleProg
    GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-100.el7
    Copyright (C) 2013 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
    <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show
    copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-redhat-linux-gnu".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /cfs/ad/binello/test/simpleProg...done.
    (gdb) br main
    Breakpoint 1 at 0x4005f5: file simpleProg.cxx, line 5.
    (gdb) run
    Starting program: /cfs/ad/binello/test/./simpleProg
    in cshrc
    xterm-256color
    C

    Breakpoint 1, main () at simpleProg.cxx:5
    5         int x = 1;
    Missing separate debuginfos, use: debuginfo-install
    glibc-2.17-196.el7.x86_64 libgcc-4.8.5-16.el7.x86_64
    libstdc++-4.8.5-16.el7.x86_64
    (gdb) p x
    $1 = 0

so far so good, but the action next (type anything into the debugger at the gdb prompt) is a GUI action and I can't do it on the command line.

Second, I  tried to remove my ~/.ddd directory, but same problem.

I am glad you confirmed that you are using ddd-3.3.12 on CentOS 7.4 without crashing. There may be something wrong in my configuration?


Thanks,

Zaiwen


On 11/21/17 14:58, Michael Eager wrote:
Hi Zaiwen --

First, try to do the same operation without DDD, using GDB from the command line.  That will help decide whether this is a DDD problem or GDB problem.

Second, remove your ~/.ddd directory and try re-running your test.

If it is any consolation, I run ddd-3.3.12 on CentOS 7.4 without crashing.

On 11/21/2017 10:05 AM, Zaiwen Gong wrote:
Hi,

I am using ddd-3.3.12-20.el7.x86_64 on Red Hat Linux 7.4 (3.10.0-693.2.1.el7.x86_64).

I would like to know if it is supported?

Below is a simple program. It will crash if in ddd I right click on x and select print and then later try to type anything into the debugger at the gdb prompt

     #include <stdio.h>

     int main ()
     {
         int x = 1;
         printf ("%d",x );

         return 0;
       }

#To build ....
#g++ -g simpleProg.cxx -o simpleProg

Has anyone been using ddd in Red Hat Linux 7.4 and encountered the same crash?

I have opened an issue here:

  * https://savannah.gnu.org/support/index.php?109420

Any reply will be highly appreciated.

Thanks,

Zaiwen

--
Zaiwen Gong
System Administration Group
Controls Systems Section
Collider-Accelerator Department
Brookhaven National Laboratory
Telephone: (631)344-2938
email:address@hidden



--
Michael Eager    address@hidden
1960 Park Blvd., Palo Alto, CA 94306



reply via email to

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