[技術] Linux Kernel的schedule_timeout error

Written on 4:45 下午 by Yu Lai

今天在寫Code時,Kernel狂吐schedule_timeout: wrong timeout value fffffd85 from c01595ef。
查了一下Google才發現這是說schedule_timeout被傳了負數的value進去導致的錯誤。
到/proc/ksyms或System.map一查才發現原來是epoll所呼叫的。
比對了一下code才發現原來忘了對timeout variable進行initial與小於0的check,修正後即解決。

If you enjoyed this post Subscribe to our feed

No Comment

張貼留言