From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13088 invoked by alias); 16 May 2018 17:26:24 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 13077 invoked by uid 89); 16 May 2018 17:26:24 -0000 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 Received: from mail-ua0-f182.google.com (HELO mail-ua0-f182.google.com) (209.85.217.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 16 May 2018 17:26:22 +0000 Received: by mail-ua0-f182.google.com with SMTP id v17-v6so1066570uak.6 for ; Wed, 16 May 2018 10:26:22 -0700 (PDT) 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 Received: by 10.176.83.154 with HTTP; Wed, 16 May 2018 10:26:19 -0700 (PDT) From: "S.J. Luo" Date: Wed, 16 May 2018 22:28:00 -0000 Message-ID: Subject: Re: perl-Win32-API package problem To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-05/txt/msg00212.txt.bz2 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