http://bugzilla.novell.com/show_bug.cgi?id=458230
User poeyuan@tencent.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=458230#c3
poe yuan changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |poeyuan@tencent.com
--- Comment #3 from poe yuan 2009-04-12 20:12:24 MDT ---
Here is a small test program that will deadlock under suse kernel 2.6 but
normal under kernel.org 's 2.6 ..
see ctime-hang.c
#include
#include
#include
#include
#include
#include
#include
volatile char *r;
void handler(int sig)
{
time_t t;
time(&t);
r = ctime(&t);
}
int main()
{
struct itimerval it;
struct sigaction sa;
time_t t;
int counter = 0;
memset(&sa, 0, sizeof(sa));
sa.sa_handler = handler;
sigaction(SIGALRM, &sa, NULL);
it.it_value.tv_sec = 0;
it.it_value.tv_usec = 1000;
it.it_interval.tv_sec = 0;
it.it_interval.tv_usec = 1000;
setitimer(ITIMER_REAL, &it, NULL);
while(1) {
counter++;
time(&t);
r = ctime(&t);
printf("Loop %d\n",counter);
}
return 0;
}
-----------------------------------------------------------------------
Reference Links:
http://ubuntuforums.org/showthread.php?t=675821
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.