jperkin / node-rpio

Raspberry Pi GPIO library for node.js
858 stars 124 forks source link

Stack Trace Exception on GPIO IR Handler on Raspbian #55

Open japita-se opened 6 years ago

japita-se commented 6 years ago

When we try to use the library, the kernel produces this:

[   22.773531] irq 79: nobody cared (try booting with the "irqpoll" option)
[   22.773550] CPU: 0 PID: 1367 Comm: nodejs Not tainted 4.4.50 #1
[   22.773554] Hardware name: BCM2709
[   22.773580] [<80018734>] (unwind_backtrace) from [<80014044>] (show_stack+0x20/0x24)
[   22.773593] [<80014044>] (show_stack) from [<80323d64>] (dump_stack+0xc8/0x10c)
[   22.773606] [<80323d64>] (dump_stack) from [<80074a38>] (__report_bad_irq+0x3c/0xdc)
[   22.773618] [<80074a38>] (__report_bad_irq) from [<80074e5c>] (note_interrupt+0x29c/0x2ec)
[   22.773629] [<80074e5c>] (note_interrupt) from [<80072084>] (handle_irq_event_percpu+0x1f0/0x258)
[   22.773639] [<80072084>] (handle_irq_event_percpu) from [<80072140>] (handle_irq_event+0x54/0x78)
[   22.773649] [<80072140>] (handle_irq_event) from [<800755c0>] (handle_level_irq+0xb8/0x164)
[   22.773659] [<800755c0>] (handle_level_irq) from [<800714e0>] (generic_handle_irq+0x34/0x44)
[   22.773672] [<800714e0>] (generic_handle_irq) from [<803491c4>] (bcm2836_chained_handle_irq+0x3c/0x50)
[   22.773683] [<803491c4>] (bcm2836_chained_handle_irq) from [<800714e0>] (generic_handle_irq+0x34/0x44)
[   22.773693] [<800714e0>] (generic_handle_irq) from [<800717ec>] (__handle_domain_irq+0x6c/0xc4)
[   22.773703] [<800717ec>] (__handle_domain_irq) from [<80010a10>] (handle_IRQ+0x28/0x2c)
[   22.773714] [<80010a10>] (handle_IRQ) from [<80009534>] (bcm2836_arm_irqchip_handle_irq+0xb8/0xbc)
[   22.773726] [<80009534>] (bcm2836_arm_irqchip_handle_irq) from [<805c114c>] (__irq_usr+0x4c/0x60)
[   22.773732] Exception stack(0xa7e3ffb0 to 0xa7e3fff8)
[   22.773738] ffa0:                                     7efc8c28 00400000 00000002 00000003
[   22.773747] ffc0: 7efc8a90 7efc8af4 7efc8b70 74b3a2ec 3ee04141 0167a4a8 00000001 7efc8a8c
[   22.773754] ffe0: 74b4d170 7efc8a68 74b3a54c 74b3a554 60000010 ffffffff
[   22.773760] handlers:
[   22.773768] [<8034f46c>] bcm2835_gpio_irq_handler
[   22.773774] Disabling IRQ #79

and other devices (like modem) are not working.

jperkin commented 5 years ago

I'm not sure if there's anything I can do in the module to avoid this, did you try with any different kernel versions?