public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/12790] New: GDB is unable to do inf-call of vararg of type _Complex on x86_64-linux
@ 2011-05-20 14:04 qiyao at gcc dot gnu.org
  2011-05-23 14:33 ` [Bug tdep/12790] " qiyao at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: qiyao at gcc dot gnu.org @ 2011-05-20 14:04 UTC (permalink / raw)
  To: gdb-prs

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

           Summary: GDB is unable to do inf-call of vararg of type
                    _Complex on x86_64-linux
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: qiyao@gcc.gnu.org


Created attachment 5741
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5741
test case

GDB on x86_64-linux is unable to handl inf-call of vararg function of parameter
type _Complex.  Here are the steps to reproduce.

$ gcc -g complex.c -o complex

$ ./gdb/gdb complex
...
(gdb) b main
(gdb) run
Starting program: /scratch/yao/gdb_cvs/build-x86_64/complex

Breakpoint 1, main () at ../../complex.c:25
25        return 0;
(gdb) print find_max_float_real(4, fc1, fc2, fc3, fc4)
During symbol reading, incomplete CFI data; unspecified registers (e.g., rax)
at 0x40044c.
$1 = 0 + 0 * I  <-- wrong result.
(gdb) print find_max_double_real(4, dc1, dc2, dc3, dc4)
$2 = 0 + 0 * I  <-- wrong result.

(gdb) print find_max_long_double_real(4, ldc1, ldc2, ldc3, ldc4)
../../src/gdb/amd64-tdep.c:622: internal-error: amd64_return_value: Assertion
`len <= 16' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n

../../src/gdb/amd64-tdep.c:622: internal-error: amd64_return_value: Assertion
`len <= 16' failed.
A problem internal to GDB has been detected,

-- 
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 tdep/12790] GDB is unable to do inf-call of vararg of type _Complex on x86_64-linux
  2011-05-20 14:04 [Bug gdb/12790] New: GDB is unable to do inf-call of vararg of type _Complex on x86_64-linux qiyao at gcc dot gnu.org
@ 2011-05-23 14:33 ` qiyao at gcc dot gnu.org
  2012-10-24 13:35 ` jan.kratochvil at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: qiyao at gcc dot gnu.org @ 2011-05-23 14:33 UTC (permalink / raw)
  To: gdb-prs

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

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-linux
          Component|gdb                         |tdep
               Host|                            |x86_64-linux
              Build|                            |x86_64-linux

-- 
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 tdep/12790] GDB is unable to do inf-call of vararg of type _Complex on x86_64-linux
  2011-05-20 14:04 [Bug gdb/12790] New: GDB is unable to do inf-call of vararg of type _Complex on x86_64-linux qiyao at gcc dot gnu.org
  2011-05-23 14:33 ` [Bug tdep/12790] " qiyao at gcc dot gnu.org
@ 2012-10-24 13:35 ` jan.kratochvil at redhat dot com
  2012-10-25  8:59 ` cvs-commit at gcc dot gnu.org
  2012-10-25  9:00 ` kettenis at gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-10-24 13:35 UTC (permalink / raw)
  To: gdb-prs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat
                   |                            |dot com

--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-10-24 13:35:53 UTC ---
On Fedora 18 x86_64:
KPASS: gdb.base/varargs.exp: print find_max_float_real(4, fc1, fc2, fc3, fc4)
(PRMS gdb/12790)
KPASS: gdb.base/varargs.exp: print find_max_double_real(4, dc1, dc2, dc3, dc4)
(PRMS gdb/12790)
KPASS: gdb.base/varargs.exp: print find_max_long_double_real(4, ldc1, ldc2,
ldc3, ldc4) (PRMS gdb/12790)
Why KFAIL, on which OS?

with -m32:
KPASS: gdb.base/varargs.exp: print find_max_float_real(4, fc1, fc2, fc3, fc4)
(PRMS gdb/12790)
KFAIL: gdb.base/varargs.exp: print find_max_double_real(4, dc1, dc2, dc3, dc4)
(PRMS: gdb/12790)
KFAIL: gdb.base/varargs.exp: print find_max_long_double_real(4, ldc1, ldc2,
ldc3, ldc4) (PRMS: gdb/12790)

Those KFAILs seem to be some different bug but still a GDB bug:

print find_max_double_real(4, dc1, dc2, dc3, dc4)
Program received signal SIGSEGV, Segmentation fault.
find_max_double_real (num_vals=0) at ./gdb.base/varargs.c:169
169       return max;
The program being debugged was signaled while in a function called 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 tdep/12790] GDB is unable to do inf-call of vararg of type _Complex on x86_64-linux
  2011-05-20 14:04 [Bug gdb/12790] New: GDB is unable to do inf-call of vararg of type _Complex on x86_64-linux qiyao at gcc dot gnu.org
  2011-05-23 14:33 ` [Bug tdep/12790] " qiyao at gcc dot gnu.org
  2012-10-24 13:35 ` jan.kratochvil at redhat dot com
@ 2012-10-25  8:59 ` cvs-commit at gcc dot gnu.org
  2012-10-25  9:00 ` kettenis at gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-10-25  8:59 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-10-25 08:59:11 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    kettenis@sourceware.org    2012-10-25 08:59:07

Modified files:
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.base: varargs.exp 

Log message:
    * gdb.base/varargs.exp: PR gdb/12790 is now fixed.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3429&r2=1.3430
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/varargs.exp.diff?cvsroot=src&r1=1.20&r2=1.21

-- 
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 tdep/12790] GDB is unable to do inf-call of vararg of type _Complex on x86_64-linux
  2011-05-20 14:04 [Bug gdb/12790] New: GDB is unable to do inf-call of vararg of type _Complex on x86_64-linux qiyao at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-10-25  8:59 ` cvs-commit at gcc dot gnu.org
@ 2012-10-25  9:00 ` kettenis at gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: kettenis at gnu dot org @ 2012-10-25  9:00 UTC (permalink / raw)
  To: gdb-prs

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

Mark Kettenis <kettenis at gnu dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |kettenis at gnu dot org
         Resolution|                            |FIXED

--- Comment #3 from Mark Kettenis <kettenis at gnu dot org> 2012-10-25 09:00:31 UTC ---
See PR gdb/12796, PR gdb/12798 and PR gdb/12800.

-- 
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

end of thread, other threads:[~2012-10-25  9:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-20 14:04 [Bug gdb/12790] New: GDB is unable to do inf-call of vararg of type _Complex on x86_64-linux qiyao at gcc dot gnu.org
2011-05-23 14:33 ` [Bug tdep/12790] " qiyao at gcc dot gnu.org
2012-10-24 13:35 ` jan.kratochvil at redhat dot com
2012-10-25  8:59 ` cvs-commit at gcc dot gnu.org
2012-10-25  9:00 ` kettenis at gnu dot org

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).