tst-fork3

Chris Lingard <[email protected]>
Newsgroups gmane.comp.lib.phil
Message-ID <[email protected]>
Building on

i686-pc-linux-gnu
linux-2.6.0-test3

Tools used:-

FSF gcc-3.3.1 release
HJL binutils-2.14.90.0.5
glibc cvs 10 August
nptl-0.56

tst-fork3 stops the test run, it is waiting for something, though it can be 
killed easily.

I ran it using gdb to see what was happening

      exit (1);
    }

  /* This call should never return.  */
  pthread_join (th1, NULL);

  return 1;

The program will stop at that last "pthread_join"; but is is not a real 
program, there is no stack; and it shows on the process listing as "defunct"
It is impossible to kill this process

To try and get details I changed the entry to:

   if (pthread_create (&th1, NULL, tf1, NULL) != 0)
    {
      puts ("parent: pthread_create failed");
      exit (1);
    }
    else printf ("I am %ld, my parent was %ld\n", getpid(), getppid());

There is no output from that printf that is added; and the test now works.

I am going to keep the source of glibc available, this has been built with -g

No oopses here, the system runs fine.

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.