public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/60336] New: va_start corrupts 6-th argument in case of empty type used before the format string
@ 2014-02-25  9:36 ahanins at gmail dot com
  2014-02-25 19:53 ` [Bug other/60336] " mikpelinux at gmail dot com
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: ahanins at gmail dot com @ 2014-02-25  9:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60336

            Bug ID: 60336
           Summary: va_start corrupts 6-th argument in case of empty type
                    used before the format string
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ahanins at gmail dot com

Created attachment 32208
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32208&action=edit
va_list corruption simple example

The code in attachment (for convenience see here
http://coliru.stacked-crooked.com/a/14319753d1667629) prints garbage instead of
6-th argument if Dummy struct is empty. Adding some member to this struct
"fixes" the problem. Not sure, whether problem is in Gcc code generation or
libc, but probably related to ABI.

Tested on Ubuntu 13.04 64bit.


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

end of thread, other threads:[~2014-08-13  5:05 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-25  9:36 [Bug other/60336] New: va_start corrupts 6-th argument in case of empty type used before the format string ahanins at gmail dot com
2014-02-25 19:53 ` [Bug other/60336] " mikpelinux at gmail dot com
2014-02-25 21:41 ` [Bug c++/60336] " hjl.tools at gmail dot com
2014-02-25 22:35 ` [Bug target/60336] " pinskia at gcc dot gnu.org
2014-02-26 17:03 ` [Bug target/60336] empty struct value is passed differently in C and C++ hjl.tools at gmail dot com
2014-02-26 18:09 ` ubizjak at gmail dot com
2014-02-26 19:06 ` hjl.tools at gmail dot com
2014-02-26 19:25 ` vagran.ast at gmail dot com
2014-02-26 19:31 ` pinskia at gcc dot gnu.org
2014-02-26 19:32 ` hjl.tools at gmail dot com
2014-02-26 19:51 ` glisse at gcc dot gnu.org
2014-02-26 19:55 ` hjl.tools at gmail dot com
2014-02-27 14:37 ` jason at gcc dot gnu.org
2014-02-27 16:04 ` hjl.tools at gmail dot com
2014-02-27 16:17 ` ubizjak at gmail dot com
2014-02-27 17:58 ` jason at gcc dot gnu.org
2014-02-27 18:41 ` jason at gcc dot gnu.org
2014-02-27 20:53 ` ubizjak at gmail dot com
2014-02-27 21:21 ` pinskia at gcc dot gnu.org
2014-08-12 19:21 ` [Bug c++/60336] " hjl.tools at gmail dot com
2014-08-12 22:58 ` pinskia at gcc dot gnu.org
2014-08-13  5:05 ` vagran.ast at gmail 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).