From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,LOTS_OF_MONEY,RCVD_IN_DNSWL_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from mail-pg0-x243.google.com (mail-pg0-x243.google.com [IPv6:2607:f8b0:400e:c05::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 809B8202A5 for ; Tue, 3 Oct 2017 18:21:13 +0000 (UTC) Received: by mail-pg0-x243.google.com with SMTP id y192so10688215pgd.5 for ; Tue, 03 Oct 2017 11:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=g7Ch0OjgGAaP7dRXX5CkqeoNmeHKRUyZM2DLrWBGPyU=; b=ETB45mTWzg6fHh/Ovd3DrugYnJ9sfpCcQR6JM+ZhTL6MAKa1x2NGGNGHE8ZmeZv15E u6kPMv7+lLNXxdGBGuJtM9kV2YooPyAsxO1kJ5uKR7c7GgpCMVNE5lbXzdf9cmzhSDJC 8JSCfBjm9PAJ07OteGbiKCP9RCdjF2kOucJtKNXknUourescKM5MpHGTWj4Yr30dsfeU OIVJedRnuiIFtpLnEbw9RfwUPa5sxm1caGN9UCB6grEDC7QTVAyHktUe5OJEBD5kyPQu YFUC/me8eEkdEWt2ZrLgoEfQmQCwTvw8doQlHjU1HAjL+Sj76HZSzHcMhsKSmVCuwxzt hnIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=g7Ch0OjgGAaP7dRXX5CkqeoNmeHKRUyZM2DLrWBGPyU=; b=k8jf27LYQEmDGhQF34/GG4KvBM5W0yyqr3HS9wdRaHVu8XtSDN/j8iQEjiAMZ8w6Xi bpnpHDCbM9FHNfSnSZFg7vvtQvQLqaAuOgiyCMkz2zVZmUtEjNed5gslhVanbCOudbwA T2wqNebsbrZSiIDT1935TTN7JieT01o8NgBkGrvHK6sWQzAUESGaeg2wH7td6QSHEzSD d7k+O635o8LZxgDazHuYywc+F6Za4+7WnHWh4coC4jYXDTzUC3DEVnNpE+TysZAejLIk PkN0Rh5qWLHeaCthdjS2btBPMFgQFmgtiYItpzjkqwjLW6Y7457Q+OefnJ42YpVImI4X m+3g== X-Gm-Message-State: AHPjjUjitPkrcisqUuMhSCzEErggO3uEAgGNyQSs7cUNYWCyh1UFWnqL vJMODqX7pKmonP3G+4ZmAgo= X-Google-Smtp-Source: AOwi7QBef3Mt82SY/1dpUTGBcrywsULyMbfLX+eqITXDofMuqOYyXG/5r5YkpgjVGW89FC3/53pbMQ== X-Received: by 10.99.132.198 with SMTP id k189mr12684741pgd.25.1507054872818; Tue, 03 Oct 2017 11:21:12 -0700 (PDT) Received: from localhost.localdomain ([103.23.4.77]) by smtp.gmail.com with ESMTPSA id s81sm25667014pfg.162.2017.10.03.11.21.10 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 03 Oct 2017 11:21:12 -0700 (PDT) From: Xuanzhong Wei To: e@80x24.org Cc: azrlew@gmail.com, code@jeremyevans.net, maillist@steelskies.com, pere.joan@camaloon.com, philip@irisconnect.co.uk, unicorn-public@bogomips.org Subject: Re: Random crash when sending USR2 + QUIT signals to Unicorn process Date: Wed, 4 Oct 2017 03:20:54 +0900 Message-Id: <20171003182054.76392-1-azrlew@gmail.com> X-Mailer: git-send-email 2.10.1 (Apple Git-78) In-Reply-To: <20171003171544.GA23685@starla> References: <20171003171544.GA23685@starla> List-Id: Thanks for quick response! Here is the compiler version: gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) Furthermore, although I was not able to re-produce the issue with codes caused the problem, I generated some core files of normal and abnormal masters and workers. Here is a glimpse of `ruby_current_vm.objspace.global_list` compared with normal and abnormal masters with same codes. // normal (gdb) $72 = (struct gc_list *) 0x7feb65625680 $73 = 5 --------------------------------------------- (gdb) $74 = (struct gc_list *) 0x7feb6424e2a0 $75 = 7 # T_ARRAY --------------------------------------------- (gdb) $76 = (struct gc_list *) 0x7feb63a8c120 $77 = 8 // abnormal (gdb) $72 = (struct gc_list *) 0x7f7547651cc0 $73 = 5 --------------------------------------------- (gdb) $74 = (struct gc_list *) 0x7f7546939760 $75 = 27 # T_NODE --------------------------------------------- (gdb) $76 = (struct gc_list *) 0x7f7546583e70 $77 = 8 Note that I have checked the whole global_list, the order looks the same. Hence, I am quite sure that the T_NODE in the abnormal one comes from the same module as the T_ARRAY in the normal one. And from contents in T_ARRAY, the module should be unicorn_http.