stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-400) [Intel C++ 9.1/Linux] SIGSEGV calling a vararg function
Date Thu, 03 May 2007 00:05:15 GMT
[Intel C++ 9.1/Linux] SIGSEGV calling a vararg function
-------------------------------------------------------

                 Key: STDCXX-400
                 URL: https://issues.apache.org/jira/browse/STDCXX-400
             Project: C++ Standard Library
          Issue Type: Bug
          Components: External
         Environment: Intel C++ 9.1/Linux/EM64T
            Reporter: Martin Sebor
            Priority: Blocker


>From https://premier.intel.com/premier/IssueDetail.aspx?IssueID=431562:

The program below runs fine when compiled with gcc but fails with SIGSEGV when compiled with
Intel C++ 9.1. The same program runs successfully to completion when compiled with Intel C++
9.0 (l_cc_c_9.0.031).

$ cat t.cpp && g++ --version && g++ t.cpp && ./a.out && icpc
-V t.cpp && ./a.out
#include <stdio.h>
#include <stdarg.h>

void foo (const char *fmt, ...) {
va_list va;
va_start (va, fmt);
vfprintf (stdout, fmt, va);
va_end (va);
}

int main () { foo ("%s\n", "Hello, World!"); }
g++ (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Hello, World!
Intel(R) C++ Compiler for Intel(R) EM64T-based applications, Version 9.1 Build 20070320 Package
ID: l_cc_c_9.1.049
Copyright (C) 1985-2007 Intel Corporation. All rights reserved.

Edison Design Group C/C++ Front End, version 3.6 (Mar 22 2007 02:18:08)
Copyright 1988-2005 Edison Design Group, Inc.

GNU ld version 2.15.92.0.2 20040927
Segmentation fault

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message