From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12569 invoked by alias); 28 Jul 2010 11:47:04 -0000 Received: (qmail 12525 invoked by uid 48); 28 Jul 2010 11:46:53 -0000 Date: Wed, 28 Jul 2010 11:47:00 -0000 Subject: [Bug c/45106] New: casting of variadic function pointers to normal function pointers causes segfaults on 64bit systems X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "robert dot haschke at uni-bielefeld dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg03076.txt.bz2 Casting a variadic function pointer to normal function pointer (with adequate number and type of arguments) causes a segfault, when the function is called. Vice versa (casting normal function pointer to variadic function) works fine. The problem only occurs for 64bit builds. Casting works nice in all directions for 32bit builds. -- Summary: casting of variadic function pointers to normal function pointers causes segfaults on 64bit systems Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: robert dot haschke at uni-bielefeld dot de GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45106