On 6 May 2010 00:44, Andy Pugh <[email protected]> wrote:

> But if I fail out somewhere later, there is no hal_free to tidy up.
> Does kfree work in hal shared memory? That is what I had but it seems
> like it might not be right.

I seem to be doing at least two things wrong:

> HAL: ERROR: data_addr not in shared memory
> hm2/hm2_7i43.0: error adding Three-Phase pwmgen.pwm_frequency param, aborting

So it looks like there is something wrong with the way I am addressing
the frequency parameter. But then it gets worse: If I comment out the
kfree of the hal_malloc-ed "instance" structure then EMC starts, but
without the 3phase_pwmgen. However with that line left in, I get the
following:

------------[ cut here ]------------
kernel BUG at mm/slub.c:2751!
invalid opcode: 0000 [#1] SMP
last sysfs file: /sys/devices/hm2_7i43.0/firmware/hm2_7i43.0/loading
Modules linked in: hm2_7i43(+) hostmot2 probe_parport motmod trivkins
hal_lib rtapi rtai_math rtai_sem rtai_shm rtai_fifos rtai_sched
rtai_hal parport_pc af_packet parport psmouse evdev usbhid unix [last
unloaded: rtai_hal]

Pid: 4423, comm: insmod Not tainted (2.6.29.4-RTAI #3) SE7501CW2
EIP: 0060:[<c015945b>] EFLAGS: 00010246 CPU: 0
EIP is at kfree+0x2a/0xaf
EAX: 00000000 EBX: c171f000 ECX: c200e1d4 EDX: c042c59c
ESI: f688de84 EDI: f8f800e8 EBP: f688d8bc ESP: f5943d5c
 DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process insmod (pid: 4423, ti=f5942000 task=f66d2a40 task.ti=f5942000)
I-pipe domain Linux
Stack:
 f91a8926 f688d800 f688de84 f688d8b4 f688d8bc f91a8931 00000000 326d6825
 3469375f 2e302e33 6f636e65 2e726564 762e3430 00000002 f91a51dc 00000003
 f91acc7b f91baf08 00000002 00000003 f688d800 f688d8bc f91a5152 f688d800
Call Trace:
 [<f91a8926>] hm2_tp_pwmgen_parse_md+0x4ce/0x4f0 [hostmot2]
 [<f91a8931>] hm2_tp_pwmgen_parse_md+0x4d9/0x4f0 [hostmot2]
 [<f91a51dc>] hm2_register+0xcf1/0xfe4 [hostmot2]
 [<f91a5152>] hm2_register+0xc67/0xfe4 [hostmot2]
 [<c0228612>] klist_children_get+0x0/0x8
 [<c02285d0>] klist_children_put+0x0/0x8
 [<f91a4039>] hm2_release_device+0x0/0x1 [hostmot2]
 [<f91b998c>] init_module+0x3b8/0x4a4 [hm2_7i43]
 [<f91b95d4>] init_module+0x0/0x4a4 [hm2_7i43]
 [<c0101049>] do_one_initcall+0x44/0x128
 [<c0138fe6>] sys_init_module+0x87/0x185
 [<c0102c66>] sysenter_do_call+0x12/0x16
Code: ff 55 57 56 53 83 ec 04 89 c7 83 f8 10 0f 86 97 00 00 00 e8 53
ee ff ff 89 c3 e8 50 e5 ff ff 85 c0 75 18 f7 03 00 60 00 00 75 04 <0f>
0b eb fe 89 d8 5a 5b 5e 5f 5d e9 f5 bd fe ff 8b 44 24 14 89
EIP: [<c015945b>] kfree+0x2a/0xaf SS:ESP 0068:f5943d5c
---[ end trace f1deadc68e81b0f9 ]---
RTAI[math]: unloaded.




-- 
atp

------------------------------------------------------------------------------
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to