Kernel panic: BUG! on uClinux 2.4.31-uc0 when executing system()

I'm currently having a problem using the system() call to execute shell commands from within a process. Previously on 2.4.17 (i think that was the last one i used) i could successfully execute a system("insmod ticker.o c 247 0") to load my own device drivers, but since updating to

2.4.31 i will receive the Kernel panic: BUG! message and the system hangs. Thinking maybe something was wrong with my module, i decided to just attempt to execute a /bin/sh and recieve the same message. Has something been changed for the sh command line support to not allow multiple sh running?

Any help would be greatly appreciated.

On a side note, the reason for me using system() is because i need to programatically load/unload device drivers depending on user input.

Thanks in advance, Aaron

Reply to
aamanning
Loading thread data ...

I'm currently having a problem using the system() call to execute shell commands from within a process. Previously on 2.4.17 (i think that was the last one i used) i could successfully execute a system("insmod ticker.o c 247 0") to load my own device drivers, but since updating to

2.4.31 i will receive the Kernel panic: BUG! message and the system hangs. Thinking maybe something was wrong with my module, i decided to just attempt to execute a /bin/sh and recieve the same message. Has something been changed for the sh command line support to not allow multiple sh running?

Any help would be greatly appreciated.

On a side note, the reason for me using system() is because i need to programatically load/unload device drivers depending on user input.

Thanks in advance, Aaron

Reply to
aamanning

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.