public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15257] New: !!!Bug gdb needed to change to intel64 idb to work!!!
@ 2013-03-08 17:52 aleksandar.jelic30 at gmail dot com
  2013-03-08 21:31 ` [Bug c++/15257] " tromey at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: aleksandar.jelic30 at gmail dot com @ 2013-03-08 17:52 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15257

             Bug #: 15257
           Summary: !!!Bug gdb needed to change to intel64 idb to work!!!
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: aleksandar.jelic30@gmail.com
    Classification: Unclassified


This bug is existing at least since 2003.

The Bug is next:

Here is one super simple program but it dont work:
--------Start-------------
#include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;

int main (int argc, char* argv[])
{
// convert the text argv[1] to double using atof:
double r = atof(argv[1]);
double s = sin(r);
cout << "Hello, World! sin(" << r << ")=" << s << endl;
// success
return 0;
}
---------END------------

BUILD is OK like you can see:

---------Start(build report)----------
"/usr/bin/gmake" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
gmake[1]: Entering directory
`/home/aleksandar/NetBeansProjects/CppApplication_2'
"/usr/bin/gmake" -f nbproject/Makefile-Debug.mk
dist/Debug/GNU_Compiler_Collection-Linux-x86/cppapplication_2
gmake[2]: Entering directory
`/home/aleksandar/NetBeansProjects/CppApplication_2'
mkdir -p build/Debug/GNU_Compiler_Collection-Linux-x86
rm -f build/Debug/GNU_Compiler_Collection-Linux-x86/main.o.d
g++ -c -g -MMD -MP -MF build/Debug/GNU_Compiler_Collection-Linux-x86/main.o.d
-o build/Debug/GNU_Compiler_Collection-Linux-x86/main.o main.cpp
mkdir -p dist/Debug/GNU_Compiler_Collection-Linux-x86
g++ -o dist/Debug/GNU_Compiler_Collection-Linux-x86/cppapplication_2
build/Debug/GNU_Compiler_Collection-Linux-x86/main.o
gmake[2]: Leaving directory
`/home/aleksandar/NetBeansProjects/CppApplication_2'
gmake[1]: Leaving directory
`/home/aleksandar/NetBeansProjects/CppApplication_2'

BUILD SUCCESSFUL (total time: 613ms)
---------End(build report)------------

But run fail

---------Start(Run report)------------
RUN FAILED (exit value 1, total time: 78ms)
----------End(Run report)-------------

---------Start(Terminal report)------------
/usr/local/netbeans-7.2.1/ide/bin/nativeexecution/dorun.sh: line 33: 7673
Segmentation fault sh "${SHFILE}"

Press [Enter] to close the terminal ...

---------End(Terminal report)------------

I've tried everything different compilers and programs to run them(Netbeans,
Eclipse, Qt Creator.....)
>>>>>>>>>>>-<<<<<<<<<<<
When I changed: gdb->idb
>>>>>>>>>>>-<<<<<<<<<<<
IT WORKED!!!


I'm theoretical physicist so I dont know how to fix it or help any more.
But I would be grateful it you could fix it.
I know 1000+ students that had same problem 
and were recommended to do C++ programing in Windows. 
I just dont understand why it wasnt fixed before??
Maybe no one sow it before?
Cause we use C++ for numerical calculations...

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/15257] !!!Bug gdb needed to change to intel64 idb to work!!!
  2013-03-08 17:52 [Bug c++/15257] New: !!!Bug gdb needed to change to intel64 idb to work!!! aleksandar.jelic30 at gmail dot com
@ 2013-03-08 21:31 ` tromey at redhat dot com
  2013-03-10 16:15 ` aleksandar.jelic30 at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2013-03-08 21:31 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15257

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |tromey at redhat dot com

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2013-03-08 21:31:07 UTC ---
(In reply to comment #0)

> /usr/local/netbeans-7.2.1/ide/bin/nativeexecution/dorun.sh: line 33: 7673
> Segmentation fault sh "${SHFILE}"


There isn't enough information in this report for us to
know what is going wrong.

I don't know what dorun.sh does.  I didn't see any invocation
of gdb, or any gdb output, in the bug report.

If gdb is crashing, then a good starting point is to run gdb
in the terminal and reproduce the crash there.
If you can do this, then the next step is getting a stack
trace from gdb.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/15257] !!!Bug gdb needed to change to intel64 idb to work!!!
  2013-03-08 17:52 [Bug c++/15257] New: !!!Bug gdb needed to change to intel64 idb to work!!! aleksandar.jelic30 at gmail dot com
  2013-03-08 21:31 ` [Bug c++/15257] " tromey at redhat dot com
@ 2013-03-10 16:15 ` aleksandar.jelic30 at gmail dot com
  2013-05-15 21:58 ` dje at google dot com
  2014-09-12 23:11 ` sergiodj at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: aleksandar.jelic30 at gmail dot com @ 2013-03-10 16:15 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15257

--- Comment #2 from Aleksandar Jelic <aleksandar.jelic30 at gmail dot com> 2013-03-10 16:14:58 UTC ---
Ok no problem Tom, just can you tell me how to do it, please?

Cause I dont know too much and I'm physicist and my programing is more about
solving equations so I don't know how to do it.

Thanks, 
A. Jelic

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/15257] !!!Bug gdb needed to change to intel64 idb to work!!!
  2013-03-08 17:52 [Bug c++/15257] New: !!!Bug gdb needed to change to intel64 idb to work!!! aleksandar.jelic30 at gmail dot com
  2013-03-08 21:31 ` [Bug c++/15257] " tromey at redhat dot com
  2013-03-10 16:15 ` aleksandar.jelic30 at gmail dot com
@ 2013-05-15 21:58 ` dje at google dot com
  2014-09-12 23:11 ` sergiodj at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: dje at google dot com @ 2013-05-15 21:58 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15257

dje at google dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at google dot com

--- Comment #3 from dje at google dot com 2013-05-15 21:58:15 UTC ---
A good start would be to provide the file where you changed gdb to idb.
Was it dorun.sh?

Another possibility is to run dorun.sh as "sh -x dorun.sh".
That will provide a trace of what dorun.sh does - hopefully it will show us how
gdb is being invoked.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/15257] !!!Bug gdb needed to change to intel64 idb to work!!!
  2013-03-08 17:52 [Bug c++/15257] New: !!!Bug gdb needed to change to intel64 idb to work!!! aleksandar.jelic30 at gmail dot com
                   ` (2 preceding siblings ...)
  2013-05-15 21:58 ` dje at google dot com
@ 2014-09-12 23:11 ` sergiodj at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: sergiodj at redhat dot com @ 2014-09-12 23:11 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=15257

Sergio Durigan Junior <sergiodj at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sergiodj at redhat dot com

--- Comment #4 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
Hi, is this is valid?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-09-12 23:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-08 17:52 [Bug c++/15257] New: !!!Bug gdb needed to change to intel64 idb to work!!! aleksandar.jelic30 at gmail dot com
2013-03-08 21:31 ` [Bug c++/15257] " tromey at redhat dot com
2013-03-10 16:15 ` aleksandar.jelic30 at gmail dot com
2013-05-15 21:58 ` dje at google dot com
2014-09-12 23:11 ` sergiodj at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).