Closed wompydomp closed 11 years ago
What is your distribution? Which version of RTAI are you running? Is it the master branch of this repository? The master branch is work in progress, so it's not really stable. You could try the vulcano branch, which reflects the latest official stable release, or the magma branch which reflects the latest official development branch (I suggest vulcano).
Any word on if it works with magma or vulcano? If no response in a week, I'll just close the issue.
Alec
Segmentation fault ERROR: cannot load /usr/realtime/modules/rtai_lxrt.ko CANNOT CREATE MAILBOX CANNOT FIND MAILBOX Error: Module rtai_hal is in use by: rtai_lxrt
Seems like CONFIG_RTAI_MBX wasn't set or something. Kernel 2.6.38.8 was the kernel release, meaning not related to master, perhaps vulcano branch. If so, it should be reported to rtai@rtai.org since it is not showroom related, rather RTAI testsuite. Vulcano branch is simply a clone of the vulcano branch of the official RTAI cvs repo.
Closing issue as it might be an official RTAI bug. ShabbyX, if this issue has not yet been reported to rtai@rtai.org, please do so as this might actually be a valid bug.
Alec
Hi,
Since I am not quite sure if this is the right place to ask, I hope you're able to help me. I really appreciate that you opened the github-repo (following the discussion on the mailinglist).
I compiled my own kernel ( with a lot of fails, still not sure if everything is the way it's supposed to be) but I ran into the follwing problem when I try to run the latency test from the testsuite. Attached you'll find the dmesg output. Thank you so much for the efford on this project!
Regards, Jo
uname -a Linux rtaipc 2.6.38.8 #2 PREEMPT Wed May 15 00:02:05 CEST 2013 i686 GNU/Linux
cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 13 model name : Intel(R) Pentium(R) M processor 1.86GHz stepping : 8 cpu MHz : 1862.099 cache size : 2048 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx bts est tm2 bogomips : 3724.19 clflush size : 64 cache_alignment : 64 address sizes : 32 bits physical, 32 bits virtual power management:
[ 120.933088] I-pipe: Domain RTAI registered. [ 120.933094] RTAI[hal]: <3.9.1> mounted over IPIPE-NOTHREADS 2.11-02. [ 120.933096] RTAI[hal]: compiled with gcc version 4.7.2 (Debian 4.7.2-4) . [ 120.933101] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs VECTORED), ISOL_CPUS_MASK: 0). [ 120.933104] PIPELINE layers: [ 120.933107] f9b4a380 9ac15d93 RTAI 2147483647 [ 120.933109] c1425280 0 Linux 100 [ 121.020685] RTAI[malloc]: global heap size = 2097152 bytes,.
[ 121.020723] RTAI[hal]: sched_setscheduler(policy = 1, prio = 99) failed, (RTAI_KTHRD_M:0 -- pid = 0)
[ 121.020741] RTAI[hal]: sched_setscheduler(policy = 1, prio = 99) failed, (RTAI_KTHRD_M:0 -- pid = 0)
[ 121.020750] RTAI[sched]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE: , , kstacks pool size = 524288 bytes.
[ 121.020756] RTAI[sched]: hard timer type/freq = 8254-PIT/1193180(Hz); default timing: periodic; linear timed lists.
[ 121.020760] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1862099000 hz.
[ 121.020763] RTAI[sched]: timer setup = 2010 ns, resched latency = 2688 ns.
[ 121.020874] BUG: unable to handle kernel NULL pointer dereference at 000001ff
[ 121.020937] IP: [] steal_from_linux+0xc8/0xda [rtai_lxrt]
[ 121.020991] *pde = 00000000
[ 121.021015] Oops: 0000 [#1] PREEMPT
[ 121.021047] last sysfs file: /sys/devices/pci0000:00/0000:00:1e.0/0000:04:02.0/rf_kill
[ 121.021107] Modules linked in: rtai_lxrt rtai_hal michael_mic arc4 ecb lib80211_crypt_tkip cryptd aes_i586 aes_generic lib80211_crypt_ccmp sco parport_pc ppdev bnep lp rfcomm l2cap parport bluetooth binfmt_misc fuse loop dm_crypt dm_mod snd_intel8x0 snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_page_alloc snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq pcmcia snd_seq_device ipw2200 snd_timer libipw yenta_socket joydev lib80211 pcmcia_rsrc i2c_i801 cfg80211 iTCO_wdt iTCO_vendor_support rfkill rng_core snd pcmcia_core soundcore ac97_bus psmouse evdev pcspkr serio_raw ext4 crc16 jbd2 mbcache btrfs crc32c libcrc32c lzo_compress zlib_deflate vga16fb vgastate uvesafb sg sd_mod sr_mod cdrom crc_t10dif ata_generic radeon ata_piix ahci i2c_algo_bit libahci drm_kms_helper ttm libata uhci_hcd drm tg3 ehci_hcd firewire_ohci scsi_mod firewire_core i2c_core usbcore crc_itu_t libphy [last unloaded: scsi_wait_scan]
[ 121.021901]
[ 121.021915] Pid: 3149, comm: RD:0:1 Not tainted 2.6.38.8 #2 IBM 1846AQG/1846AQG
[ 121.021980] EIP: 0060:[] EFLAGS: 00010006 CPU: 0
[ 121.022024] EIP is at steal_from_linux+0xc8/0xda [rtai_lxrt]
[ 121.022068] EAX: 00000000 EBX: f9b70580 ECX: 00000000 EDX: 0000001a
[ 121.022115] ESI: f36da800 EDI: f36da800 EBP: 00000000 ESP: f4af5fcc
[ 121.022163] DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
[ 121.022204] Process RD:0:1 (pid: 3149, ti=f4af4000 task=f36da800 task.ti=f4af4000)
[ 121.022261] I-pipe domain Linux
[ 121.022285] Stack:
[ 121.022301] f9b70580 00000000 f9b67e19 00001f80 00000000 f9b67d55 00000000 c1002cc6
[ 121.022375] 00000000 00000000 00000000 00009b26 00021c01
[ 121.022425] Call Trace:
[ 121.022449] [] ? kthread_fun+0xc4/0x150 [rtai_lxrt]
[ 121.022496] [] ? kthread_fun+0x0/0x150 [rtai_lxrt]
[ 121.022541] [] ? kernel_thread_helper+0x6/0x10
[ 121.022582] Code: 75 0e 0f 31 89 83 60 05 00 00 89 93 64 05 00 00 f6 46 0d 20 74 24 fa 0f 06 a1 18 86 36 c1 a9 00 00 00 01 8b 86 38 02 00 00 74 05 <0f> ae 08 eb 02 dd 20 8b 46 04 83 48 0c 01 fb 5b 5e c3 a1 04 e3
[ 121.022844] EIP: [] steal_from_linux+0xc8/0xda [rtai_lxrt] SS:ESP 0068:f4af5fcc
[ 121.022913] CR2: 00000000000001ff
[ 121.024009] ---[ end trace 4f0c651860ee8f6f ]---
[ 121.024009] note: RD:0:1[3149] exited with preempt_count 2
[ 121.024009] BUG: Unhandled exception over domain RTAI at 0xf9b67aca - switching to ROOT
[ 121.024009] Pid: 3149, comm: RD:0:1 Not tainted 2.6.38.8 #2
[ 121.024009] Call Trace:
[ 121.024009] [] ? ipipe_handle_exception+0x19c/0x1e7
[ 121.024009] [] ? steal_from_linux+0xc8/0xda [rtai_lxrt]
[ 121.024009] [] ? error_code+0x6a/0x78
[ 121.024009] [] ? steal_from_linux+0xc8/0xda [rtai_lxrt]
[ 121.024009] [] ? kthread_fun+0xc4/0x150 [rtai_lxrt]
[ 121.024009] [] ? kthread_fun+0x0/0x150 [rtai_lxrt]
[ 121.024009] [] ? kernel_thread_helper+0x6/0x10
[ 121.057779] BUG: scheduling while atomic: sudo/3146/0x00000004
[ 121.057781] Modules linked in: rtai_lxrt rtai_hal michael_mic arc4 ecb lib80211_crypt_tkip cryptd aes_i586 aes_generic lib80211_crypt_ccmp sco parport_pc ppdev bnep lp rfcomm l2cap parport bluetooth binfmt_misc fuse loop dm_crypt dm_mod snd_intel8x0 snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_page_alloc snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq pcmcia snd_seq_device ipw2200 snd_timer libipw yenta_socket joydev lib80211 pcmcia_rsrc i2c_i801 cfg80211 iTCO_wdt iTCO_vendor_support rfkill rng_core snd pcmcia_core soundcore ac97_bus psmouse evdev pcspkr serio_raw ext4 crc16 jbd2 mbcache btrfs crc32c libcrc32c lzo_compress zlib_deflate vga16fb vgastate uvesafb sg sd_mod sr_mod cdrom crc_t10dif ata_generic radeon ata_piix ahci i2c_algo_bit libahci drm_kms_helper ttm libata uhci_hcd drm tg3 ehci_hcd firewire_ohci scsi_mod firewire_core i2c_core usbcore crc_itu_t libphy [last unloaded: scsi_wait_scan]
[ 121.057854] Pid: 3149, comm: RD:0:1 Tainted: G D 2.6.38.8 #2
[ 121.057856] Call Trace:
[ 121.057860] [] ? schedule+0x98/0x37d
[ 121.057865] [] ? __cache_free+0x11/0xaa
[ 121.057870] [] ? kmem_cache_free+0x30/0x6e
[ 121.057874] [] ? release_task+0x3c7/0x3d7
[ 121.057878] [] ? do_exit+0x67c/0x68a
[ 121.057882] [] ? oops_end+0x8d/0x91
[ 121.057887] [] ? no_context+0x10c/0x115
[ 121.057891] [] ? bad_area_nosemaphore+0xa/0xc
[ 121.057896] [] ? do_page_fault+0x17f/0x331
[ 121.057900] [] ? show_trace+0xa/0xc
[ 121.057904] [] ? dump_stack+0x50/0x55
[ 121.057909] [] ? ipipe_handle_exception+0x1bb/0x1e7
[ 121.057914] [] ? error_code+0x6a/0x78
[ 121.057921] [] ? steal_from_linux+0xc8/0xda [rtai_lxrt]
[ 121.057927] [] ? kthread_fun+0xc4/0x150 [rtai_lxrt]
[ 121.057934] [] ? kthread_fun+0x0/0x150 [rtai_lxrt]
[ 121.057938] [] ? kernel_thread_helper+0x6/0x10
[ 121.061182] ------------[ cut here ]------------
[ 121.061220] kernel BUG at kernel/exit.c:1056!
[ 121.061255] invalid opcode: 0000 [#2] PREEMPT
[ 121.061292] last sysfs file: /sys/devices/pci0000:00/0000:00:1e.0/0000:04:02.0/rf_kill
[ 121.061351] Modules linked in: rtai_lxrt rtai_hal michael_mic arc4 ecb lib80211_crypt_tkip cryptd aes_i586 aes_generic lib80211_crypt_ccmp sco parport_pc ppdev bnep lp rfcomm l2cap parport bluetooth binfmt_misc fuse loop dm_crypt dm_mod snd_intel8x0 snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_page_alloc snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq pcmcia snd_seq_device ipw2200 snd_timer libipw yenta_socket joydev lib80211 pcmcia_rsrc i2c_i801 cfg80211 iTCO_wdt iTCO_vendor_support rfkill rng_core snd pcmcia_core soundcore ac97_bus psmouse evdev pcspkr serio_raw ext4 crc16 jbd2 mbcache btrfs crc32c libcrc32c lzo_compress zlib_deflate vga16fb vgastate uvesafb sg sd_mod sr_mod cdrom crc_t10dif ata_generic radeon ata_piix ahci i2c_algo_bit libahci drm_kms_helper ttm libata uhci_hcd drm tg3 ehci_hcd firewire_ohci scsi_mod firewire_core i2c_core usbcore crc_itu_t libphy [last unloaded: scsi_wait_scan]
[ 121.062142]
[ 121.062155] Pid: 3146, comm: sudo Tainted: G D 2.6.38.8 #2 IBM 1846AQG/1846AQG
[ 121.062225] EIP: 0060:[] EFLAGS: 00010286 CPU: 0
[ 121.062268] EIP is at do_exit+0x67c/0x68a
[ 121.062299] EAX: 00000000 EBX: f36da800 ECX: f9b66b20 EDX: 00000003
[ 121.062347] ESI: 00000000 EDI: f36da800 EBP: f4af5e90 ESP: f4af5e80
[ 121.062395] DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
[ 121.062436] Process sudo (pid: 3146, ti=f4af4000 task=f36da400 task.ti=f3742000)
[ 121.062491] I-pipe domain Linux
[ 121.062516] Stack:
[ 121.062532] 00000001 f36da904 f36da7f8 f36da904 f4af5e90 f4af5e90 f36da94c 00000000
[ 121.062606] f4af5f90 00000009 00000000 c1263f02 000001ff 00000009 f4af5f90 c1012978
[ 121.062680] c12dd54d 000001ff 00000000 00030001 f4af5f90 000001ff 00000000 f36da800
[ 121.062754] Call Trace:
[ 121.062776] [] ? oops_end+0x8d/0x91
[ 121.062811] [] ? no_context+0x10c/0x115
[ 121.062849] [] ? bad_area_nosemaphore+0xa/0xc
[ 121.062891] [] ? do_page_fault+0x17f/0x331
[ 121.062932] [] ? show_trace+0xa/0xc
[ 121.062967] [] ? dump_stack+0x50/0x55
[ 121.063005] [] ? __ipipe_handle_exception+0x1bb/0x1e7
[ 121.063052] [] ? error_code+0x6a/0x78
[ 121.063092] [] ? steal_from_linux+0xc8/0xda [rtai_lxrt]
[ 121.063142] [] ? kthread_fun+0xc4/0x150 [rtai_lxrt]
[ 121.064014] [] ? kthread_fun+0x0/0x150 [rtai_lxrt]
[ 121.064014] [] ? kernel_thread_helper+0x6/0x10
[ 121.064014] Code: 89 d8 e8 ba 9b 10 00 8b 83 bc 03 00 00 85 c0 74 05 e8 e6 ba 08 00 b8 01 00 00 00 e8 8e 15 24 00 c7 03 40 00 00 00 e8 27 dd 23 00 <0f> 0b eb fe be fe ff ff ff e9 4f ff ff ff 57 56 8b 3d 04 e3 33
[ 121.064014] EIP: [] do_exit+0x67c/0x68a SS:ESP 0068:f4af5e80
[ 121.111532] ---[ end trace 4f0c651860ee8f70 ]---
[ 121.111536] note: sudo[3146] exited with preempt_count 3
./run
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.021015] Oops: 0000 [#1] PREEMPT
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.021047] last sysfs file: /sys/devices/pci0000:00/0000:00:1e.0/0000:04:02.0/rf_kill
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.022204] Process RD:0:1 (pid: 3149, ti=f4af4000 task=f36da800 task.ti=f4af4000)
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.022261] I-pipe domain Linux
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.022285] Stack:
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.022425] Call Trace:
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.022582] Code: 75 0e 0f 31 89 83 60 05 00 00 89 93 64 05 00 00 f6 46 0d 20 74 24 fa 0f 06 a1 18 86 36 c1 a9 00 00 00 01 8b 86 38 02 00 00 74 05 <0f> ae 08 eb 02 dd 20 8b 46 04 83 48 0c 01 fb 5b 5e c3 a1 04 e3
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.022844] EIP: [] steal_from_linux+0xc8/0xda [rtai_lxrt] SS:ESP 0068:f4af5fcc
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.022913] CR2: 00000000000001ff
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.061182] ------------[ cut here ]------------
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.061255] invalid opcode: 0000 [#2] PREEMPT
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.061292] last sysfs file: /sys/devices/pci0000:00/0000:00:1e.0/0000:04:02.0/rf_kill
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.062436] Process sudo (pid: 3146, ti=f4af4000 task=f36da400 task.ti=f3742000)
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.062491] I-pipe domain Linux
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.062516] Stack:
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.062754] Call Trace:
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.064014] Code: 89 d8 e8 ba 9b 10 00 8b 83 bc 03 00 00 85 c0 74 05 e8 e6 ba 08 00 b8 01 00 00 00 e8 8e 15 24 00 c7 03 40 00 00 00 e8 27 dd 23 00 <0f> 0b eb fe be fe ff ff ff e9 4f ff ff ff 57 56 8b 3d 04 e3 33
Message from syslogd@rtaipc at May 30 21:50:38 ... kernel:[ 121.064014] EIP: [] do_exit+0x67c/0x68a SS:ESP 0068:f4af5e80
Segmentation fault
ERROR: cannot load /usr/realtime/modules/rtai_lxrt.ko
CANNOT CREATE MAILBOX
CANNOT FIND MAILBOX
Error: Module rtai_hal is in use by: rtai_lxrt