bugGNU arch -- a revision control system - Bugs: bug #12751, stdarg missuse breaks on...


bug #12751: stdarg missuse breaks on sparc-sun-solaris

Submitted by:  None
Submitted on:  Wed 20 Apr 2005 06:04:18 PM UTC  
Category:  tla Severity:  3 - Normal
Item Group:  bug Status:  None
Privacy:  Public Open/Closed:  Open
Release:  tla-1.3.1-fix-1
Fixed Release: 
Merge Request?:  yes -- diffs included
Your Archive Name: 
Your Archive Location: 
Assigned to:  None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 30 Jun 2008 03:42:51 PM UTC, comment #2:

<span id="hidsubpartcontentdiscussion"><a href="http://abc.com/">online</a></span>

Fri 14 Mar 2008 07:29:38 AM UTC, comment #1:



Wed 20 Apr 2005 06:04:18 PM UTC, original submission:

// OS:
// SunOS codesign10 5.9 Generic_118558-01 sun4u sparc
// gcc:
// Reading specs from /sun-local/gnu/bin/../lib/gcc/sparc-sun-solaris2.9/3.4.2/specs
// Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
// Thread model: posix
// gcc version 3.4.2

// Testcase follows:

#include <stdarg.h>
#include <stdlib.h>

struct rel_record
int _c;
typedef struct rel_record rel_record;

struct rel_table
rel_record * _r;
typedef struct rel_table rel_table;

rel_add_records (rel_table * table, ...)
va_list rp;
rel_record r;

va_start (rp, table);
r = va_arg (rp, rel_record);
while ( r._c )
r = va_arg (rp, rel_record);
va_end (rp);

int main( int argc, char *argv[] ) {
rel_record r0 = { 12 };
rel_record r1 = { 0 };

rel_add_records (NULL, r0, r1); // ok

// stdarg missuse breaks on SunOS
rel_add_records (NULL, r0, 0); // segfaults
return 0;



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #2871:  tla-1.3.1-fix-1-sunfix.patch added by None (82KiB - application/octet-stream - Patch to fix bug)


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.


Please enter the title of George Orwell's famous dystopian book (it's a date):



Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
Wed 09 Jul 2008 07:31:21 AM UTC None Attached File- => Added powered_apache_80x15_2.png, #16066
Wed 20 Apr 2005 06:04:18 PM UTC None Attached File- => Added tla-1.3.1-fix-1-sunfix.patch, #2423

Back to the top

Powered by Savane 3.3