Message-ID: Date: Tue, 17 Jan 2006 15:11:12 +0100 From: Jeroen Van den Keybus Subject: [Xenomai-help] Scheduling while atomic In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13160_918347.1137507072744" References: <17355.55389.544946.912659@domain.hid> List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org ------=_Part_13160_918347.1137507072744 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Gilles, Jan, The offending program is quite complex (several .c files and a considerable .h file tree) and involves 2 computers. However, I think I can narrow down the problem to concurrent access (from 2 Xenomai threads in 2nd domain) to the same Linux file descriptor for a TCP/IP connection. In order to rule this out, I have put RT_MUTEXes around the send() and recv() calls.However, I still received 'scheduling while atomic'. Further investigation, however, has shown that the mutexes seem to fail: rt_mutex_enquire() returns 0 or even -1 after acquisition of the lock. With this program, I didn't (yet) receive the 'scheduling...' error, but by increasing the task repetition rate, it should be a matter of (a long) time (both tasks arriving at a blocking write). I have compiled a program that represents the structure of the original program. Could you have a look and see if I'm not making a mistake here ? For proper following up, I've also attached the dmesg log asked for earlier by Jan. /* TEST_MUTEX.C */ #include #include #include #include #include #include #include #include #include int fd, err; RT_MUTEX m; RT_SEM s; #define CHECK(arg) check(arg, __LINE__) int check(int r, int n) { if (r !=3D 0) fprintf(stderr, "L%d: %s.\n", n, strerror(-r)); return(r); } void output(char c) { static int cnt =3D 0; int n; char buf[2]; RT_MUTEX_INFO mutexinfo; buf[0] =3D c; if (cnt =3D=3D 80) { buf[1] =3D '\n'; n =3D 2; cnt =3D 0; } else { n =3D 1; cnt++; } CHECK(rt_mutex_inquire(&m, &mutexinfo)); if (mutexinfo.lockcnt <=3D 0) { RT_TASK_INFO taskinfo; CHECK(rt_task_inquire(NULL, &taskinfo)); fprintf(stderr, "ALERT: No lock! (lockcnt=3D%d) Offending task: %s\= n", mutexinfo.lockcnt, taskinfo.name ); } if (write(fd, buf, n) !=3D n) { fprintf(stderr, "File write error.\n"); CHECK(rt_sem_v(&s)); } } void task0(void *arg) { while (1) { CHECK(rt_task_sleep((float)rand()*1.0e7/(float)RAND_MAX)); CHECK(rt_mutex_lock(&m, TM_INFINITE)); output('0'); CHECK(rt_mutex_unlock(&m)); } } void task1(void *arg) { while (1) { CHECK(rt_task_sleep((float)rand()*1.0e7/(float)RAND_MAX)); CHECK(rt_mutex_lock(&m, TM_INFINITE)); output('1'); CHECK(rt_mutex_unlock(&m)); } } void sighandler(int arg) { CHECK(rt_sem_v(&s)); } int main(int argc, char *argv[]) { RT_TASK t, t0, t1; if ((fd =3D open("dump.txt", O_CREAT | O_RDWR)) < 0) fprintf(stderr, "File open error.\n"); else { CHECK(rt_timer_start(TM_ONESHOT)); CHECK(rt_mutex_create(&m, "mutex")); CHECK(rt_sem_create(&s, "sem", 0, S_PRIO)); signal(SIGINT, sighandler); CHECK(rt_task_create(&t0, "task0", 0, 30, T_FPU)); CHECK(rt_task_start(&t0, task0, NULL)); CHECK(rt_task_create(&t1, "task1", 0, 29, T_FPU)); CHECK(rt_task_start(&t1, task1, NULL)); CHECK(rt_task_shadow(&t, "main", 1, T_FPU)); CHECK(rt_sem_p(&s, TM_INFINITE)); signal(SIGINT, SIG_IGN); CHECK(rt_task_delete(&t1)); CHECK(rt_task_delete(&t0)); CHECK(rt_sem_delete(&s)); CHECK(rt_mutex_delete(&m)); rt_timer_stop(); close(fd); } return 0; } Compiled with GCC 4.0.2: gcc mtest.c -o mtest $(xeno-config --xeno-cflags) $(xeno-config ---xeno-ldflags) Run on kernel 2.6.15, Adeos 1.1-03, Xenomai SVN rev. 462 dmesg output (usually not that long - the truncated first line is actually there - it is not the top of the dmesg log): pe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 scheduling while atomic: ext_upload/0x00000002/12490 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] ipipe_trace_end+0x35/0x37 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 note: ext_upload[12490] exited with preempt_count 2 scheduling while atomic: ext_upload/0x00000002/12661 [] schedule+0x4b4/0x790 [] __wake_up_sync+0x67/0xb8 [] xnshadow_harden+0xc6/0xdd [] losyscall_event+0x8c/0x1c0 [] __ipipe_dispatch_event+0x90/0x173 [] __ipipe_syscall_root+0x36/0x110 [] system_call+0x20/0x41 note: ext_upload[12661] exited with preempt_count 2 ------=_Part_13160_918347.1137507072744 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Gilles, Jan,
 
 
The offending program is quite complex (several .c files and a co= nsiderable .h file tree) and involves 2 computers. However, I think I = can narrow down the problem to concurrent access (from 2 Xenomai threads in= 2nd domain) to the same Linux file descriptor for a TCP/IP connection.=20
 
In order to rule this out, I have put RT_MUTEXes around the send(= ) and recv() calls.However, I still received 'scheduling while atomic'. Fur= ther investigation, however, has shown that the mutexes seem to fail: rt_mu= tex_enquire() returns 0 or even -1 after acquisition of the lock. With this= program, I didn't (yet) receive the 'scheduling...' error, but by increasi= ng the task repetition rate, it should be a matter of (a long) time (both t= asks arriving at a blocking write).=20
 
I have compiled a program that represents the structure of the origina= l program. Could you have a look and see if I'm not making a mistake here ?=
 
For proper following up, I've also attached the dmesg log asked for ea= rlier by Jan.
 

/* TEST_MUTEX.C */

#include <stdlib.h>
#include <stdio.h>
#include <un= istd.h>
#include <fcntl.h>
#include <signal.h>
#inc= lude <math.h>

#include <native/task.h>
#include <native/mutex.h>
#in= clude <native/sem.h>

int fd, err;
RT_MUTEX m;
RT_SEM s;

#define CHECK(arg) check(arg, __LINE__)

int check(int r, int n)
{
    if (r !=3D 0)
&nbs= p;       fprintf(stderr, "L%d: %s.\n&quo= t;, n, strerror(-r));
    return(r);
}

void output(char c) {
    static int cnt =3D 0;
&nb= sp;   int n;
    char buf[2];
  &n= bsp; RT_MUTEX_INFO mutexinfo;
   
    = buf[0] =3D c;
   
    if (cnt =3D=3D 8= 0) {
        buf[1] =3D '\n';
&nbs= p;       n =3D 2;=20
        cnt =3D 0;
  &n= bsp; }
    else {
      =   n =3D 1;
        cnt++;
&nb= sp;   }
   
    CHECK(rt_mut= ex_inquire(&m, &mutexinfo));
    if (mutexinfo.lo= ckcnt <=3D 0) {
        RT_TASK_IN= FO taskinfo;=20
        CHECK(rt_task_inquire(NULL, = &taskinfo));
        fprintf(stde= rr, "ALERT: No lock! (lockcnt=3D%d) Offending task: %s\n",
&nb= sp;            =    mutexinfo.lockcnt, taskinfo.name );
    }
   
&nbs= p;   if (write(fd, buf, n) !=3D n) {
    &= nbsp;   fprintf(stderr, "File write error.\n");
&nbs= p;       CHECK(rt_sem_v(&s));
 &n= bsp;  }
}

void task0(void *arg)
{
    while (1) {
 &n= bsp;      CHECK(rt_task_sleep((float)rand()*1.0e7/= (float)RAND_MAX));
        CHECK(rt_m= utex_lock(&m, TM_INFINITE));
      &nb= sp; output('0');
        CHECK(rt_mut= ex_unlock(&m));=20
    }
}

void task1(void *arg)
{
    while (1) {
 &n= bsp;      CHECK(rt_task_sleep((float)rand()*1.0e7/= (float)RAND_MAX));
        CHECK(rt_m= utex_lock(&m, TM_INFINITE));
      &nb= sp; output('1');
        CHECK(rt_mut= ex_unlock(&m));=20
    }
}

void sighandler(int arg)
{
    CHECK(rt_sem_v(&= s));
}

int main(int argc, char *argv[])
{
    RT_TASK t, t= 0, t1;
   
    if ((fd =3D open("= dump.txt", O_CREAT | O_RDWR)) < 0)
     = ;   fprintf(stderr, "File open error.\n");
 &nb= sp;  else {
        CHECK(rt_timer_start(TM_ONESHOT)= );
       
   &nbs= p;    CHECK(rt_mutex_create(&m, "mutex"));
=         CHECK(rt_sem_create(&s, &quo= t;sem", 0, S_PRIO));

        signal(SIGINT, sighandler);       
    &n= bsp;   CHECK(rt_task_create(&t0, "task0", 0, 30, T_= FPU));
        CHECK(rt_task_start(&a= mp;t0, task0, NULL));
        CHECK(r= t_task_create(&t1, "task1", 0, 29, T_FPU));=20
        CHECK(rt_task_start(&t1,= task1, NULL));
        CHECK(rt_task= _shadow(&t, "main", 1, T_FPU));

        CHECK(rt_sem_p(&s, TM_INF= INITE));
        signal(SIGINT, SIG_I= GN);
       
   &n= bsp;    CHECK(rt_task_delete(&t1));
   = ;     CHECK(rt_task_delete(&t0));
  &n= bsp;    
       = CHECK(rt_sem_delete(&s));=20
        CHECK(rt_mutex_delete(&m= ));
       
   &nb= sp;    rt_timer_stop();
     &nb= sp; 
        close(fd);
&nbs= p;   }
    return 0;
}

Compiled with GCC 4.0.2:

gcc mtest.c -o mtest $(xeno-config --xeno-cflags) $(xeno-config ---xeno-= ldflags)

 

Run on kernel 2.6.15, Adeos 1.1-03, Xenomai SVN rev. 462

 

dmesg output (usually not that long - the truncated first line is actual= ly there - it is not the top of the dmesg log):

 
pe_dispatch_event+0x90/0x173
 [<c011697a>] __ipipe_sysca= ll_root+0x36/0x110
 [<c0103434>] system_call+0x20/0x41
sch= eduling while atomic: ext_upload/0x00000002/12490
 [<c03b4c64>= ;] schedule+0x4b4/0x790=20
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c015545= 5>] xnshadow_harden+0xc6/0xdd
 [<c0156c5b>] losyscall_even= t+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 = ;[<c0147473>] __ipipe_dispatch_event+0x90/0x173=20
 [<c011697a>] __ipipe_syscall_root+0x36/0x110
 [<= c0103434>] system_call+0x20/0x41
scheduling while atomic: ext_upload/= 0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/0x790
 = [<c011a0ca>] __wake_up_sync+0x67/0xb8=20
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [<c0156c= 5b>] losyscall_event+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_= end+0x35/0x37
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173=
 [<c011697a>] __ipipe_syscall_root+0x36/0x110=20
 [<c0103434>] system_call+0x20/0x41
scheduling while atom= ic: ext_upload/0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/= 0x790
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c0= 155455>] xnshadow_harden+0xc6/0xdd=20
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<c0148= ade>] ipipe_trace_end+0x35/0x37
 [<c0147473>] __ipipe_disp= atch_event+0x90/0x173
 [<c011697a>] __ipipe_syscall_root+0x36= /0x110
 [<c0103434>] system_call+0x20/0x41=20
scheduling while atomic: ext_upload/0x00000002/12490
 [<c03b= 4c64>] schedule+0x4b4/0x790
 [<c011a0ca>] __wake_up_sync+0= x67/0xb8
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [&l= t;c0156c5b>] losyscall_event+0x8c/0x1c0=20
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 [<c01474= 73>] __ipipe_dispatch_event+0x90/0x173
 [<c011697a>] __ipi= pe_syscall_root+0x36/0x110
 [<c0103434>] system_call+0x20/0x4= 1
scheduling while atomic: ext_upload/0x00000002/12490=20
 [<c03b4c64>] schedule+0x4b4/0x790
 [<c011a0ca>= ;] __wake_up_sync+0x67/0xb8
 [<c0155455>] xnshadow_harden+0xc= 6/0xdd
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<= ;c0148ade>] ipipe_trace_end+0x35/0x37=20
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173
 [&l= t;c011697a>] __ipipe_syscall_root+0x36/0x110
 [<c0103434>]= system_call+0x20/0x41
scheduling while atomic: ext_upload/0x00000002/12= 490
 [<c03b4c64>] schedule+0x4b4/0x790=20
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c015545= 5>] xnshadow_harden+0xc6/0xdd
 [<c0156c5b>] losyscall_even= t+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 = ;[<c0147473>] __ipipe_dispatch_event+0x90/0x173=20
 [<c011697a>] __ipipe_syscall_root+0x36/0x110
 [<= c0103434>] system_call+0x20/0x41
scheduling while atomic: ext_upload/= 0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/0x790
 = [<c011a0ca>] __wake_up_sync+0x67/0xb8=20
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [<c0156c= 5b>] losyscall_event+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_= end+0x35/0x37
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173=
 [<c011697a>] __ipipe_syscall_root+0x36/0x110=20
 [<c0103434>] system_call+0x20/0x41
scheduling while atom= ic: ext_upload/0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/= 0x790
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c0= 155455>] xnshadow_harden+0xc6/0xdd=20
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<c0148= ade>] ipipe_trace_end+0x35/0x37
 [<c0147473>] __ipipe_disp= atch_event+0x90/0x173
 [<c011697a>] __ipipe_syscall_root+0x36= /0x110
 [<c0103434>] system_call+0x20/0x41=20
scheduling while atomic: ext_upload/0x00000002/12490
 [<c03b= 4c64>] schedule+0x4b4/0x790
 [<c011a0ca>] __wake_up_sync+0= x67/0xb8
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [&l= t;c0156c5b>] losyscall_event+0x8c/0x1c0=20
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 [<c01474= 73>] __ipipe_dispatch_event+0x90/0x173
 [<c011697a>] __ipi= pe_syscall_root+0x36/0x110
 [<c0103434>] system_call+0x20/0x4= 1
scheduling while atomic: ext_upload/0x00000002/12490=20
 [<c03b4c64>] schedule+0x4b4/0x790
 [<c011a0ca>= ;] __wake_up_sync+0x67/0xb8
 [<c0155455>] xnshadow_harden+0xc= 6/0xdd
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<= ;c0148ade>] ipipe_trace_end+0x35/0x37=20
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173
 [&l= t;c011697a>] __ipipe_syscall_root+0x36/0x110
 [<c0103434>]= system_call+0x20/0x41
scheduling while atomic: ext_upload/0x00000002/12= 490
 [<c03b4c64>] schedule+0x4b4/0x790=20
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c015545= 5>] xnshadow_harden+0xc6/0xdd
 [<c0156c5b>] losyscall_even= t+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 = ;[<c0147473>] __ipipe_dispatch_event+0x90/0x173=20
 [<c011697a>] __ipipe_syscall_root+0x36/0x110
 [<= c0103434>] system_call+0x20/0x41
scheduling while atomic: ext_upload/= 0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/0x790
 = [<c011a0ca>] __wake_up_sync+0x67/0xb8=20
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [<c0156c= 5b>] losyscall_event+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_= end+0x35/0x37
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173=
 [<c011697a>] __ipipe_syscall_root+0x36/0x110=20
 [<c0103434>] system_call+0x20/0x41
scheduling while atom= ic: ext_upload/0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/= 0x790
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c0= 155455>] xnshadow_harden+0xc6/0xdd=20
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<c0148= ade>] ipipe_trace_end+0x35/0x37
 [<c0147473>] __ipipe_disp= atch_event+0x90/0x173
 [<c011697a>] __ipipe_syscall_root+0x36= /0x110
 [<c0103434>] system_call+0x20/0x41=20
scheduling while atomic: ext_upload/0x00000002/12490
 [<c03b= 4c64>] schedule+0x4b4/0x790
 [<c011a0ca>] __wake_up_sync+0= x67/0xb8
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [&l= t;c0156c5b>] losyscall_event+0x8c/0x1c0=20
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 [<c01474= 73>] __ipipe_dispatch_event+0x90/0x173
 [<c011697a>] __ipi= pe_syscall_root+0x36/0x110
 [<c0103434>] system_call+0x20/0x4= 1
scheduling while atomic: ext_upload/0x00000002/12490=20
 [<c03b4c64>] schedule+0x4b4/0x790
 [<c011a0ca>= ;] __wake_up_sync+0x67/0xb8
 [<c0155455>] xnshadow_harden+0xc= 6/0xdd
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<= ;c0148ade>] ipipe_trace_end+0x35/0x37=20
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173
 [&l= t;c011697a>] __ipipe_syscall_root+0x36/0x110
 [<c0103434>]= system_call+0x20/0x41
scheduling while atomic: ext_upload/0x00000002/12= 490
 [<c03b4c64>] schedule+0x4b4/0x790=20
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c015545= 5>] xnshadow_harden+0xc6/0xdd
 [<c0156c5b>] losyscall_even= t+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 = ;[<c0147473>] __ipipe_dispatch_event+0x90/0x173=20
 [<c011697a>] __ipipe_syscall_root+0x36/0x110
 [<= c0103434>] system_call+0x20/0x41
scheduling while atomic: ext_upload/= 0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/0x790
 = [<c011a0ca>] __wake_up_sync+0x67/0xb8=20
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [<c0156c= 5b>] losyscall_event+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_= end+0x35/0x37
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173=
 [<c011697a>] __ipipe_syscall_root+0x36/0x110=20
 [<c0103434>] system_call+0x20/0x41
scheduling while atom= ic: ext_upload/0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/= 0x790
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c0= 155455>] xnshadow_harden+0xc6/0xdd=20
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<c0148= ade>] ipipe_trace_end+0x35/0x37
 [<c0147473>] __ipipe_disp= atch_event+0x90/0x173
 [<c011697a>] __ipipe_syscall_root+0x36= /0x110
 [<c0103434>] system_call+0x20/0x41=20
scheduling while atomic: ext_upload/0x00000002/12490
 [<c03b= 4c64>] schedule+0x4b4/0x790
 [<c011a0ca>] __wake_up_sync+0= x67/0xb8
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [&l= t;c0156c5b>] losyscall_event+0x8c/0x1c0=20
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 [<c01474= 73>] __ipipe_dispatch_event+0x90/0x173
 [<c011697a>] __ipi= pe_syscall_root+0x36/0x110
 [<c0103434>] system_call+0x20/0x4= 1
scheduling while atomic: ext_upload/0x00000002/12490=20
 [<c03b4c64>] schedule+0x4b4/0x790
 [<c011a0ca>= ;] __wake_up_sync+0x67/0xb8
 [<c0155455>] xnshadow_harden+0xc= 6/0xdd
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<= ;c0148ade>] ipipe_trace_end+0x35/0x37=20
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173
 [&l= t;c011697a>] __ipipe_syscall_root+0x36/0x110
 [<c0103434>]= system_call+0x20/0x41
scheduling while atomic: ext_upload/0x00000002/12= 490
 [<c03b4c64>] schedule+0x4b4/0x790=20
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c015545= 5>] xnshadow_harden+0xc6/0xdd
 [<c0156c5b>] losyscall_even= t+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 = ;[<c0147473>] __ipipe_dispatch_event+0x90/0x173=20
 [<c011697a>] __ipipe_syscall_root+0x36/0x110
 [<= c0103434>] system_call+0x20/0x41
scheduling while atomic: ext_upload/= 0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/0x790
 = [<c011a0ca>] __wake_up_sync+0x67/0xb8=20
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [<c0156c= 5b>] losyscall_event+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_= end+0x35/0x37
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173=
 [<c011697a>] __ipipe_syscall_root+0x36/0x110=20
 [<c0103434>] system_call+0x20/0x41
scheduling while atom= ic: ext_upload/0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/= 0x790
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c0= 155455>] xnshadow_harden+0xc6/0xdd=20
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<c0148= ade>] ipipe_trace_end+0x35/0x37
 [<c0147473>] __ipipe_disp= atch_event+0x90/0x173
 [<c011697a>] __ipipe_syscall_root+0x36= /0x110
 [<c0103434>] system_call+0x20/0x41=20
scheduling while atomic: ext_upload/0x00000002/12490
 [<c03b= 4c64>] schedule+0x4b4/0x790
 [<c011a0ca>] __wake_up_sync+0= x67/0xb8
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [&l= t;c0156c5b>] losyscall_event+0x8c/0x1c0=20
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 [<c01474= 73>] __ipipe_dispatch_event+0x90/0x173
 [<c011697a>] __ipi= pe_syscall_root+0x36/0x110
 [<c0103434>] system_call+0x20/0x4= 1
scheduling while atomic: ext_upload/0x00000002/12490=20
 [<c03b4c64>] schedule+0x4b4/0x790
 [<c011a0ca>= ;] __wake_up_sync+0x67/0xb8
 [<c0155455>] xnshadow_harden+0xc= 6/0xdd
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<= ;c0148ade>] ipipe_trace_end+0x35/0x37=20
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173
 [&l= t;c011697a>] __ipipe_syscall_root+0x36/0x110
 [<c0103434>]= system_call+0x20/0x41
scheduling while atomic: ext_upload/0x00000002/12= 490
 [<c03b4c64>] schedule+0x4b4/0x790=20
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c015545= 5>] xnshadow_harden+0xc6/0xdd
 [<c0156c5b>] losyscall_even= t+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 = ;[<c0147473>] __ipipe_dispatch_event+0x90/0x173=20
 [<c011697a>] __ipipe_syscall_root+0x36/0x110
 [<= c0103434>] system_call+0x20/0x41
scheduling while atomic: ext_upload/= 0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/0x790
 = [<c011a0ca>] __wake_up_sync+0x67/0xb8=20
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [<c0156c= 5b>] losyscall_event+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_= end+0x35/0x37
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173=
 [<c011697a>] __ipipe_syscall_root+0x36/0x110=20
 [<c0103434>] system_call+0x20/0x41
scheduling while atom= ic: ext_upload/0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/= 0x790
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c0= 155455>] xnshadow_harden+0xc6/0xdd=20
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<c0148= ade>] ipipe_trace_end+0x35/0x37
 [<c0147473>] __ipipe_disp= atch_event+0x90/0x173
 [<c011697a>] __ipipe_syscall_root+0x36= /0x110
 [<c0103434>] system_call+0x20/0x41=20
scheduling while atomic: ext_upload/0x00000002/12490
 [<c03b= 4c64>] schedule+0x4b4/0x790
 [<c011a0ca>] __wake_up_sync+0= x67/0xb8
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [&l= t;c0156c5b>] losyscall_event+0x8c/0x1c0=20
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 [<c01474= 73>] __ipipe_dispatch_event+0x90/0x173
 [<c011697a>] __ipi= pe_syscall_root+0x36/0x110
 [<c0103434>] system_call+0x20/0x4= 1
scheduling while atomic: ext_upload/0x00000002/12490=20
 [<c03b4c64>] schedule+0x4b4/0x790
 [<c011a0ca>= ;] __wake_up_sync+0x67/0xb8
 [<c0155455>] xnshadow_harden+0xc= 6/0xdd
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<= ;c0148ade>] ipipe_trace_end+0x35/0x37=20
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173
 [&l= t;c011697a>] __ipipe_syscall_root+0x36/0x110
 [<c0103434>]= system_call+0x20/0x41
scheduling while atomic: ext_upload/0x00000002/12= 490
 [<c03b4c64>] schedule+0x4b4/0x790=20
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c015545= 5>] xnshadow_harden+0xc6/0xdd
 [<c0156c5b>] losyscall_even= t+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 = ;[<c0147473>] __ipipe_dispatch_event+0x90/0x173=20
 [<c011697a>] __ipipe_syscall_root+0x36/0x110
 [<= c0103434>] system_call+0x20/0x41
scheduling while atomic: ext_upload/= 0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/0x790
 = [<c011a0ca>] __wake_up_sync+0x67/0xb8=20
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [<c0156c= 5b>] losyscall_event+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_= end+0x35/0x37
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173=
 [<c011697a>] __ipipe_syscall_root+0x36/0x110=20
 [<c0103434>] system_call+0x20/0x41
scheduling while atom= ic: ext_upload/0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/= 0x790
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c0= 155455>] xnshadow_harden+0xc6/0xdd=20
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<c0148= ade>] ipipe_trace_end+0x35/0x37
 [<c0147473>] __ipipe_disp= atch_event+0x90/0x173
 [<c011697a>] __ipipe_syscall_root+0x36= /0x110
 [<c0103434>] system_call+0x20/0x41=20
scheduling while atomic: ext_upload/0x00000002/12490
 [<c03b= 4c64>] schedule+0x4b4/0x790
 [<c011a0ca>] __wake_up_sync+0= x67/0xb8
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [&l= t;c0156c5b>] losyscall_event+0x8c/0x1c0=20
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 [<c01474= 73>] __ipipe_dispatch_event+0x90/0x173
 [<c011697a>] __ipi= pe_syscall_root+0x36/0x110
 [<c0103434>] system_call+0x20/0x4= 1
scheduling while atomic: ext_upload/0x00000002/12490=20
 [<c03b4c64>] schedule+0x4b4/0x790
 [<c011a0ca>= ;] __wake_up_sync+0x67/0xb8
 [<c0155455>] xnshadow_harden+0xc= 6/0xdd
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<= ;c0148ade>] ipipe_trace_end+0x35/0x37=20
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173
 [&l= t;c011697a>] __ipipe_syscall_root+0x36/0x110
 [<c0103434>]= system_call+0x20/0x41
scheduling while atomic: ext_upload/0x00000002/12= 490
 [<c03b4c64>] schedule+0x4b4/0x790=20
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c015545= 5>] xnshadow_harden+0xc6/0xdd
 [<c0156c5b>] losyscall_even= t+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 = ;[<c0147473>] __ipipe_dispatch_event+0x90/0x173=20
 [<c011697a>] __ipipe_syscall_root+0x36/0x110
 [<= c0103434>] system_call+0x20/0x41
scheduling while atomic: ext_upload/= 0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/0x790
 = [<c011a0ca>] __wake_up_sync+0x67/0xb8=20
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [<c0156c= 5b>] losyscall_event+0x8c/0x1c0
 [<c0148ade>] ipipe_trace_= end+0x35/0x37
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173=
 [<c011697a>] __ipipe_syscall_root+0x36/0x110=20
 [<c0103434>] system_call+0x20/0x41
scheduling while atom= ic: ext_upload/0x00000002/12490
 [<c03b4c64>] schedule+0x4b4/= 0x790
 [<c011a0ca>] __wake_up_sync+0x67/0xb8
 [<c0= 155455>] xnshadow_harden+0xc6/0xdd=20
 [<c0156c5b>] losyscall_event+0x8c/0x1c0
 [<c0148= ade>] ipipe_trace_end+0x35/0x37
 [<c0147473>] __ipipe_disp= atch_event+0x90/0x173
 [<c011697a>] __ipipe_syscall_root+0x36= /0x110
 [<c0103434>] system_call+0x20/0x41=20
scheduling while atomic: ext_upload/0x00000002/12490
 [<c03b= 4c64>] schedule+0x4b4/0x790
 [<c011a0ca>] __wake_up_sync+0= x67/0xb8
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [&l= t;c0156c5b>] losyscall_event+0x8c/0x1c0=20
 [<c0148ade>] ipipe_trace_end+0x35/0x37
 [<c01474= 73>] __ipipe_dispatch_event+0x90/0x173
 [<c011697a>] __ipi= pe_syscall_root+0x36/0x110
 [<c0103434>] system_call+0x20/0x4= 1
note: ext_upload[12490] exited with preempt_count 2=20
scheduling while atomic: ext_upload/0x00000002/12661
 [<c03b= 4c64>] schedule+0x4b4/0x790
 [<c011a0ca>] __wake_up_sync+0= x67/0xb8
 [<c0155455>] xnshadow_harden+0xc6/0xdd
 [&l= t;c0156c5b>] losyscall_event+0x8c/0x1c0=20
 [<c0147473>] __ipipe_dispatch_event+0x90/0x173
 [&l= t;c011697a>] __ipipe_syscall_root+0x36/0x110
 [<c0103434>]= system_call+0x20/0x41
note: ext_upload[12661] exited with preempt_count= 2
 

 

------=_Part_13160_918347.1137507072744--