[etherlab-users] Problem with ethercat-devel-r1770 / etherlab-1.3-pre-r550

Jimmy Anderson ander.jimmy.05 at googlemail.com
Mon Aug 31 00:50:23 CEST 2009


Hello,

I have problems running etherlab on my machine.
Im running a small configured Ubuntu 9.04 server with a patched Linux
Kernel  2.6.28.7 running the actual rtai cvs version.
Using the internal realtech chip 8139 for ethercat and a seperate intel chip
for ethernet access.

Ethercat works well, but when starting the etherlab script (init.d), i get a
segmentation fault and I can't unload the module rt_appcore anymore.
See here:
root at master:/etc/init.d# ./etherlab start
Starting EtherLab AppCore./etherlab: line 45:  3020 Segmentation fault
insmod $MODULE_PATH
root at master:/etc/init.d#

Here the according dmsg response:
[ 1969.783994] EtherCAT: Master driver devel r1770
[ 1969.785560] EtherCAT: 1 master waiting for devices.
[ 1969.811087] 8139too 0000:01:06.0: PCI INT A disabled
[ 1969.822545] ec_8139too EtherCAT-capable Fast Ethernet driver 0.9.28,
master devel r1770
[ 1969.822600] ec_8139too 0000:01:06.0: PCI INT A -> GSI 19 (level, low) ->
IRQ 19
[ 1969.823113] EtherCAT: Accepting device 00:22:68:61:02:CC for master 0.
[ 1969.823126] ec0: RealTek RTL8139 at 0xc800, 00:22:68:61:02:cc, IRQ 19
[ 1969.823133] ec0:  Identified 8139 chip type 'RTL-8100B/8139D'
[ 1969.823206] EtherCAT: Starting EtherCAT-IDLE thread.
[ 1983.045623] I-pipe: Domain RTAI registered.
[ 1983.045636] RTAI[hal]: <magma> mounted over IPIPE-NOTHREADS 2.2-06.
[ 1983.045642] RTAI[hal]: compiled with gcc version 4.3.3 (Ubuntu
4.3.3-5ubuntu4) .
[ 1983.045738] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs
VECTORED), ISOL_CPUS_MASK: 0).
[ 1983.045743] PIPELINE layers:
[ 1983.045748] f830bc80 9ac15d93 RTAI 200
[ 1983.045753] c0402500 0 Linux 100
[ 1983.092416] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 1983.092748] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN
KTASKs>, <uses LINUX SYSCALLs>, kstacks pool size = 524288 bytes.
[ 1983.092762] RTAI[sched]: hard timer type/freq = APIC/8313733(Hz); default
timing: periodic; linear timed lists.
[ 1983.092770] RTAI[sched]: Linux timer freq = 1000 (Hz), TimeBase freq =
1596161000 hz.
[ 1983.092775] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 1983.127222] RTAI[math]: loaded.
[ 1983.138932] Starting RT-AppCore 1.3-pre
[ 1983.138989] BUG: unable to handle kernel NULL pointer dereference at
00000000
[ 1983.139616] IP: [<c01cfc94>] vsnprintf+0x484/0x4b9
[ 1983.139657] *pde = 00000000
[ 1983.139665] Oops: 0000 [#1] PREEMPT SMP
[ 1983.139694] last sysfs file: /sys/module/mii/initstate
[ 1983.139719] Modules linked in: rt_appcore(+) rtai_math rtai_sem
rtai_sched rtai_hal ec_8139too ec_master ac battery wmi rfkill input_polldev
container video output sbs sbshc ipv6 loop iTCO_wdt iTCO_vendor_support
serio_raw rng_core intel_agp agpgart parport_pc parport button evdev ext3
jbd mbcache sg sd_mod ata_generic pata_acpi ata_piix libata scsi_mod usbhid
hid ide_pci_generic piix 8139cp e1000 ide_core ehci_hcd mii uhci_hcd usbcore
fan thermal_sys fuse [last unloaded: 8139too]
[ 1983.140019]
[ 1983.140019] Pid: 3020, comm: insmod Not tainted (2.6.28.7-rtai #1) O.E.M
[ 1983.140019] EIP: 0060:[<c01cfc94>] EFLAGS: 00010292 CPU: 0
[ 1983.140019] EIP is at vsnprintf+0x484/0x4b9
[ 1983.140019] EAX: f6a0dab0 EBX: f6a0da00 ECX: 00000000 EDX: 00000014
[ 1983.140019] ESI: f6a0da9c EDI: f69f9e40 EBP: 00000000 ESP: f69f9cf0
[ 1983.140019]  DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
[ 1983.140019] Process insmod (pid: 3020, ti=f69f8000 task=f64ba180
task.ti=f69f8000)
[ 1983.140019] I-pipe domain Linux
[ 1983.140019] Stack:
[ 1983.140019]  00000014 f6a0da9c c01cfc8e f6a0dab0 f69f9e44 c01cf7ca
f69f9e84 f64e5580
[ 1983.140019]  f69f9e88 c02e176c c01cfaa1 ffffffff 00000001 f701d774
c01cb7fa f69f9d70
[ 1983.140019]  c0419af8 00000006 00000001 00000000 ffffffc1 00000001
00000000 f69d6f40
[ 1983.140019] Call Trace:
[ 1983.140019]  [<c01cfc8e>] vsnprintf+0x47e/0x4b9
[ 1983.140511]  [<c01cf7ca>] string+0x27/0x6d
[ 1983.140511]  [<c01cfaa1>] vsnprintf+0x291/0x4b9
[ 1983.140511]  [<c01cb7fa>] idr_get_empty_slot+0x145/0x202
[ 1983.140511]  [<c011772d>] __wake_up+0x2a/0x3d
[ 1983.140511]  [<c029c31f>] _spin_unlock_irqrestore+0x15/0x2b
[ 1983.140511]  [<c02542aa>] netlink_broadcast+0x2d9/0x31a
[ 1983.140511]  [<c01ccaa2>] kobject_uevent_env+0x2e6/0x308
[ 1983.140511]  [<c022b72a>] device_create_vargs+0x71/0x99
[ 1983.140511]  [<f82b0000>] init_module+0x0/0xda [rt_appcore]
[ 1983.140511]  [<c022b770>] device_create+0x1e/0x22
[ 1983.140511]  [<f8343a1e>] rtp_fio_init+0xd5/0x11d [rt_appcore]
[ 1983.140511]  [<f82b0084>] init_module+0x84/0xda [rt_appcore]
[ 1983.140511]  [<f82b0000>] init_module+0x0/0xda [rt_appcore]
[ 1983.140511]  [<c010104d>] _stext+0x4d/0x157
[ 1983.140511]  [<c0156e4b>] free_hot_cold_page+0x209/0x23e
[ 1983.140511]  [<c013e33a>] load_module+0x145f/0x160c
[ 1983.140511]  [<f82dc69a>] rt_sem_wait+0x0/0x80b [rtai_sem]
[ 1983.140511]  [<c013e624>] sys_init_module+0x87/0x174
[ 1983.140511]  [<c01038e6>] sysenter_do_call+0x12/0x16
[ 1983.140511] Code: d2 8b 03 f6 44 24 10 02 74 01 99 ff 74 24 10 ff 74 24
1c ff 74 24 1c 51 52 50 8b 54 24 24 89 f0 e8 37 f5 ff ff 89 c6 83 c4 18 45
<8a> 45 00 84 c0 0f 85 dc fb ff ff 83 3c 24 00 74 13 3b 74 24 0c
[ 1983.140511] EIP: [<c01cfc94>] vsnprintf+0x484/0x4b9 SS:ESP 0068:f69f9cf0
[ 1983.141620] ---[ end trace 1f35437aae9db186 ]---

The problem seems to be:
Starting RT-AppCore 1.3-pre
[ 1983.138989] BUG: unable to handle kernel NULL pointer dereference at
00000000

I can't locare the origin, searching for days up till now.
Does anybody have a hint or a way to solve this problem.

Thanx
Jimmy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20090831/f8e27747/attachment-0002.htm>


More information about the Etherlab-users mailing list