Author: mvidner Date: Tue Mar 9 16:53:05 2010 New Revision: 61213 URL: http://svn.opensuse.org/viewcvs/yast?rev=61213&view=rev Log: Fixed an ia64 crash in test_thread_log (a test case for bnc#565918). (Merged r61212 from SP1) Modified: trunk/core/ (props changed) trunk/core/liby2util-r/testsuite/test_thread_log.cc trunk/core/package/yast2-core.changes Modified: trunk/core/liby2util-r/testsuite/test_thread_log.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/liby2util-r/testsuite/test_thread_log.cc?rev=61213&r1=61212&r2=61213&view=diff ============================================================================== --- trunk/core/liby2util-r/testsuite/test_thread_log.cc (original) +++ trunk/core/liby2util-r/testsuite/test_thread_log.cc Tue Mar 9 16:53:05 2010 @@ -16,10 +16,6 @@ void *PrintHello(void *threadid) { - long tid; - - - tid = (long)threadid; printf("Hello World! It's me, thread %p!\n", threadid); for (int i = 0; i < ticks; ++i) y2debug("Thread %p tick %d", threadid, i); @@ -37,9 +33,8 @@ intptr_t t; for(t=1; t<=NUM_THREADS; t++){ printf("In main: creating thread %p\n", (void*)t); - rc = pthread_create(&threads[t], NULL, PrintHello, (void *)t); - - + rc = pthread_create(&threads[t-1], NULL, PrintHello, (void *)t); + if (rc){ printf("ERROR; return code from pthread_create() is %d\n", rc); return 1; @@ -49,4 +44,3 @@ // if the bug exists, the program crashes before it can exit succesfully return 0; } - Modified: trunk/core/package/yast2-core.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/package/yast2-core.changes?rev=61213&r1=61212&r2=61213&view=diff ============================================================================== --- trunk/core/package/yast2-core.changes (original) +++ trunk/core/package/yast2-core.changes Tue Mar 9 16:53:05 2010 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Tue Mar 9 16:21:07 CET 2010 - mvidner@suse.cz + +- Fixed an ia64 crash in test_thread_log (a test case for bnc#565918). + +------------------------------------------------------------------- Mon Feb 1 16:01:46 CET 2010 - mvidner@suse.cz - Fixed a crash in LogTail by adding a mutex to the shared variable -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org