Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #862

Re: pthread_join crash

From Arun Chandrasekaran <visionofarun@gmail.com>
Newsgroups comp.programming.threads
Subject Re: pthread_join crash
Date 2012-05-15 01:51 -0700
Organization http://groups.google.com
Message-ID <12957154.1299.1337071862228.JavaMail.geo-discussion-forums@pbcge2> (permalink)
References <9a956a1e-3d3e-4a98-b24b-beae12f40a03@n9g2000pbi.googlegroups.com> <81db5b42-ec9a-4274-a4da-faf8b54f8161@jx17g2000pbb.googlegroups.com> <1074960.584.1337066912671.JavaMail.geo-discussion-forums@ynjm4>

Show all headers | View raw


> "VAL of i = 0
> ============================
> Why it is printing as VAL of i = 0. Shouldn't it be 1 ? "
> Is it because of undefined behavior caused by the array out bound access as well ?

         i = 0; 
         while ( i++ <2) { 
              printf("\n VAL of i = %d\n"); 

Check the arguments for printf.

Back to comp.programming.threads | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

pthread_join  crash somenath <somenathpal@gmail.com> - 2012-05-14 20:52 -0700
  Re: pthread_join crash Philip Guenther <guenther@gmail.com> - 2012-05-14 22:56 -0700
    Re: pthread_join crash somenathpal@gmail.com - 2012-05-15 00:28 -0700
      Re: pthread_join crash Arun Chandrasekaran <visionofarun@gmail.com> - 2012-05-15 01:51 -0700
  Re: pthread_join  crash Richard Kettlewell <rjk@greenend.org.uk> - 2012-05-15 11:16 +0100
    Re: pthread_join  crash somenathpal@gmail.com - 2012-05-15 04:03 -0700

csiph-web