phusion / baseimage-docker

A minimal Ubuntu base image modified for Docker-friendliness
http://phusion.github.io/baseimage-docker/
MIT License
8.96k stars 1.09k forks source link

grep from / crashes container and Docker service #247

Closed mstormo closed 9 years ago

mstormo commented 9 years ago

So, this seems to happen only for this baseimage. If I simply do cd / && grep -niIr "foobar" . both the current container and the docker service as a whole crashes. In fact, it crashes on a kernel level, so I cannot reboot my machine without using the reset/power button.

When I do the same on any other image, I can simply Ctrl+C out of the command without any issue.

If I contain it to /etc for example, the crash doesn't happen.

I'm on Mint Linux 17.1.

FooBarWidget commented 9 years ago

That is definitely a Linux kernel bug. Please report it to the Linux kernel team.

mstormo commented 9 years ago

While I would agree with you that Docker (and by redirection the Linux kernel) shouldn't allow this to happen, it only happens with your baseimage. None of the other baseimages exhibits this behavior. I therefore think it would be most correct if you guys engaged in the issue, given that you guys "own" the baseimage and the Docker "recipe".

Who knows, maybe it's your baseimage's special Init causing the issue? I don't have the slightes idea, which means you're probably in a better position to raise the issue, or figure it out and work around the issue in your own image.

That's my 2c. I won't bring it further..

FooBarWidget commented 9 years ago

We can't reproduce the issue though, so we're not in a position to raise a bug report or to work around it. Our init system doesn't do anything special from a POSIX API point of view and a kernel point of view; everything we do is very standard.

FooBarWidget commented 9 years ago

Furthermore, you trigger the crash through a grep. This suggests that the bug probably lies in the filesystem, which probably means AUFS.

mstormo commented 9 years ago

Ok, thanks for checking, might be a Mint Linux/Docker issue then.

On 9/4/2015 8:18 PM, Hongli Lai wrote:

We can't reproduce the issue though, so we're not in a position to raise a bug report. Our init system doesn't do anything special from a POSIX API point of view and a kernel point of view; everything we do is very standard.

— Reply to this email directly or view it on GitHub https://github.com/phusion/baseimage-docker/issues/247#issuecomment-137891042.