Message-ID: <002501c9a2e8$132712d0$9b00a8c0@domain.hid> From: "Hans Holm" Date: Thu, 12 Mar 2009 08:56:39 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0022_01C9A2F0.74D86800" Subject: [Xenomai-help] vrtx sc_tcreate gives kernel Oops List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org This is a multi-part message in MIME format. ------=_NextPart_000_0022_01C9A2F0.74D86800 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello gna org, When porting and running a vrtx-task ("tercas" working fine in VRTX) to = the xenomai-linux environment I always got the below kernel Oops = creating/starting the thread. I use Kernel: 2.6.28.7 and xenomai: 2.4.7.=20 If I run other examples like "native/trivial-periodic" this is working = fine. Please, could someone look at this /var/log/messages log and see why = this is not working: Thank you,=20 Hans Mar 12 09:44:59 localhost kernel: BUG: unable to handle kernel NULL = pointer dereference at 00000174 Mar 12 09:44:59 localhost kernel: IP: [] rpi_push+0x12/0x230 Mar 12 09:44:59 localhost kernel: *pde =3D 7e1a7067=20 Mar 12 09:44:59 localhost kernel: Oops: 0000 [#3] PREEMPT SMP=20 Mar 12 09:44:59 localhost kernel: last sysfs file: /sys/block/sdf/size Mar 12 09:44:59 localhost kernel: Modules linked in: vfat fat xeno_posix = xeno_vrtx xeno_native i915 drm autofs4 hidp rfcomm l2cap bluetooth = iptable_filter ip_tables ip6t_REJECT xt_tcpudp ip6table_filter = ip6_tables x_tables dm_multipath ipv6 parport_pc lp parport floppy = snd_hda_intel snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq = snd_seq_device snd_pcm_oss snd_mixer_oss snd_pcm sg snd_timer sr_mod snd = rtc_cmos cdrom rtc_core e1000e serio_raw soundcore pcspkr rtc_lib = snd_page_alloc dm_snapshot dm_zero dm_mirror dm_region_hash dm_log = dm_mod usb_storage ata_piix libata sd_mod scsi_mod ehci_hcd ohci_hcd = uhci_hcd [last unloaded: microcode] Mar 12 09:44:59 localhost kernel:=20 Mar 12 09:44:59 localhost kernel: Pid: 16098, comm: tercas Tainted: G D = (2.6.28.7 #2) HP Compaq dc5800 Microtower Mar 12 09:44:59 localhost kernel: EIP: 0060:[] EFLAGS: = 00010282 CPU: 0 Mar 12 09:44:59 localhost kernel: EIP is at rpi_push+0x12/0x230 Mar 12 09:44:59 localhost kernel: EAX: 00000000 EBX: f084d650 ECX: = c9fddd50 EDX: 00000000 Mar 12 09:44:59 localhost kernel: ESI: 00000000 EDI: 00000000 EBP: = f084d650 ESP: f0a68e70 Mar 12 09:44:59 localhost kernel: DS: 007b ES: 007b FS: 00d8 GS: 0033 = SS: 0068 Mar 12 09:44:59 localhost kernel: Process tercas (pid: 16098, = ti=3Df0a68000 task=3De85c4920 task.ti=3Df0a68000) Mar 12 09:44:59 localhost kernel: I-pipe domain Linux Mar 12 09:44:59 localhost kernel: Stack: Mar 12 09:44:59 localhost kernel: 00000000 00000003 f084d650 00000000 = 00000000 00000000 c046be2c f084d650 Mar 12 09:44:59 localhost kernel: c0862a00 c0466142 c0862a00 00000000 = 00000000 00000000 c0862a00 0000000a Mar 12 09:44:59 localhost kernel: f839e4ea 00000003 f839e270 f084d610 = f83a64bc f084ce14 f83a6e0c f084d650 Mar 12 09:44:59 localhost kernel: Call Trace: Mar 12 09:44:59 localhost kernel: [] xnshadow_start+0x2c/0x70 Mar 12 09:44:59 localhost kernel: [] = xnpod_start_thread+0x202/0x3a0 Mar 12 09:44:59 localhost kernel: [] = sc_tecreate_inner+0x25a/0x370 [xeno_vrtx] Mar 12 09:44:59 localhost kernel: [] = vrtxtask_trampoline+0x0/0x20 [xeno_vrtx] Mar 12 09:44:59 localhost kernel: [] = _spin_unlock_irqrestore+0x1c/0x40 Mar 12 09:44:59 localhost kernel: [] cpupri_set+0x96/0xc0 Mar 12 09:44:59 localhost kernel: [] __sc_tecreate+0xe8/0x150 = [xeno_vrtx] Mar 12 09:44:59 localhost kernel: [] = losyscall_event+0xa9/0x170 Mar 12 09:44:59 localhost kernel: [] = __ipipe_dispatch_event+0xcf/0x1d0 Mar 12 09:44:59 localhost kernel: [] losyscall_event+0x0/0x170 Mar 12 09:44:59 localhost kernel: [] = __ipipe_syscall_root+0x43/0xf0 Mar 12 09:44:59 localhost kernel: [] system_call+0x2b/0x4c Mar 12 09:44:59 localhost kernel: Code: 89 f6 c7 03 ff ff ff ff eb e2 eb = 0d 90 90 90 90 90 90 90 90 90 90 90 90 90 55 89 c5 57 56 53 83 ec 08 89 = 14 24 8b 80 50 02 00 00 <83> b8 74 01 00 00 01 0f 84 cf 00 00 00 be ff = ff ff ff 8b 14 24=20 Mar 12 09:44:59 localhost kernel: EIP: [] rpi_push+0x12/0x230 = SS:ESP 0068:f0a68e70 Mar 12 09:44:59 localhost kernel: ---[ end trace 1acdc8335c56771f ]--- ------=_NextPart_000_0022_01C9A2F0.74D86800 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello gna org,
 
When porting and running a vrtx-task = ("tercas"=20 working fine in VRTX) to the xenomai-linux environment I = always=20 got the below kernel Oops creating/starting the = thread.
I use Kernel: 2.6.28.7 and xenomai: = 2.4.7.=20
If I run other examples like=20 "native/trivial-periodic" this is working fine.
 
Please, could someone look at this=20 /var/log/messages log and see why this is not working:
Thank you,
Hans

Mar 12 09:44:59 localhost kernel: BUG: unable to handle kernel NULL = pointer=20 dereference at 00000174

Mar 12 09:44:59 localhost kernel: IP: [<c046aab2>]=20 rpi_push+0x12/0x230

Mar 12 09:44:59 localhost kernel: *pde =3D 7e1a7067

Mar 12 09:44:59 localhost kernel: Oops: 0000 [#3] PREEMPT SMP

Mar 12 09:44:59 localhost kernel: last sysfs file: = /sys/block/sdf/size

Mar 12 09:44:59 localhost kernel: Modules linked in: vfat fat = xeno_posix=20 xeno_vrtx xeno_native i915 drm autofs4 hidp rfcomm l2cap bluetooth=20 iptable_filter ip_tables ip6t_REJECT xt_tcpudp ip6table_filter = ip6_tables=20 x_tables dm_multipath ipv6 parport_pc lp parport floppy snd_hda_intel=20 snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device = snd_pcm_oss=20 snd_mixer_oss snd_pcm sg snd_timer sr_mod snd rtc_cmos cdrom rtc_core = e1000e=20 serio_raw soundcore pcspkr rtc_lib snd_page_alloc dm_snapshot dm_zero = dm_mirror=20 dm_region_hash dm_log dm_mod usb_storage ata_piix libata sd_mod scsi_mod = ehci_hcd ohci_hcd uhci_hcd [last unloaded: microcode]

Mar 12 09:44:59 localhost kernel:

Mar 12 09:44:59 localhost kernel: Pid: 16098, comm: tercas Tainted: G = D=20 (2.6.28.7 #2) HP Compaq dc5800 Microtower

Mar 12 09:44:59 localhost kernel: EIP: 0060:[<c046aab2>] = EFLAGS:=20 00010282 CPU: 0

Mar 12 09:44:59 localhost kernel: EIP is at rpi_push+0x12/0x230

Mar 12 09:44:59 localhost kernel: EAX: 00000000 EBX: f084d650 ECX: = c9fddd50=20 EDX: 00000000

Mar 12 09:44:59 localhost kernel: ESI: 00000000 EDI: 00000000 EBP: = f084d650=20 ESP: f0a68e70

Mar 12 09:44:59 localhost kernel: DS: 007b ES: 007b FS: 00d8 GS: 0033 = SS:=20 0068

Mar 12 09:44:59 localhost kernel: Process tercas (pid: 16098, = ti=3Df0a68000=20 task=3De85c4920 task.ti=3Df0a68000)

Mar 12 09:44:59 localhost kernel: I-pipe domain Linux

Mar 12 09:44:59 localhost kernel: Stack:

Mar 12 09:44:59 localhost kernel: 00000000 00000003 f084d650 00000000 = 00000000 00000000 c046be2c f084d650

Mar 12 09:44:59 localhost kernel: c0862a00 c0466142 c0862a00 00000000 = 00000000 00000000 c0862a00 0000000a

Mar 12 09:44:59 localhost kernel: f839e4ea 00000003 f839e270 f084d610 = f83a64bc f084ce14 f83a6e0c f084d650

Mar 12 09:44:59 localhost kernel: Call Trace:

Mar 12 09:44:59 localhost kernel: [<c046be2c>]=20 xnshadow_start+0x2c/0x70

Mar 12 09:44:59 localhost kernel: [<c0466142>]=20 xnpod_start_thread+0x202/0x3a0

Mar 12 09:44:59 localhost kernel: [<f839e4ea>]=20 sc_tecreate_inner+0x25a/0x370 [xeno_vrtx]

Mar 12 09:44:59 localhost kernel: [<f839e270>]=20 vrtxtask_trampoline+0x0/0x20 [xeno_vrtx]

Mar 12 09:44:59 localhost kernel: [<c06ec5bc>]=20 _spin_unlock_irqrestore+0x1c/0x40

Mar 12 09:44:59 localhost kernel: [<c045b606>] = cpupri_set+0x96/0xc0

Mar 12 09:44:59 localhost kernel: [<f83a0f78>] = __sc_tecreate+0xe8/0x150=20 [xeno_vrtx]

Mar 12 09:44:59 localhost kernel: [<c046c569>]=20 losyscall_event+0xa9/0x170

Mar 12 09:44:59 localhost kernel: [<c045a57f>]=20 __ipipe_dispatch_event+0xcf/0x1d0

Mar 12 09:44:59 localhost kernel: [<c046c4c0>]=20 losyscall_event+0x0/0x170

Mar 12 09:44:59 localhost kernel: [<c0418073>]=20 __ipipe_syscall_root+0x43/0xf0

Mar 12 09:44:59 localhost kernel: [<c0403e83>]=20 system_call+0x2b/0x4c

Mar 12 09:44:59 localhost kernel: Code: 89 f6 c7 03 ff ff ff ff eb e2 = eb 0d=20 90 90 90 90 90 90 90 90 90 90 90 90 90 55 89 c5 57 56 53 83 ec 08 89 14 = 24 8b 80=20 50 02 00 00 <83> b8 74 01 00 00 01 0f 84 cf 00 00 00 be ff ff ff = ff 8b 14=20 24

Mar 12 09:44:59 localhost kernel: EIP: [<c046aab2>] = rpi_push+0x12/0x230=20 SS:ESP 0068:f0a68e70

Mar 12 09:44:59 localhost kernel: ---[ end trace 1acdc8335c56771f=20 ]---

------=_NextPart_000_0022_01C9A2F0.74D86800--