bugDotGNU Portable.NET - Bugs: bug #17170, Problem with variable args of a...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #17170: Problem with variable args of a vararg pinvoke call

Submitted by:  None
Submitted on:  Fri 21 Jul 2006 01:40:22 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Fri 14 Mar 2008 07:26:03 AM UTC, comment #1:

Work fine

----------------------
online

Anonymous
Fri 21 Jul 2006 01:40:22 PM UTC, original submission:

Hello,
it looks like there is something wrong with the handling of the arguments after the sentinel of a vararg method implemented through a pinvoke.
I attach an executable that shows the bug (test.exe), along with a dynamic library required (gcc4net.dll).
The executable was produced by CIL port of GCC (see https://gna.org/projects/cil4gcc) and not with pnet C compiler, this is why I attached the binaries.
Never mind how it was produced, it is valid CIL, and it should run correctly with ilrun.
Instead, a wrong number is printed after "foo" in the program output.

The source code of the test is:

int printf (const char*,...) _attribute_((pinvoke("/lib/libc.so.6")));

int main()
{
printf("foo %d \n", 3);
return 0;
}

Anonymous

 

Attached Files
file #10391:  test.zip added by None (3kB - application/x-zip-compressed - Archive containing test.exe and gcc4net.dll)

 

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 click here to 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):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Fri 21 Jul 2006 01:40:22 PM UTCNoneAttached File-=>Added test.zip, #10391

Back to the top


Powered by Savane 3.1-cleanup