Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489908 - =sys-kernel/gentoo-sources-3.11.6 - `echo 3 > /proc/sys/vm/drop_caches` causes hang of bash
Summary: =sys-kernel/gentoo-sources-3.11.6 - `echo 3 > /proc/sys/vm/drop_caches` cause...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-30 20:49 UTC by Raymond Jennings
Modified: 2014-01-24 15:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Jennings 2013-10-30 20:49:24 UTC
I suspect some kind of infinite loop or blocking in kernelspace

Reproducible: Always

Actual Results:  
Bash hangs

Expected Results:  
Caches should flush.

still going on 5 minutes with an idle system and it's still hung, with 100 percent cpu time allocated to system.
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-11-03 05:12:56 UTC
Can you try to build bash and the kernel with debugging symbols and obtain a backtrace with gdb? That way we can get to see where it hangs.

There are also some other hang related options in the debugging section that might yield more details. Make sure to take a look at dmesg as well; or well, at least if that's a possibility with a hung terminal. Though on the other hand, you can look at /var/log/messages (or journalctl on systemd) as an alternative.
Comment 2 Raymond Jennings 2013-11-03 05:16:53 UTC
Update:

It *eventually* finishes, and I noticed that buffers usage also goes down to near zero.

Repeated invocation is quicker but still takes a second.

I'll try to rebuild the kernel.  Bash is already ggdb3 so I'll leave it alone.

Will attempt to rebuild kernel with debug.
Comment 3 Mike Pagano gentoo-dev 2014-01-24 14:45:50 UTC
(In reply to shentino from comment #2)
> Update:
> 
> It *eventually* finishes, and I noticed that buffers usage also goes down to
> near zero.
> 
> Repeated invocation is quicker but still takes a second.
> 
> I'll try to rebuild the kernel.  Bash is already ggdb3 so I'll leave it
> alone.
> 
> Will attempt to rebuild kernel with debug.

Were you able to reproduce with debug symbols to get more information?
Comment 4 Raymond Jennings 2014-01-24 15:55:59 UTC
I've moved on to 3.13 now so I'm closing this as obsolete.

Also I do not yet know how to debug a kernel.