From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752242AbcHHMLn (ORCPT ); Mon, 8 Aug 2016 08:11:43 -0400 Received: from mail-ua0-f194.google.com ([209.85.217.194]:33825 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752005AbcHHMLl (ORCPT ); Mon, 8 Aug 2016 08:11:41 -0400 Date: Mon, 8 Aug 2016 08:11:38 -0400 From: Tom Horsley To: linux-kernel@vger.kernel.org Subject: How the devil can gettid() return 1? Message-ID: <20160808081138.37764520@tomh> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Every once in a while google-chrome goes into a 100% cpu loop. I got curious and examined the thread that was running at 100% and strace says this over and over again till I interrupt it: gettid() = 1 gettid() = 1 gettid() = 1 gettid() = 1 ^Cstrace: Process 18863 detached Clearly Process 18863 isn't the init process, how can it have a tid of 1? This is on a fedora 24 box with a 4.6 kernel: Linux tomh 4.6.4-301.fc24.x86_64 #1 SMP Tue Jul 12 11:50:00 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Just curious...