Re: [asterisk-users] CentOS7: How to debug SEGV when asterisk starts with autoload=yes ?

2017-06-12 Thread Olivier
Hi,

I think I was (once more) tricked by SELinux's enforce mode.
Changing it to permissive improved things.

Anyway, as I would like to learn more about strace, SELinux and Asterisk
module loading, I'll leave this thread "open"
and append my findings, in couple of days, when I'll be back from a
business trip.



2017-06-12 15:29 GMT+02:00 Tzafrir Cohen :

> On Mon, Jun 12, 2017 at 10:36:21AM +0200, Olivier wrote:
> > Hello,
> >
> > I was tasked to install Asterisk 13.16.0. from source on a CentOS7
> platform.
> >
> > For that purpose, I used an unmaintened script of mine, written 10
> monthes
> > ago, and I was surprised to get segmentation violations whenever I ran
> > "asterisk -cvvv -U asterisk".
> >
> > Usually, my /etc/asterisk/modules.conf file includes "autoload=yes"
> setting.
> >
> > Basically, I see two alternative methods:
> >
> > 1. leave "autoload=yes and remove modules one by one in modules.conf.
> > When segmentation violations stops, then focus on latest disabled module.
>
> Never a good idea. Disable half for starters. Then disable/enable half
> of the remaining, etc.
>
> >
> > 2.set  "autoload=no and add modules one by one in modules.conf.
> > When segmentation violations starts, then focus on latest enabled module.
>
> 3. strace -eopen asterisk -U asterisk -c
>
> IIRC the message that Asterisk prints for loading a module is only
> printed after the module is loaded, and hence you need strace.
>
> --
>Tzafrir Cohen
> +972-50-7952406   mailto:tzafrir.co...@xorcom.com
> http://www.xorcom.com
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] CentOS7: How to debug SEGV when asterisk starts with autoload=yes ?

2017-06-12 Thread Tzafrir Cohen
On Mon, Jun 12, 2017 at 10:36:21AM +0200, Olivier wrote:
> Hello,
> 
> I was tasked to install Asterisk 13.16.0. from source on a CentOS7 platform.
> 
> For that purpose, I used an unmaintened script of mine, written 10 monthes
> ago, and I was surprised to get segmentation violations whenever I ran
> "asterisk -cvvv -U asterisk".
> 
> Usually, my /etc/asterisk/modules.conf file includes "autoload=yes" setting.
> 
> Basically, I see two alternative methods:
> 
> 1. leave "autoload=yes and remove modules one by one in modules.conf.
> When segmentation violations stops, then focus on latest disabled module.

Never a good idea. Disable half for starters. Then disable/enable half
of the remaining, etc.

> 
> 2.set  "autoload=no and add modules one by one in modules.conf.
> When segmentation violations starts, then focus on latest enabled module.

3. strace -eopen asterisk -U asterisk -c

IIRC the message that Asterisk prints for loading a module is only
printed after the module is loaded, and hence you need strace.

-- 
   Tzafrir Cohen
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users