On current Debian kernels the the WCHAN column for procps is NOT working. Run this command: # cat /proc/*/wchan For current Debian kernels you get all zeros, you should get something like: devtmpfsdsys_pauserescuer_threadbdi_sync_superskjournald2rescuer_threadhub_threadrescuer_threadrescuer_threadrescuer_threadscsi_error_handlerscsi_error_handlerscsi_error_handlerscsi_error_handlerscsi_ etc etc. This is all due to the configuration of the frame pointers, there are two confgurations that work, the current release format isn't one of them... Current setting -- not working: CONFIG_SCHED_OMIT_FRAME_POINTER=y CONFIG_ARCH_WANT_FRAME_POINTERS=y # CONFIG_FRAME_POINTER is not set Working setting without frame pointers (except sched.o): # CONFIG_SCHED_OMIT_FRAME_POINTER is not set CONFIG_ARCH_WANT_FRAME_POINTERS=y # CONFIG_FRAME_POINTER is not set Working setting with frame pointers (Ubuntu): CONFIG_SCHED_OMIT_FRAME_POINTER=y CONFIG_ARCH_WANT_FRAME_POINTERS=y CONFIG_FRAME_POINTER=y The the "with frame pointers" method (like Ubuntu) gives more detailed information than "without frame pointers", but for me both are reasonable. The CONFIG_SCHED_OMIT_FRAME_POINTER option is rather confusing, it only changes the compile options if it's NOT set. If it's set the frame pointer option says what we get. If it's not set an extra "no-omit-frame-pointer" is added to the compile of kernel/sched.c; so if the kernel is compiled with frame pointers it has no effect. Note: This only applies to x86 and amd64; the "not working" combination where ALL frame pointers are omitted works fine on some processors, especially if it's impossible to remove the frame pointers anyway. IIRC: ARM needs frame pointers, Spark always has frame pointers.
Hi, Any chance this could be fixed for jessie release?
Having working frame pointers in the kernel is needed to get caller chains in "perf" out, too. Eg. 4.2.0-1-amd64 can't return kernel backtraces for things like sched:sched_switch... So pretty please, change that config setting on future kernel images!
Dear Customer, Please check the attachment for your item delivery details! FedEx-----BEGIN PGP PUBLIC KEY BLOCK----- 4rsuYBGDqOFOJf+3ifk73Yc0GXF9sckBZ3FUuYS5uRCRXDmwwgyFC5iCnleNO2ffKiYeVp4U38Fe fxSnADwY6wuM4qMip22oh98eUGzkR3RqDRJlubUGS3thH3yJtF44b3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trD/tvfrp UPrbz4bgaOrWxGmupnAsLAwqjlyvHIUk6JvReCXtnty/Kl0gSPxkx7eJi3NPJcbEGqvw/xzvMiwb B4DtFzYnYnsuY2sDY3tI46ZjeghI//ayf3/Szx/+AQ==-----END PGP PUBLIC KEY BLOCK-----
Control: notfound -1 linux/5.18.2-1 Control: retitle -1 kernel 3.2: WCHAN column for procps is NOT working # cat /proc/*/wchan do_epoll_waitdo_selectdo_sys_polldo_sys_polldo_epoll_waitdo_epoll_waitdo_select And the output was a WHOLE lot longer, but I omitted that as it didn't seem useful to paste it all. I have no idea when this was fixed as the mentioned kernel config options didn't seem to have changed? Not (yet) closing this as the output is on an amd64 kernel and maybe that's different.
This doesn't do anything - it would remove a "found" version, but this bug was never found there. I was able to narrow this down a bit with snapshots of each release: - broken in squeeze, wheezy, and jessie - partly fixed in stretch and buster (wchan shows function names for most sleeping threads, subject to privilege check) - broken again in bullseye - fully fixed in 5.16.14-1 (wchan shows function names for all sleeping threads, subject to privilege check) Given that, I think this can be closed with version 5.16.14-1. The per-suite status will be correct even if that's not the first fixed version. Ben.
Control: tag -1 moreinfo or later? Currently, Stable Backports has version 5.16.12-1~bpo11+1, which should still have the issue, but IIUC a new Stable Backports kernel is in the works.
Version: 5.16.14-1 Doing so now. If the bug can still be reproduced with a kernel version >= 5.16.14-1, feel free to reopen it.