[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#451707: marked as done (D should send foo[] as a foo* when used in a variadic argument in extern(C) context)



Your message dated 
with message-id <20100713184537.10815.90403.mass-bugs-close@merkel.debian.org>
and subject line gdc-4.1 removed from Debian unstable
has caused the Debian Bug report #451707,
regarding D should send foo[] as a foo* when used in a variadic argument in extern(C) context
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
451707: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=451707
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: gdc-4.1
Version: 0.25-4.1.2-17
Severity: grave
Justification: renders package unusable

The following code triggers the issue:

--------------------------------------------------
import std.c.process;
int main(char args[][]) {
    execl("/bin/sh", "sh", "-c", "ls", null);
    printf("%m\n");
    return -1;
}
--------------------------------------------------

It seems to be related to the fact that execl prototype is:

extern(C) int exelc(char *, char *, ...) because if I do that:

--------------------------------------------------
extern(C) int execl(char *path, char *arg, char*, char*, char*, ...);
int main(char args[][]) {
    execl("/bin/sh", "sh", "-c", "ls", null);
    printf("%m\n");
    return -1;
}
--------------------------------------------------

The code works. Moreover, the execl in the first case fails with a `Bad
Address` error (probably EFAULT).

This is really nasty and makes the use of many POSIX functions totally
impossible.



--- End Message ---
--- Begin Message ---
Version: 0.25-20080616-4.1.2-27+rm

gdc-4.1 has been removed from Debian unstable: http://bugs.debian.org/577428

Closing its bugs with a Version higher than the last unstable upload.

More information about this script at:
  http://git.debian.org/?p=users/morph/mass-bugs-close.git;a=blob_plain;f=README;hb=HEAD


--- End Message ---

Reply to: