X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=rSej+YcJ2M5ZXKvE0pFyZUfYM8hzw YkcLy/s9eCIOEhh/SD8cqYgd73uNhDK9WUEEL2+2KL3DX44wxYYkmGRshV4ce0vW tVRV63OVilrYcwNI+um7/sBD5y4sDMwUCAqb8KZwUconoRqwnpRm/cElnyhwtX0x /y7kGCtFirEEbo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=zBpuTrORkmK2qQOTct1J4lbatkg=; b=tMd GGYpftpqe+JfS1Scz327omvzDK8h3jqVeBpPABT+81/ABrAJryeIaIke5DwW42zS oVyrMkAg2ZmNT7rGPHzmOrg+c84xjqvV9Lrn1XsvLHC0xMCoda32tpy2949/cZNz YCYKmdIdCiZJAnDU82MsfqnV1pyPYg/yprykMB68= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=l149, UD:PL, attacks, protector X-HELO: mail-ua0-f182.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3uRq2sI4oYf24DKyDrsVR3IYL2WrTozDLPf1Y5fKcUw=; b=NrwBPApInflk2bFlN04iokrRDf88gT9LceJMutpYmts/lul7jFmC4jDvg1f+VvuovB jtJuc6CnU0V3AzWvHeekgfN40UXa7l8jHlx6StXdUNHqRWvdcioRi1cEii5M4p5U/2dI rpA+pG+ZTMlyFJC9bsBfLPRNdqNHQ1Gj+3ZWusNYHAEp5dZZxEywQagwr9fYfPfSydp3 SIOehUUJ2jbZFArNNf1QpQr4I9zXnvvyokvypzXmBGzRKXno3zykFdvkc9sietu/IM9j 9pNZhFQPgRY1RivQAgrhgMnq/19iiiIcBpWjdO2DkIEEjsqoqbwq4MpkJ85IfJCYG/Mj DtVw== X-Gm-Message-State: ALKqPwe5/xpyprgXR6YvJ09cMwQa/QVWL5d7l6r5PvKYcWvVk0kb/RY2 mX8+JB3WSMzf11sdfewrCNT7YXruP9OeQJYv6qk= X-Google-Smtp-Source: AB8JxZpi2dTwkiR/n46IFxgIJ81fO6Zc90IoZHZp8b9s82DQplZm6/Llg9sf8v5hRFoShks3IgcIoCc3CNho9P5q8OY= X-Received: by 2002:a9f:3766:: with SMTP id a35-v6mr1669192uae.66.1526491580376; Wed, 16 May 2018 10:26:20 -0700 (PDT) MIME-Version: 1.0 From: "S.J. Luo" Date: Thu, 17 May 2018 01:26:19 +0800 Message-ID: Subject: Re: perl-Win32-API package problem To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" Hi Achim, > > By checking the gcc compile option, I found there is a gcc option > > "-fno-stack-protector" provided when I compile this module by myself, > > while the option is removed when I compile with cygport. If I try > > manually compiling without this option, the same problem occurs. > > I don't know enough of how the stack protector actually is implemented > to understand why it would work without the protector and stop working > with. > > I'll see if it's possible to remove the option from within cygport, if > yo I'll have to think about any ramifications that might have. Thanks for the responding. I just learned that stack protector is trying to prevent against buffer overflow/stack-corruption based attacks. It might not be a big issue. A crack-aware program shall simply avoid this module. And yes I believe it is complex that how stack protector have influence on this Perl module. But I think this option is just necessary. The Makefile.PL explicitly applies -fno-stack-protector option on non-MSVC compilers with 64bit target: https://metacpan.org/source/BULKDD/Win32-API-0.84/Makefile.PL#L149 SJ -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple