[asterisk-bugs] [JIRA] (ASTERISK-20612) Segmentation fault related to pthread stack size with LOW MEMORY compiler flag selected

Matt Jordan (JIRA) noreply at issues.asterisk.org
Thu Nov 1 08:36:18 CDT 2012


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

Matt Jordan commented on ASTERISK-20612:
----------------------------------------

I want to reiterate before we go any further into the debugging process that the LOW_MEMORY compile time option is not a trivial option to enable.  You will have to get into the Asterisk code at some point in time to iron out any wrinkles in specific modules that are loaded - not every module has had perfect compliant with this option.  If you aren't in a position where that's something you're willing to do, I wouldn't go any further down this road.

That being said, if you *are* willing to get into the Asterisk code, there's a few things you can do:
* Determine which module is causing the thread attribute error.  Attach a DEBUG log that clearly shows where the error occurs - that should narrow down which module is loading, creating a thread, and doing it improperly.
* amportal is a FreePBX item; as such, I'm not able to tell you why it would cause a crash while loading Asterisk independent of it will not.  You might want to contact the FreePBX folks and have them take a look and/or comment on this issue.
* Are you starting Asterisk with the '-g' flag?  That is necessary for a core file to be produced.
* The core file, by default, should be produced in the directory that Asterisk is launched from.  System configuration parameters, however, can change that location, as well as the core file name.  You may need to inspect your system to determine if anything has been set that changes where core files are produced.


                
> Segmentation fault related to pthread stack size with LOW MEMORY compiler flag selected
> ---------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-20612
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20612
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: 10.10.0
>         Environment: Debian Wheezy with all updates (DebWrt), Asus RT-N16 router (480Mhz, 128mb ram, O/S on usb)
>            Reporter: Stephen Hinton
>            Assignee: Stephen Hinton
>
> Compiled asterisk with the low memory flag selected. Upon trying to start asterisk manually (asterisk -cvvvd) the following output is printed:
> "utils.c:1056 ast_pthread_create_stack: pthread_attr_setstacksize: Invalid argument"
> When starting with amportal start:
> "(debwrt-mipsel)root at debwrt:~# amportal start
> Please wait...
> SETTING FILE PERMISSIONS
> chown: cannot access `/dev/tty9': No such file or directory
> Permissions OK
> STARTING ASTERISK
> pthread_attr_setstacksize: Invalid argument
> Segmentation fault
> Asterisk ended with exit status 139
> Asterisk exited on signal 11.
> Automatically restarting Asterisk."

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list