From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19185 invoked by alias); 10 Aug 2015 17:30:53 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36080 Received: (qmail 11053 invoked from network); 10 Aug 2015 17:30:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=1DykBFvxsXT6T8w1wZ4S9iYDmMXyRt0CkkTPQdXL3uU=; b=GXMboG5+LepQ56VZ7hMLS3QMPGZN3gSRJCUXmmJlOm9bSf8+jijz0faUPCdvNMUXcC ef8/R/popeZj1F+plCKjSK6vjAWYA72vTDvJyRzz8AUUIcTgQkxaGagyBK2HCFc3DtYD 0fpnQkJlcHc+dPlmpVRrwv12S4773mq0BfZRU8FNnwdgxcyA+y8LuXTzcFxnmv5FBit/ jmyhDclfMuWBigF190d500m8s004qyT5vyOL8vtvyck4qZ7PIQ/rseqvalt8dkonLM// hl5a1ywc1pDVIRL2m/A06UCNk8opV8Hz3mHYkmd4yOGBUmlQ3zZlIY5tUPw3sHWnEa5u uJZA== X-Received: by 10.202.184.11 with SMTP id i11mr19564369oif.16.1439227850408; Mon, 10 Aug 2015 10:30:50 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <150810085951.ZM17913@torch.brasslantern.com> References: <150803085228.ZM24837@torch.brasslantern.com> <150803135818.ZM24977@torch.brasslantern.com> <150804235400.ZM9958@torch.brasslantern.com> <150805085258.ZM17673@torch.brasslantern.com> <150805115249.ZM7158@torch.brasslantern.com> <150805132014.ZM7746@torch.brasslantern.com> <150805220656.ZM18545@torch.brasslantern.com> <150806085451.ZM402@torch.brasslantern.com> <150806223906.ZM17762@torch.brasslantern.com> <150809164225.ZM10049@torch.brasslantern.com> <150809184740.ZM17656@torch.brasslantern.com> <150810085951.ZM17913@torch.brasslantern.com> From: Mathias Fredriksson Date: Mon, 10 Aug 2015 20:30:10 +0300 Message-ID: Subject: Re: Deadlock when receiving kill-signal from child process To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On Mon, Aug 10, 2015 at 6:59 PM, Bart Schaefer wrote: } } So apparently on Mathias's platform, passing -g plus not passing -O is } not sufficient to actually enable debugging symbols. For me "-Wall -Wmissing-prototypes -ggdb" are selected as CFLAGS by configure. I have tried to play around with the optimization flag (-O), but I'm seeing weird results. With -O0 I get the same kind of output as before With -O1 and -O2: #0 0x00007fff8abf95da in syscall_thread_switch () #1 0x00007fff853a982d in _OSSpinLockLockSlow () #2 0x00007fff896e1635 in szone_force_lock () #3 0x00007fff896e15e6 in _malloc_fork_prepare () #4 0x00007fff82cb8097 in fork () #5 0x0000000103e15f6d in parsecmd () #6 0x0000000103e199a3 in execcmd () #7 0x0000000103e148db in execpline () #8 0x0000000103e13cfe in execlist () #9 0x0000000103e13b02 in execlist () #10 0x0000000103e17d3c in execcmd () #11 0x0000000103e1767e in execrestore () #12 0x0000000103e6037d in paramsubst () #13 0x0000000103e5f5e8 in paramsubst () #14 Cannot access memory at address 0x90 With just -O: #0 0x00007fff8abf95da in syscall_thread_switch () #1 0x00007fff853a982d in _OSSpinLockLockSlow () #2 0x00007fff896e1635 in szone_force_lock () #3 0x00007fff896e15e6 in _malloc_fork_prepare () #4 0x00007fff82cb8097 in fork () #5 0x0000000104edac5a in doshfunc () #6 0x0000000104eded31 in execcmd () #7 0x0000000104ed94f4 in getoutput () #8 0x0000000104ed88db in execpline () #9 0x0000000104ed86d2 in execpline () #10 0x0000000104edcbf4 in execcmd () #11 0x0000000104edc54c in execcmd () #12 0x0000000104f34ba2 in dowatch () #13 0x0000000104f33c27 in lchdir () #14 0x0000000104f3349c in addunprintable () #15 Cannot access memory at address 0x90