public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/19089] New: Environment variable TMP may yield gcc: abort with internal error
@ 2004-12-20 12:44 m at verified dot de
  2004-12-20 12:49 ` [Bug other/19089] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: m at verified dot de @ 2004-12-20 12:44 UTC (permalink / raw)
  To: gcc-bugs

When a (bash) environment variable TMP is set to a file with execution
rights 0755, gcc aborts with an internal error. E.g.:

# -- bash shell --------------------------------------------------------------
$ uname -a
CYGWIN_NT-5.1 DF8JLP0J 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown Cygwin
$ gcc --version 
gcc (GCC) 3.3.1 (cygming special)
Copyright (C) 2003 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.

$ cat a.c

#include <stdlib.h>
#include <stdio.h>
int main(int argc , char *argv[]){
  printf("Ok.\n");
  return 0;
}
$ unset TMP
$ gcc -save-temps a.c
$ touch /tmp/file.txt
$ export TMP=/tmp/file.txt
$ gcc -save-temps a.c
$ chmod u+x /tmp/file.txt
$ gcc -save-temps a.c
$ chmod 0755 /tmp/file.txt 
$ gcc -save-temps a.c
gcc: Internal error: Aborted (program collect2)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
## ----------------------------------------------------------

The MAN page does not note a dependency to TMP (only TMPDIR) ist listed.

-- 
           Summary: Environment variable TMP may yield gcc: abort with
                    internal error
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: m at verified dot de
                CC: gcc-bugs at gcc dot gnu dot org,m at verified dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19089


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-19089-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2022-11-28 22:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-20 12:44 [Bug c/19089] New: Environment variable TMP may yield gcc: abort with internal error m at verified dot de
2004-12-20 12:49 ` [Bug other/19089] " pinskia at gcc dot gnu dot org
2004-12-20 13:01 ` pinskia at gcc dot gnu dot org
2005-07-02  1:48 ` pinskia at gcc dot gnu dot org
     [not found] <bug-19089-4@http.gcc.gnu.org/bugzilla/>
2021-11-28  2:02 ` pinskia at gcc dot gnu.org
2021-11-28  2:16 ` pinskia at gcc dot gnu.org
2021-11-28  2:52 ` pinskia at gcc dot gnu.org
2021-11-29  0:43 ` cvs-commit at gcc dot gnu.org
2021-11-29  0:44 ` pinskia at gcc dot gnu.org
2022-11-28 22:59 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).