[asterisk-bugs] [JIRA] (ASTERISK-28590) utils.c throws repeated warnings; "pthread_attr_setstacksize: Invalid argument"

Sean Bright (JIRA) noreply at issues.asterisk.org
Fri Oct 18 08:11:48 CDT 2019


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=248462#comment-248462 ] 

Sean Bright commented on ASTERISK-28590:
----------------------------------------

According to [the Linux {{man}} page for {{pthread_attr_setstacksize}}|https://linux.die.net/man/3/pthread_attr_setstacksize], it will return {{EINVAL}} if:

bq. The stack size is less than {{PTHREAD_STACK_MIN}} (16384) bytes.

or:

bq. On some systems, *pthread_attr_setstacksize()* can fail with the error *{{EINVAL}}* if _stacksize_ is not a multiple of the system page size. 

Neither of those appear to be the case here, so I am not sure how to proceed. I don't have access to the appropriate hardware to test.

> utils.c throws repeated warnings; "pthread_attr_setstacksize: Invalid argument"
> -------------------------------------------------------------------------------
>
>                 Key: ASTERISK-28590
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28590
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: 16.6.0
>         Environment: Debian 10.1 Buster aarch64 (Pine64 small board computer with 1GB of RAM)
>            Reporter: Speed Dial Dave
>            Assignee: Unassigned
>            Severity: Minor
>              Labels: patch, pjsip
>         Attachments: 0001-utils.c-Print-desired-stacksize-on-EINVAL.patch
>
>
> Linux 4.19.0-6-arm64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) aarch64 GNU/Linux
> 16.6.0 built from source: ./configure --disable-xmldoc --with-jansson-bundled --with-pjproject-bundled --without-bluetooth --without-dahdi --without-gtk2
> Throws a warning regularly, from a lot of different actions: WARNING[1539]: utils.c:1296 ast_pthread_create_stack: pthread_attr_setstacksize: Invalid argument



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list