Re: ddd crash on Red Hat Linux 7.4

Zaiwen Gong <[email protected]> Tue, 21 Nov 2017 15:46:42 -0500
Newsgroups gmane.comp.debugging.ddd.general
Message-ID <[email protected]>
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:[email protected]
>