Re: ddd crash on Red Hat Linux 7.4
Zaiwen Gong <[email protected]> Wed, 22 Nov 2017 09:20:32 -0500
| Newsgroups | gmane.comp.debugging.ddd.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Michael,
Well that's interesting ..... use a debugger to debug a debugger :-)
Here's what I get but I don't think it will help ex it crashes in X
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff724a1a9 in _XtWindowedAncestor () from /lib64/libXt.so.6
(gdb) bt full
#0 0x00007ffff724a1a9 in _XtWindowedAncestor () from /lib64/libXt.so.6
No symbol table info available.
#1 0x00007ffff724ab31 in XtWindowOfObject () from /lib64/libXt.so.6
No symbol table info available.
#2 0x00007ffff7aa9808 in _XmEventDispatcher () from /lib64/libXm.so.4
No symbol table info available.
#3 0x00007ffff7243a39 in XtDispatchEvent () from /lib64/libXt.so.6
No symbol table info available.
#4 0x00005555555ac5aa in process_next_event() ()
No symbol table info available.
#5 0x00005555556669e5 in ddd_main_loop() ()
Again, thank you so much for helping me!
Thanks,
Zaiwen
On 11/21/17 17:13, Michael Eager wrote:
> 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:[email protected]
>>>
>>
>