Author: mvidner Date: Tue Mar 9 16:21:48 2010 New Revision: 61212 URL: http://svn.opensuse.org/viewcvs/yast?rev=61212&view=rev Log: Fixed an ia64 crash in test_thread_log (a test case for bnc#565918). It was an off-by one at the end of an array. Also removed dead code and empty lines. Modified: branches/SuSE-Code-11-SP1-Branch/core/VERSION branches/SuSE-Code-11-SP1-Branch/core/liby2util-r/testsuite/test_thread_log.cc branches/SuSE-Code-11-SP1-Branch/core/package/yast2-core.changes Modified: branches/SuSE-Code-11-SP1-Branch/core/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/core/V... ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/core/VERSION (original) +++ branches/SuSE-Code-11-SP1-Branch/core/VERSION Tue Mar 9 16:21:48 2010 @@ -1 +1 @@ -2.17.33 +2.17.34 Modified: branches/SuSE-Code-11-SP1-Branch/core/liby2util-r/testsuite/test_thread_log.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/core/l... ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/core/liby2util-r/testsuite/test_thread_log.cc (original) +++ branches/SuSE-Code-11-SP1-Branch/core/liby2util-r/testsuite/test_thread_log.cc Tue Mar 9 16:21:48 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: branches/SuSE-Code-11-SP1-Branch/core/package/yast2-core.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/core/p... ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/core/package/yast2-core.changes (original) +++ branches/SuSE-Code-11-SP1-Branch/core/package/yast2-core.changes Tue Mar 9 16:21:48 2010 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +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). +- 2.17.34 + +------------------------------------------------------------------- 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