bug-ddd
[Top][All Lists]
Advanced

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

DDD 3.3.1 (sparc-sun-solaris2.7) gets `Segmentation Fault' signal


From: Richard.W.Brown
Subject: DDD 3.3.1 (sparc-sun-solaris2.7) gets `Segmentation Fault' signal
Date: Tue, 19 Mar 2002 15:09:24 -0000

Hi Guys 

I found the following bug running on both, 
SunOS xxxxxxx 5.8 Generic_108528-12 sun4u sparc SUNW,Ultra-Enterprise
SunOS zzzzzzz 5.6 Generic_105181-16 sun4u sparc SUNW,Ultra-5_10

------------------------------------------

$ ddd --check-configuration
Checking for X11 library directory... /usr/openwin/lib/X11
Checking for XKeysymDB... /usr/openwin/lib/XKeysymDB
No configuration problems found.

------------------------------------------

 <<log>> 
------------------------------------------


GNU DDD 3.3.1 (sparc-sun-solaris2.6)
Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany.
Copyright (C) 1999-2001 Universität Passau, Germany.

Compiled with SunPRO CC 0x520
Requires X11R6, Xt11R6, Motif 1.2.6 (OSF/Motif Version 1.2.6)
Includes XPM 3.4.11, Athena Panner, DDD core
Built 2001-05-18 by Albert Chin-A-Young <(china@thewrittenword.com)>.

------------------------------------------


GNU gdb 5.0
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 "sparc-sun-solaris2.6".

------------------------------------------

Reading specs from 
/opt/net/local/gcc2953/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/specs
gcc version 2.95.3 20010315 (TWW)

-----------------------------------------


To recreate the problem is easy, which  is unusual. Using the sample.c program 
in the ddd manual, attached.

compile it and run it with, 

$ gcc -g -o sample sample.c
$ ddd gcc 8000 7000 5000 1000 4000

put a breakpoint on the line a = (int *)malloc((.......
use the run option and when the execution stops, then one single step

Now use the menu option data->memory...

set examine to 16 and select hex, and enter the address of the variable 'a'.

I got the address by hovering the cursor over the 'a' in the line you have the 
break point on. 



==============  screen display ==================================
ddd sample 8000 7000 5000 1000 4000

Segmentation Fault (core dumped)

warning: Lowest section in /usr/lib/libw.so.1 is .hash at 00000074

warning: Lowest section in /usr/lib/libw.so.1 is .hash at 00000074

Internal error (Segmentation Fault).

Oops!  You have found a bug in DDD.

If you can reproduce this bug, please send a bug report
to <bug-ddd@gnu.org>, giving a subject like

    DDD 3.3.1 (sparc-sun-solaris2.7) 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.

==============  screen display ==================================


 <<sample.c>> 


BR
Richard W. Brown

Local SW Engineering Tools Co-ordinator
Nokia Mobile Phones,
Nokia House
Summit Ave, Farnborough,
Hampshire, UK, GU14 0NG
* +44 (0)1252 866 743
richard.w.brown@nokia.com

Attachment: log
Description: log

Attachment: sample.c
Description: sample.c


reply via email to

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