Gilles Chanteperdrix a écrit :
On Tue, May 6, 2008 at 3:44 PM, Stéphane ANCELOT <[EMAIL PROTECTED]> wrote:
  
Hi,
 rt_pipe_delete in user space context was working fine in my app in xeno
 2.1.2 using the same call in xeno 2.4.2 crashes the application.
 Any idea ?
    

Please only report a bug if it happens with the latest stable release.

  
I was a little bit succinct about problem description, here is a complete description regarding v2.4.2 :

using the following regression test program :

#include <native/pipe.h>

RT_PIPE pipe_defaut;
int main()
{
int ret;
  mlockall(MCL_CURRENT | MCL_FUTURE);
 
if ((ret=rt_pipe_create(&pipe_defaut,"fifo_defaut",5,100)) !=0)
        {
        printf("unable to create pipe\n[%s]\n",strerror(-ret));
        exit(1);
         }
rt_pipe_delete(&pipe_defaut);

}


and the resulting fault at rt_pipe_delete :

BUG: Unhandled exception over domain Xenomai at 0xc013dede - switching to ROOT
Pid: 2440, comm: a.out Tainted: GF     D 2.6.24.3-ipipe #1
 [<c010e923>] __ipipe_handle_exception+0x1b3/0x1c0
 [<c013dede>] __ipipe_restore_root+0x1e/0x30
 [<c0113c03>] try_to_wake_up+0xb3/0xc0
 [<c036af0b>] error_code+0x6f/0x7c
 [<c0120000>] do_timer+0x30/0xf0
 [<c013dede>] __ipipe_restore_root+0x1e/0x30
 [<c01400f4>] xnheap_destroy+0x54/0xe0
 [<c0155cc0>] __pipe_flush_pool+0x0/0x20
 [<c015542b>] rt_pipe_delete+0x10b/0x140
 [<c015250e>] __rt_pipe_delete+0x4e/0x70
 [<c014a769>] hisyscall_event+0x179/0x280
 [<c01495e7>] schedule_event+0x287/0x360
 [<c014a5f0>] hisyscall_event+0x0/0x280
 [<c013e63f>] __ipipe_dispatch_event+0xbf/0x1d0
 [<c010e6c0>] __ipipe_syscall_root+0x40/0xf0
 [<c0102ad9>] sysenter_past_esp+0x46/0x72
 =======================
------------[ cut here ]------------
kernel BUG at kernel/ipipe/core.c:321!
invalid opcode: 0000 [#3] PREEMPT
Modules linked in: i915 ibspci(F) rtcan_sja1000(F) usb_storage e100 mii

Pid: 2440, comm: a.out Tainted: GF     D (2.6.24.3-ipipe #1)
EIP: 0060:[<c013dede>] EFLAGS: 00010206 CPU: 0
EIP is at __ipipe_restore_root+0x1e/0x30
EAX: 00000000 EBX: cded8000 ECX: cdc006c0 EDX: c11bdb00
ESI: cdd2904c EDI: 00000000 EBP: cdd29028 ESP: cb4b3f04
 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
Process a.out (pid: 2440, ti=cb4b2000 task=cdc19030 task.ti=cb4b2000)<0>
I-pipe domain Linux
Stack: c01400f4 00000000 00000000 c0155cc0 00000000 cdd29010 cdd29028 00000000
       c015542b fffffffd cdd29010 cdc19030 c015250e 0000007d cb4b3fb8 00000000
       c014a769 0029014e c01495e7 00000004 00000000 00000001 000002a8 00000000
Call Trace:
 [<c01400f4>] xnheap_destroy+0x54/0xe0
 [<c0155cc0>] __pipe_flush_pool+0x0/0x20
 [<c015542b>] rt_pipe_delete+0x10b/0x140
 [<c015250e>] __rt_pipe_delete+0x4e/0x70
 [<c014a769>] hisyscall_event+0x179/0x280
 [<c01495e7>] schedule_event+0x287/0x360
 [<c014a5f0>] hisyscall_event+0x0/0x280
 [<c013e63f>] __ipipe_dispatch_event+0xbf/0x1d0
 [<c010e6c0>] __ipipe_syscall_root+0x40/0xf0
 [<c0102ad9>] sysenter_past_esp+0x46/0x72
 =======================
Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 81 3d a0 84 41 c0 00 47 47 c0 75 12 85 c0 74 09 0f ba 2d 40 71 41 c0 00 c3 e9 a2 ff ff ff <0f> 0b eb fe 8d b4 26 00 00 00 00 8d bc 27 00 00 00 00 89 c1 8b
EIP: [<c013dede>] __ipipe_restore_root+0x1e/0x30 SS:ESP 0068:cb4b3f04
---[ end trace 3cbecf3ccba7b6fa ]---
sh-3.2$                                         
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to