From dev-return-2272-apmail-celix-dev-archive=celix.apache.org@celix.apache.org Wed Jun 3 13:44:26 2020 Return-Path: X-Original-To: apmail-celix-dev-archive@www.apache.org Delivered-To: apmail-celix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id 057DC19D9F for ; Wed, 3 Jun 2020 13:44:25 +0000 (UTC) Received: (qmail 49942 invoked by uid 500); 3 Jun 2020 13:44:25 -0000 Delivered-To: apmail-celix-dev-archive@celix.apache.org Received: (qmail 49921 invoked by uid 500); 3 Jun 2020 13:44:25 -0000 Mailing-List: contact dev-help@celix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@celix.apache.org Delivered-To: mailing list dev@celix.apache.org Received: (qmail 49891 invoked by uid 99); 3 Jun 2020 13:44:25 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jun 2020 13:44:25 +0000 From: =?utf-8?q?GitBox?= To: dev@celix.apache.org Subject: =?utf-8?q?=5BGitHub=5D_=5Bcelix=5D_Oipo_commented_on_pull_request_=23249=3A_?= =?utf-8?q?Add_env_vars_for_bind/connect_urls_in_pubsub?= Message-ID: <159119186524.17834.8846231511617701705.asfpy@gitbox.apache.org> Date: Wed, 03 Jun 2020 13:44:25 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit References: In-Reply-To: Oipo commented on pull request #249: URL: https://github.com/apache/celix/pull/249#issuecomment-638206559 @pnoltes the OSX error is because pubsub_utils.c:186 tries to put 512 kb on the stack, but the default stack size on OSX is 512 kb, leading to problems. I can either reduce the stack size, use a memory allocation or increase the stack size for threads create in celix. All have their downsides: ## reduce stack size There is no specified maximum for topic/scope, so any reduction in stack size implicitly means that topic/scope gain a limit. ## use memory allocation Slow ## increase stack size Works for things celix controls, but as soon as someone uses the `pubsub_getEnvironmentVariableWithScopeTopic` function in a user-created thread on a system with small stack sizes, this error comes up again. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org