public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/1973] New: getenv returns pointer to unallocated space.
@ 2005-12-03 12:59 marvin dot nospam at gmail dot com
  2005-12-03 13:13 ` [Bug libc/1973] " marvin dot nospam at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: marvin dot nospam at gmail dot com @ 2005-12-03 12:59 UTC (permalink / raw)
  To: glibc-bugs

The following code results in a segmentation faul on an AMD64.
---------------------------------
char	*home_dir;

home_dir = (char *)getenv("HOME");
if (home_dir != NULL)
{
	printf ("$HOME = %s\n", home_dir);
}
---------------------------------

On my system it works fine but on the system of an user of my program
(keytouch), running gentoo, it crashes.

-- 
           Summary: getenv returns pointer to unallocated space.
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P3
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: marvin dot nospam at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=1973

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-04-03 20:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-03 12:59 [Bug libc/1973] New: getenv returns pointer to unallocated space marvin dot nospam at gmail dot com
2005-12-03 13:13 ` [Bug libc/1973] " marvin dot nospam at gmail dot com
2005-12-03 16:18 ` drepper at redhat dot com
2006-01-21 17:45 ` marvin dot nospam at gmail dot com
2006-01-21 18:04 ` drepper at redhat dot com
2006-04-03 18:51 ` lepinat at free dot fr
2006-04-03 20:22 ` jakub at redhat dot com

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).