public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/12122] New: 'argc' bad value
@ 2010-10-14 11:24 vladimir.kokovic@a-asoft.com
  2010-10-14 11:27 ` [Bug gdb/12122] " vladimir.kokovic@a-asoft.com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vladimir.kokovic@a-asoft.com @ 2010-10-14 11:24 UTC (permalink / raw)
  To: gdb-prs

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

           Summary: 'argc' bad value
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: critical
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: vladimir.kokovic@a-asoft.com


Hi,

After installing Kubuntu Maverick gdb presents an incorrect value for the
variable 'argc':

LD_LIBRARY_PATH=\
/asoft-src/ispp/libodbc++-0.2.3/libodbc-without-symlinks/dist/Debug/GNU-Linux-x86:\
/asoft-src/ispp/win32/PDCurses-2.6/xcurses-without-symlinks/dist/Debug/GNU-Linux-x86:\
/asoft-src/ispp/win32/vklib-without-symlinks/vklib/dist/Debug/GNU-Linux-x86 \
/opt/gdb-cvs/bin/gdb --args \
/asoft-src/ispp/win32/ispp-without-symlinks/dist/Debug/GNU-Linux-x86/ispp-without-symlinks
"-xDRIVER=PostgreSQL;DATABASE=ispp-pionir-test;SERVER=asoftdev.a-soft.com;PORT=5432;UID=vlada;PWD=vladakk;MaxVarcharSize=65536;MaxLongVarcharSize=65536;ByteaAsLongVarBinary=1"

GNU gdb (GDB) 7.2.50.20101014-cvs
Copyright (C) 2010 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 "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/asoft-src/ispp/win32/ispp-without-symlinks/dist/Debug/GNU-Linux-x86/ispp-without-symlinks...done.
(gdb) br main
Breakpoint 1 at 0x81ffac8: file ../cc/ispp.cpp, line 346.
(gdb) run
Starting program:
/asoft-src/ispp/win32/ispp-without-symlinks/dist/Debug/GNU-Linux-x86/ispp-without-symlinks
-xDRIVER=PostgreSQL\;DATABASE=ispp-pionir-test\;SERVER=asoftdev.a-asoft.com\;PORT=5432\;UID=vlada\;PWD=vladakk\;MaxVarcharSize=65536\;MaxLongVarcharSize=65536\;ByteaAsLongVarBinary=1
[Thread debugging using libthread_db enabled]

Breakpoint 1, main (argc=-1073745448, argv=0xbffff204) at ../cc/ispp.cpp:346
346     FUNKCIJA int main( int argc, char *argv[] ) {
(gdb) quit
A debugging session is active.

        Inferior 1 [process 17851] will be killed.

Quit anyway? (y or n) y


Because of this error we can no longer debug our c++ programs!


Best regards,
Vladimir Koković, Dragan Ćirić
DP  seniors, Belgrade, Serbia

-- 
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 gdb/12122] 'argc' bad value
  2010-10-14 11:24 [Bug gdb/12122] New: 'argc' bad value vladimir.kokovic@a-asoft.com
@ 2010-10-14 11:27 ` vladimir.kokovic@a-asoft.com
  2012-01-22  3:39 ` ppluzhnikov at google dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: vladimir.kokovic@a-asoft.com @ 2010-10-14 11:27 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Vladimir Koković <vladimir.kokovic@a-asoft.com> 2010-10-14 11:27:16 UTC ---
Created attachment 5059
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5059
System informations

-- 
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 gdb/12122] 'argc' bad value
  2010-10-14 11:24 [Bug gdb/12122] New: 'argc' bad value vladimir.kokovic@a-asoft.com
  2010-10-14 11:27 ` [Bug gdb/12122] " vladimir.kokovic@a-asoft.com
@ 2012-01-22  3:39 ` ppluzhnikov at google dot com
  2014-01-08  4:29 ` sergiodj at redhat dot com
  2014-03-21  3:45 ` sergiodj at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: ppluzhnikov at google dot com @ 2012-01-22  3:39 UTC (permalink / raw)
  To: gdb-prs

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

Paul Pluzhnikov <ppluzhnikov at google dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |ppluzhnikov at google dot
                   |                            |com

--- Comment #2 from Paul Pluzhnikov <ppluzhnikov at google dot com> 2012-01-22 03:39:06 UTC ---
How was ../cc/ispp.cpp compiled?

Chances are, it was built with -O2 and -g.

When debugging optimized code, you unfortunately must know what you are doing.

In particular, I expect that "argc" will become good after you execute a couple
of "stepi" instructions (or just "next"), and GDB steps past the function
prologue.

-- 
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 gdb/12122] 'argc' bad value
  2010-10-14 11:24 [Bug gdb/12122] New: 'argc' bad value vladimir.kokovic@a-asoft.com
  2010-10-14 11:27 ` [Bug gdb/12122] " vladimir.kokovic@a-asoft.com
  2012-01-22  3:39 ` ppluzhnikov at google dot com
@ 2014-01-08  4:29 ` sergiodj at redhat dot com
  2014-03-21  3:45 ` sergiodj at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: sergiodj at redhat dot com @ 2014-01-08  4:29 UTC (permalink / raw)
  To: gdb-prs

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

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

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

--- Comment #3 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
Vladimir, have you had the chance to try what Paul suggested?  Is this a valid
bug?

-- 
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 gdb/12122] 'argc' bad value
  2010-10-14 11:24 [Bug gdb/12122] New: 'argc' bad value vladimir.kokovic@a-asoft.com
                   ` (2 preceding siblings ...)
  2014-01-08  4:29 ` sergiodj at redhat dot com
@ 2014-03-21  3:45 ` sergiodj at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: sergiodj at redhat dot com @ 2014-03-21  3:45 UTC (permalink / raw)
  To: gdb-prs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
Closing as INVALID since there was no input in a long time.  Please reopen if
needed.

-- 
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-03-21  3:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-14 11:24 [Bug gdb/12122] New: 'argc' bad value vladimir.kokovic@a-asoft.com
2010-10-14 11:27 ` [Bug gdb/12122] " vladimir.kokovic@a-asoft.com
2012-01-22  3:39 ` ppluzhnikov at google dot com
2014-01-08  4:29 ` sergiodj at redhat dot com
2014-03-21  3:45 ` 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).