Re: [asterisk-users] Segmentation fault

2023-08-23 Thread Mark Murawski

Hi Federico,

The first hit from Google 'how to run command from gdb'
https://ftp.gnu.org/old-gnu/Manuals/gdb/html_chapter/gdb_5.html#:~:text=Use%20the%20run%20command%20to,section%20Commands%20to%20specify%20files).

# gdb
(gdb) file /usr/sbin/asterisk
(gdb) run –gvvc
Starting program: /usr/sbin/asterisk -gvc
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
snip
Created by Mark Spencer 
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' 
for details.

snip...

etc etc




On 8/20/23 09:12, Federico wrote:


I cannot follow your instructions, because asterisk segfaults on 
start. It never starts


Can you give me instruction to trap this segfault on starting asterisk?

Like gdb …..asterist –gvvc

*From:* asterisk-users  *On 
Behalf Of *Mark Murawski

*Sent:* Saturday, August 19, 2023 11:04 PM
*To:* asterisk-users@lists.digium.com
*Subject:* Re: [asterisk-users] Segmentation fault

Hi Federico,

Segfaults are 100% not by design.  Typically if something seg faulted, 
either there is a logic bug or a component mismatch. The you should 
definitely be able to use more than one connection (we use multiple 
connections with postgres odbc with no issue).


If Asterisk segfaults when using odbc
Try this:
- use ps and get the pid of Asterisk
- run gdb, attach to the asterisk pid
- do something that would cause the seg fault
- get a backtrace (bt) and show all threads backtrace (thread apply 
all bt)


if Asterisk segfaults when starting up
Run Asterisk straight from gdb
Wait for segfault, get backtrace, and all threads backtrace




On 8/16/23 18:48, Federico wrote:

I tested this issue with version 13 and version 18.

In res_odbc.conf, if I add a second, new data source like

[asterisk]

enabled=yes

dsn=asterisk

sanitysql => select 1

isolation => read_committed

username=root

;password=

pre-connect => yes

forcecommit => yes

connect_timeout => 10

negative_connection_cache => 0

max_connections =>500

my odbc.ini

[cdr]

Description = MySQL ODBC Driver Testing

Driver = maria

Socket = /var/run/mysqld/mysqld.sock

User = root

Password =

Database = public

Option = 3

I  get, immediately, segmentation fault.

With only one, it works fine.

Is this by design?

Philip




-- 
_
-- 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] Segmentation fault

2023-08-20 Thread Federico
I cannot follow your instructions, because asterisk segfaults on start. It 
never starts

Can you give me instruction to trap this segfault on starting asterisk?

Like gdb …..asterist –gvvc 

 

 

From: asterisk-users  On Behalf Of 
Mark Murawski
Sent: Saturday, August 19, 2023 11:04 PM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] Segmentation fault

 

Hi Federico,

Segfaults are 100% not by design.  Typically if something seg faulted, either 
there is a logic bug or a component mismatch. The you should definitely be able 
to use more than one connection (we use multiple connections with postgres odbc 
with no issue).

If Asterisk segfaults when using odbc
Try this:
- use ps and get the pid of Asterisk
- run gdb, attach to the asterisk pid
- do something that would cause the seg fault
- get a backtrace (bt) and show all threads backtrace (thread apply all bt)

if Asterisk segfaults when starting up
Run Asterisk straight from gdb
Wait for segfault, get backtrace, and all threads backtrace




On 8/16/23 18:48, Federico wrote:

I tested this issue with version 13 and version 18.

In res_odbc.conf, if I add a second, new data source like

 

[asterisk]

enabled=yes

dsn=asterisk

sanitysql => select 1

isolation => read_committed

username=root

;password=

pre-connect => yes

forcecommit => yes

connect_timeout => 10

negative_connection_cache => 0

max_connections =>500

 

my odbc.ini

[cdr]

Description = MySQL ODBC Driver Testing

Driver = maria

Socket = /var/run/mysqld/mysqld.sock

User = root

Password =

Database = public

Option = 3

 

 

I  get, immediately, segmentation fault.

With only one, it works fine.

Is this by design?

 

Philip

 

 

 





 

-- 
_
-- 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] Segmentation fault

2023-08-19 Thread Mark Murawski

Hi Federico,

Segfaults are 100% not by design.  Typically if something seg faulted, 
either there is a logic bug or a component mismatch. The you should 
definitely be able to use more than one connection (we use multiple 
connections with postgres odbc with no issue).


If Asterisk segfaults when using odbc
Try this:
- use ps and get the pid of Asterisk
- run gdb, attach to the asterisk pid
- do something that would cause the seg fault
- get a backtrace (bt) and show all threads backtrace (thread apply all bt)

if Asterisk segfaults when starting up
Run Asterisk straight from gdb
Wait for segfault, get backtrace, and all threads backtrace




On 8/16/23 18:48, Federico wrote:


I tested this issue with version 13 and version 18.

In res_odbc.conf, if I add a second, new data source like

[asterisk]

enabled=yes

dsn=asterisk

sanitysql => select 1

isolation => read_committed

username=root

;password=

pre-connect => yes

forcecommit => yes

connect_timeout => 10

negative_connection_cache => 0

max_connections =>500

my odbc.ini

[cdr]

Description = MySQL ODBC Driver Testing

Driver = maria

Socket = /var/run/mysqld/mysqld.sock

User = root

Password =

Database = public

Option = 3

I  get, immediately, segmentation fault.

With only one, it works fine.

Is this by design?

Philip


-- 
_
-- 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] Segmentation fault

2023-08-18 Thread Joshua C. Colp
On Wed, Aug 16, 2023 at 7:48 PM Federico 
wrote:

> I tested this issue with version 13 and version 18.
>
> In res_odbc.conf, if I add a second, new data source like
>
>
>
> [asterisk]
>
> enabled=yes
>
> dsn=asterisk
>
> sanitysql => select 1
>
> isolation => read_committed
>
> username=root
>
> ;password=
>
> pre-connect => yes
>
> forcecommit => yes
>
> connect_timeout => 10
>
> negative_connection_cache => 0
>
> max_connections =>500
>
>
>
> my odbc.ini
>
> [cdr]
>
> Description = MySQL ODBC Driver Testing
>
> Driver = maria
>
> Socket = /var/run/mysqld/mysqld.sock
>
> User = root
>
> Password =
>
> Database = public
>
> Option = 3
>
>
>
>
>
> I  get, immediately, segmentation fault.
>
> With only one, it works fine.
>
> Is this by design?
>

There's nothing explicitly written to prevent such a thing within Asterisk
itself. There is no backtrace here so nothing to show where the crash
actually occurred, be it Asterisk itself or UnixODBC. If UnixODBC we're a
somewhat simple user of it, so specific configuration of it or its build
may be the source of it.

-- 
Joshua C. Colp
Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-- 
_
-- 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] Segmentation fault

2023-08-18 Thread John Harragin
>Setting "batch=yes" in your /etc/asterisk/cdr.conf file may fix this by
moving the database interaction to separate threads away from the call.

I can certainly try this, but I believe the maria-odbc-driver is what is
running as a single thread. Its been a few months since I played with this,
I think there may also be a compiled in parameter in the unixodbc regarding
threading that's default value was changed in recent years.

The only asterisk issue is why it would hang at SET(CDR_PROP(disable)=1)?
Perhaps there is an interaction where odbc_adaptive always checks an aspect
of the tables it interacts with (and needlessly when disabling cdr). I
started looking at the source - but got pulled onto another project before
I was able to determine anything, and have not revisited the issue. So for
me this isn't current but just me throwing in my recollections that may
pertain to Federico's issue.



On Thu, Aug 17, 2023 at 5:37 PM C. Maj  wrote:

> On 8/17/23 12:44, John Harragin wrote:
> > You should be able to define multiple data sources. However I'm having my
> > own issues. I have my dialplan accessing one maria database which is
> hosted
> > locally on the asterisk server then logging cdr with odbc adaptive which
> > connects to maria on a remote machine. This works fine except when the
> > remote server is out of reach the calls zombie and eventually lead to a
> > fault.
>
> Setting "batch=yes" in your /etc/asterisk/cdr.conf file may fix this by
> moving the database interaction to separate threads away from the call.
>
> --
> _
> -- 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] Segmentation fault

2023-08-17 Thread C. Maj

On 8/17/23 12:44, John Harragin wrote:

You should be able to define multiple data sources. However I'm having my
own issues. I have my dialplan accessing one maria database which is hosted
locally on the asterisk server then logging cdr with odbc adaptive which
connects to maria on a remote machine. This works fine except when the
remote server is out of reach the calls zombie and eventually lead to a
fault.


Setting "batch=yes" in your /etc/asterisk/cdr.conf file may fix this by 
moving the database interaction to separate threads away from the call.


--
_
-- 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] Segmentation fault

2023-08-17 Thread John Harragin
You should be able to define multiple data sources. However I'm having my
own issues. I have my dialplan accessing one maria database which is hosted
locally on the asterisk server then logging cdr with odbc adaptive which
connects to maria on a remote machine. This works fine except when the
remote server is out of reach the calls zombie and eventually lead to a
fault. The cli imply that the calls hang on SET(CDR_PROP(disable)=1) which
is ironic since instructing the system not to connect to the cdr server
appears to cause the problem and there may be a defect in the adaptive_odbc
implementation where it somehow still communicates with the server during
the cdr_func(disable). My experimentation suggests that the maria_odbc
driver utilizes a single thread (there are odbc directives to adjust this -
but it seems they have been superseded). Once a cdr hangs, new calls hang
on odbc calls to the local database.

In my case the remote server is 5' away and in the same switch that
Asterisk is plugged into, so it hasn't been critical to fix this - but it
may provide some clues to your situation.

On Thu, Aug 17, 2023 at 11:04 AM Federico 
wrote:

> I tested this issue with version 13 and version 18.
>
> In res_odbc.conf, if I add a second, new data source like
>
>
>
> [asterisk]
>
> enabled=yes
>
> dsn=asterisk
>
> sanitysql => select 1
>
> isolation => read_committed
>
> username=root
>
> ;password=
>
> pre-connect => yes
>
> forcecommit => yes
>
> connect_timeout => 10
>
> negative_connection_cache => 0
>
> max_connections =>500
>
>
>
> my odbc.ini
>
> [cdr]
>
> Description = MySQL ODBC Driver Testing
>
> Driver = maria
>
> Socket = /var/run/mysqld/mysqld.sock
>
> User = root
>
> Password =
>
> Database = public
>
> Option = 3
>
>
>
>
>
> I  get, immediately, segmentation fault.
>
> With only one, it works fine.
>
> Is this by design?
>
>
>
> Philip
>
>
>
>
>
>
> --
> _
> -- 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] Segmentation Fault Asterisk 13.7.0-rc2 (libmysqlclient?)

2016-01-19 Thread Matthew Murphy

I compiled Asterisk 13.5.0 (and 13.7.0-rc2), PJproject 2.4.5, and DAHDI 2.11.0 
from source. I am using Debian 8.2 and mysql is version 5.5.46.

This is a recent problem and when we went back to 13.5.0 and started seeing the 
issue, we started thinking that mysql must have updated and caused the problem. 
I think you are spot-on with your analysis.

I will do a little experimentation with mysql and see if I can isolate where 
the problem started.

Thanks,

--Matt

From: asterisk-users-boun...@lists.digium.com 
<asterisk-users-boun...@lists.digium.com> on behalf of A J Stiles 
<asterisk_l...@earthshod.co.uk>
Sent: Tuesday, January 19, 2016 7:38 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Segmentation Fault Asterisk 13.7.0-rc2
(libmysqlclient?)

On Monday 18 Jan 2016, Matthew Murphy wrote:
> Hi everyone,
>
> I am getting a segmentation fault (seems to occur randomly) using Asterisk
> 13.7.0-rc2 with PJProject 2.4.5. It appears to be something that
> libmysqlclient is complaining about when doing a query in
> ps_endpoint_id_ips. We are using Asterisk Realtime. This also seems to
> occur in Asterisk 13.5.0.

Which bits did you compile from Source Code yourself, and which bits  (if any)
are precompiled by your distribution?  What is your libmysqlclient version?

If you are using some sort of Ubuntu / Debian-based distribution, could it
possibly have done a sneaky `apt-get upgrade` behind your back?

--
AJS

Note:  Originating address only accepts e-mail from list!  If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Segmentation Fault Asterisk 13.7.0-rc2 (libmysqlclient?)

2016-01-19 Thread A J Stiles
On Monday 18 Jan 2016, Matthew Murphy wrote:
> Hi everyone,
> 
> I am getting a segmentation fault (seems to occur randomly) using Asterisk
> 13.7.0-rc2 with PJProject 2.4.5. It appears to be something that
> libmysqlclient is complaining about when doing a query in
> ps_endpoint_id_ips. We are using Asterisk Realtime. This also seems to
> occur in Asterisk 13.5.0.

Which bits did you compile from Source Code yourself, and which bits  (if any)  
are precompiled by your distribution?  What is your libmysqlclient version?

If you are using some sort of Ubuntu / Debian-based distribution, could it 
possibly have done a sneaky `apt-get upgrade` behind your back?

-- 
AJS

Note:  Originating address only accepts e-mail from list!  If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Segmentation fault with 13.5.0 / PJSIP 2.4.5

2015-10-11 Thread Joshua Colp

Recursive wrote:

Dear colleagues,

I just have experienced a segmentation fault with Asterisk 13.5.0 and
PJSIP 2.4.5. Both of them have been compiled on a standard Debian
Wheezy 64 bit. I did not apply any patch or alter the sources of
Asterisk or PJSIP in any way. Before compiling and installing, I
removed all traces of all old Asterisk and PJSIP versions from my
system very thoroughly.

The segmentation fault occurred when I was re-registering multiple
endpoints one after another as fast as I could do it manually (by
operating the respective phones) and at the same time tried to make
calls from these phones. I have attached what was happening before
the segfault in the CLI; I had started Asterisk with -vc.

Unfortunately, I can't reproduce the situation, so if we want to know
the cause of the problem, I guess it's necessary that a developer
analyzes the attachment and the respective part of the source code. I
think I am not (yet ?) so deep in Asterisk that I could help debug
the problem, but if anybody tells me what to do I am willing to
help.


Information is on the wiki[1] which details how to get a backtrace from 
a core dump which may be present. Otherwise it's unlikely that the 
problem can be located without exact details for reproducing it. If you 
can get a backtrace though you can file an issue on the issue tracker[2].


[1] https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace
[2] https://issues.asterisk.org/jira

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] Segmentation fault with 13.5.0 / PJSIP 2.4.5

2015-10-11 Thread Recursive
> 
> Information is on the wiki[1] which details how to get a backtrace from a 
> core dump which may be present. Otherwise it's unlikely that the problem can 
> be located without exact details for reproducing it. If you can get a 
> backtrace though you can file an issue on the issue tracker[2].
> 
> [1] https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace
> [2] https://issues.asterisk.org/jira
> 

Thanks for the references. I am playing around with Asterisk several months now 
and never have experienced a segfault until yesterday. I always thought the 
software would be stable (because I have heard that even large companies use 
it) and haven't compiled with the options for a core dump, so it looks like 
that we'll never know what was happening.

But I am planning to upgrade to 13.6.0 anyway, and when doing so, I'll enable 
the core dumps like shown in [1].

Regards,

Recursive

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Segmentation fault after upgrading from asterisk-10.5.0 to asterisk-11.1.2

2013-01-10 Thread Tim Nelson
First thing to *ALWAYS* check is if you have any Asterisk version specific 
modules (Fax for Asterisk, G.729, etc). Ensure these are not loaded (noload in 
modules.conf, or simply move them out of the asterisk modules dir). 

Tim Nelson 
Systems/Network Support 
Rockbochs Inc. 
(218)727-4332 x105 

- Original Message -

 After upgrading from asterisk-10.5.0 to asterisk-11.1.2, I am getting
 a Segmentation fault.

 [root@localhost asterisk-11.1.2]# asterisk -vvc
 Asterisk 11.1.2, Copyright (C) 1999 - 2012 Digium, Inc. and others.
 Created by Mark Spencer marks...@digium.com
 Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty'
 for details.
 This is free software, with components licensed under the GNU General
 Public
 License version 2 and other licenses; you are welcome to redistribute
 it under
 certain conditions. Type 'core show license' for details.
 =
 == Parsing '/etc/asterisk/asterisk.conf': Found
 == Parsing '/etc/asterisk/extconfig.conf': Found
 == Parsing '/etc/asterisk/logger.conf': Found
 == Manager registered action DBGet
 == Manager registered action DBPut
 == Manager registered action DBDel
 == Manager registered action DBDelTree
 == Registered custom function 'MESSAGE'
 == Registered custom function 'MESSAGE_DATA'
 == Registered application 'MessageSend'
 == Manager registered action MessageSend
 == Manager registered action DataGet
 == Parsing '/etc/asterisk/codecs.conf': Found
 Asterisk Dynamic Loader Starting:
 == Parsing '/etc/asterisk/modules.conf': Found
 == Parsing '/etc/asterisk/dnsmgr.conf': Found
 [2013-01-10 14:20:10] ERROR[27062]: config_options.c:512
 aco_process_config: Unable to load config file 'acl.conf'
 == Parsing '/etc/asterisk/http.conf': Found
 == Manager registered action Ping
 == Manager registered action Events
 == Manager registered action Logoff
 == Manager registered action Login
 == Manager registered action Challenge
 == Manager registered action Hangup
 == Manager registered action Status
 == Manager registered action Setvar
 == Manager registered action Getvar
 == Manager registered action GetConfig
 == Manager registered action GetConfigJSON
 == Manager registered action UpdateConfig
 == Manager registered action CreateConfig
 == Manager registered action ListCategories
 == Manager registered action Redirect
 == Manager registered action Atxfer
 == Manager registered action Originate
 == Manager registered action Command
 == Manager registered action ExtensionState
 == Manager registered action PresenceState
 == Manager registered action AbsoluteTimeout
 == Manager registered action MailboxStatus
 == Manager registered action MailboxCount
 == Manager registered action ListCommands
 == Manager registered action SendText
 == Manager registered action UserEvent
 == Manager registered action WaitEvent
 == Manager registered action CoreSettings
 == Manager registered action CoreStatus
 == Manager registered action Reload
 == Manager registered action CoreShowChannels
 == Manager registered action ModuleLoad
 == Manager registered action ModuleCheck
 == Manager registered action AOCMessage
 == Manager registered action Filter
 == Registered custom function 'AMI_CLIENT'
 == Parsing '/etc/asterisk/manager.conf': Found
 == Parsing '/etc/asterisk/manager_humbug.conf': Found
 [2013-01-10 14:20:10] NOTICE[27062]: manager.c:7545 __init_manager:
 Invalid keyword displaysystemname = yes in manager.conf
 [general]
 == Parsing '/etc/asterisk/users.conf': Found
 == Parsing '/etc/asterisk/cdr.conf': Found
 [2013-01-10 14:20:10] NOTICE[27062]: cdr.c:1613 do_reload: CDR
 logging disabled, data will be lost.
 -- CEL logging disabled.
 == Parsing '/etc/asterisk/udptl.conf': Found
 [2013-01-10 14:20:10] WARNING[27062]: udptl.c:1413
 removed_options_handler: t38faxudpec in udptl.conf is no longer
 supported; use the t38pt_udptl configuration option in sip.conf
 instead.
 [2013-01-10 14:20:10] WARNING[27062]: udptl.c:1415
 removed_options_handler: t38faxmaxdatagram in udptl.conf is no
 longer supported; value is now supplied by T.38 applications.
 Asterisk PBX Core Initializing
 Registering builtin applications:
 == Registered custom function 'EXCEPTION'
 == Registered custom function 'TESTTIME'
 [Answer]
 == Registered application 'Answer'
 [BackGround]
 == Registered application 'BackGround'
 [Busy]
 == Registered application 'Busy'
 [Congestion]
 == Registered application 'Congestion'
 [ExecIfTime]
 == Registered application 'ExecIfTime'
 [Goto]
 == Registered application 'Goto'
 [GotoIf]
 == Registered application 'GotoIf'
 [GotoIfTime]
 == Registered application 'GotoIfTime'
 [ImportVar]
 == Registered application 'ImportVar'
 [Hangup]
 == Registered application 'Hangup'
 [Incomplete]
 == Registered application 'Incomplete'
 [NoOp]
 == Registered application 'NoOp'
 [Proceeding]
 == Registered application 'Proceeding'
 [Progress]
 == Registered application 'Progress'
 

Re: [asterisk-users] Segmentation fault after upgrading from asterisk-10.5.0 to asterisk-11.1.2

2013-01-10 Thread Leandro Dardini
I see asterisk is finding res_jabber.so not compiled for your asterisk
version. As Tim just said, remove all the modules from
/usr/lib/asterisk/modules and reinstall asterisk.

[2013-01-10 14:20:10] WARNING[27062]: loader.c:804 inspect_module: Module
'res_jabber.so' was not compiled with the same compile-time options as this
version of Asterisk.

**

[2013-01-10 14:20:10] WARNING[27062]: loader.c:805 inspect_module: Module
'res_jabber.so' will not be initialized as it may cause instability.

[2013-01-10 14:20:10] WARNING[27062]: loader.c:895 load_resource: Module
'res_jabber.so' could not be loaded.


Leandro

2013/1/10 Tim Nelson tnel...@rockbochs.com

 First thing to *ALWAYS* check is if you have any Asterisk version specific
 modules (Fax for Asterisk, G.729, etc). Ensure these are not loaded (noload
 in modules.conf, or simply move them out of the asterisk modules dir).

 Tim Nelson
 Systems/Network Support
 Rockbochs Inc.
 (218)727-4332 x105

 --

 After upgrading from asterisk-10.5.0 to asterisk-11.1.2, I am getting a
 Segmentation fault.



 [root@localhost asterisk-11.1.2]# asterisk -vvc

 Asterisk 11.1.2, Copyright (C) 1999 - 2012 Digium, Inc. and others.

 Created by Mark Spencer marks...@digium.com

 Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for
 details.

 This is free software, with components licensed under the GNU General
 Public

 License version 2 and other licenses; you are welcome to redistribute it
 under

 certain conditions. Type 'core show license' for details.

 =

   == Parsing '/etc/asterisk/asterisk.conf': Found

   == Parsing '/etc/asterisk/extconfig.conf': Found

   == Parsing '/etc/asterisk/logger.conf': Found

   == Manager registered action DBGet

   == Manager registered action DBPut

   == Manager registered action DBDel

   == Manager registered action DBDelTree

   == Registered custom function 'MESSAGE'

   == Registered custom function 'MESSAGE_DATA'

   == Registered application 'MessageSend'

   == Manager registered action MessageSend

   == Manager registered action DataGet

   == Parsing '/etc/asterisk/codecs.conf': Found

 Asterisk Dynamic Loader Starting:

   == Parsing '/etc/asterisk/modules.conf': Found

   == Parsing '/etc/asterisk/dnsmgr.conf': Found

 [2013-01-10 14:20:10] ERROR[27062]: config_options.c:512
 aco_process_config: Unable to load config file 'acl.conf'

   == Parsing '/etc/asterisk/http.conf': Found

   == Manager registered action Ping

   == Manager registered action Events

   == Manager registered action Logoff

   == Manager registered action Login

   == Manager registered action Challenge

   == Manager registered action Hangup

   == Manager registered action Status

   == Manager registered action Setvar

   == Manager registered action Getvar

   == Manager registered action GetConfig

   == Manager registered action GetConfigJSON

   == Manager registered action UpdateConfig

   == Manager registered action CreateConfig

   == Manager registered action ListCategories

   == Manager registered action Redirect

   == Manager registered action Atxfer

   == Manager registered action Originate

   == Manager registered action Command

   == Manager registered action ExtensionState

   == Manager registered action PresenceState

   == Manager registered action AbsoluteTimeout

   == Manager registered action MailboxStatus

   == Manager registered action MailboxCount

   == Manager registered action ListCommands

   == Manager registered action SendText

   == Manager registered action UserEvent

   == Manager registered action WaitEvent

   == Manager registered action CoreSettings

   == Manager registered action CoreStatus

   == Manager registered action Reload

   == Manager registered action CoreShowChannels

   == Manager registered action ModuleLoad

   == Manager registered action ModuleCheck

   == Manager registered action AOCMessage

   == Manager registered action Filter

   == Registered custom function 'AMI_CLIENT'

   == Parsing '/etc/asterisk/manager.conf': Found

   == Parsing '/etc/asterisk/manager_humbug.conf': Found

 [2013-01-10 14:20:10] NOTICE[27062]: manager.c:7545 __init_manager:
 Invalid keyword displaysystemname = yes in manager.conf [general]

   == Parsing '/etc/asterisk/users.conf': Found

   == Parsing '/etc/asterisk/cdr.conf': Found

 [2013-01-10 14:20:10] NOTICE[27062]: cdr.c:1613 do_reload: CDR logging
 disabled, data will be lost.

 -- CEL logging disabled.

   == Parsing '/etc/asterisk/udptl.conf': Found

 [2013-01-10 14:20:10] WARNING[27062]: udptl.c:1413
 removed_options_handler: t38faxudpec in udptl.conf is no longer supported;
 use the t38pt_udptl configuration option in sip.conf instead.

 [2013-01-10 14:20:10] WARNING[27062]: udptl.c:1415
 removed_options_handler: t38faxmaxdatagram in udptl.conf is no longer
 supported; value is now supplied by T.38 

Re: [asterisk-users] Segmentation Fault

2011-08-03 Thread Paul Belanger

On 11-08-03 02:01 AM, Richard Zulu wrote:

I have used gdb so that I can perform a backtrace however the program
executes and exits without a stack thus not helpful.

Any help is appreciated!


https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace

--
Paul Belanger
Digium, Inc. | Software Developer
twitter: pabelanger | IRC: pabelanger (Freenode)
Check us out at: http://digium.com  http://asterisk.org

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] segmentation fault

2008-05-05 Thread Jeff Peeler

- Rilawich Ango [EMAIL PROTECTED] wrote:

 Segmentation fault occurs after executing the following cmd.
 Dial(SIP/[EMAIL PROTECTED]|35|Ttr)
 
 Is it a bug and how to fix it?
 
 Below is the core dump message converted by gdb.
 
 #0  0x068be1ad in realtime_peer (newpeername=0x1b37844 10.20.0.1,
 sin=0x0)
 at chan_sip.c:2547
 #1  0x068becb3 in find_peer (peer=0x1b37844 10.20.0.1, sin=0x0,
 realtime=1)
 at chan_sip.c:2676

It is a bug, appears to be the same problem as bug 12362, and the fix is in the 
pending 1.4.20 release as well as the 1.4 branch in subversion.

Jeff

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

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


Re: [asterisk-users] Segmentation fault

2007-05-16 Thread Per Jessen
Adam Lovegrove wrote:

 Asterisk is crashing about once a day with segmentation fault.
 
 This is the error..
 
 /usr/sbin/safe_asterisk: line 111: 3482 Segmentation fault (core
 dumped) nice –n $PRIORITY ${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS}
/dev/${TTY} /dev/${TTY}
 Asterisk ended with exit status 139
 Asterisk exited on signal 11.
 Automatically restarting Asterisk.
 mpg123: no process killed
 
 Is this information helpful?
 Can anyone suggest anything?
 Can I provide anymore useful information for troubleshooting?

I think it would be useful if you could describe what the system is
doing when it crashes - if you know.  Also, the core dump will probably
help someone diagnose the problem.  (but don't send it to the list :-)



/Per Jessen, Zürich

-- 
ENIDAN Technologies GmbH - managed email security. 
Starting at SFr1/month/user - http://www.spamchek.ch/

___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-users] Segmentation fault on Asteriskstartup:res_config_mysql.so problem?

2006-09-27 Thread kjcsb





Did you do a make  make install for add-ons BEFORE doing
so for asterisk?
If so try asterisk first and when all is installed install
add-ons.

--

I tried a make clean  make  make install for asterisk and then for 
asterisk-addons but am still getting the segmentation fault on asterisk 
startup. rm res_config_mysql.so allows Asterisk to start.



Still trying...
mkdir /usr/lib/asterisk.backup.20060928

mv /usr/lib/asterisk/* /usr/lib/asterisk.backup.20060928

mkdir /usr/include/asterisk.backup.20060928

mv /usr/include/asterisk/* /usr/include/asterisk.backup.20060928/



cd /usr/src/asterisk-1.2.12.1

make clean  make  make install

cd /usr/src/asterisk-addons-1.2.4

perl -p -i.bak -e 
's/CFLAGS.*D_GNU_SOURCE/CFLAGS+=-D_GNU_SOURCE\nCFLAGS+=-DMYSQL_LOGUNIQUEID/' 
Makefile


make clean  make  make install



Install logs look fine.


STARTING ASTERISK
/usr/sbin/safe_asterisk: line 40:  6631 Segmentation fault  (core 
dumped) asterisk ${CLIARGS} ${ASTARGS} /dev/${TTY} /dev/${TTY}

Asterisk ended with exit status 139
Asterisk exited on signal 11.
Automatically restarting Asterisk.
/usr/sbin/safe_asterisk: line 40:  6690 Segmentation fault  (core 
dumped) asterisk ${CLIARGS} ${ASTARGS} /dev/${TTY} /dev/${TTY}

Asterisk ended with exit status 139
Asterisk exited on signal 11.
Automatically restarting Asterisk.

rm res_config_mysql.so allows Asterisk to start.

Any advice appreciated.

Cameron 


___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-users] Segmentation fault on Asterisk startup:res_config_mysql.so problem?

2006-09-26 Thread kjcsb



Did you do a make  make install for add-ons BEFORE doing
so for asterisk?
If so try asterisk first and when all is installed install
add-ons.

--

I tried a make clean  make  make install for asterisk and then for 
asterisk-addons but am still getting the segmentation fault on asterisk 
startup. rm res_config_mysql.so allows Asterisk to start.


Any other suggestions appreciated.

Cameron 


___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-users] Segmentation fault on Asterisk startup: res_config_mysql.so problem?

2006-09-24 Thread Michiel van Baak
On 16:04, Sun 24 Sep 06, kjcsb wrote:
 When Asterisk starts I get a Segmentation fault
 /usr/sbin/safe_asterisk: line 40: 30548 Segmentation fault  (core 
 dumped) asterisk ${CLIARGS} ${ASTARGS} /dev/${TTY} /dev/${TTY}
 Asterisk ended with exit status 139
 Asterisk exited on signal 11.
 
 If I remove /usr/lib/asterisk/modules/res_config_mysql.so Asterisk starts 
 normally.
 
 tail /var/log/asterisk/full.log
 Sep 24 15:46:05 VERBOSE[30608] logger.c:   == Parsing 
 '/etc/asterisk/res_mysql.conf': Sep 24 15:46:05 VERBOSE[30608] logger.c: 
 == Parsing '/etc/asterisk/res_mysql.conf': Found
 Sep 24 15:46:05 WARNING[30608] res_config_mysql.c: MySQL RealTime: No 
 database socket found, using '/tmp/mysql.sock' as default.
 Sep 24 15:46:05 DEBUG[30608] res_config_mysql.c: MySQL RealTime Host: 
 127.0.0.1
 Sep 24 15:46:05 DEBUG[30608] res_config_mysql.c: MySQL RealTime Port: 3306
 Sep 24 15:46:05 DEBUG[30608] res_config_mysql.c: MySQL RealTime User: root
 Sep 24 15:46:05 DEBUG[30608] res_config_mysql.c: MySQL RealTime Password: 
 password
 
 vi /etc/asterisk/res_mysql.conf
 [general]
 dbhost = 127.0.0.1
 dbname = asterisk
 dbuser = root
 dbpass = password
 dbport = 3306
 ;dbsock = /var/lib/mysql/mysql.sock
 
 If I uncomment the dbsock line I get the same result (although the database 
 socket warning is not displayed in the log file).
 
 I am using MySQL for CDR logging so I don't think it's a MySQL problem.
 
 Asterisk 1.2.12.1
 Asterisk addon 1.2.4
 
 When I install Asterisk I receive a warning:
 Your Asterisk modules directory, located at /usr/lib/asterisk/modules 
 contains modules that were not installed by this version of Asterisk.
 
 However I cleared out the /usr/lib/asterisk/modules directory before make 
 clean  make  make install for both add-ons and asterisk so I'm a bit 
 mystified by that.
 
Did you do a make  make install for add-ons BEFORE doing
so for asterisk?
If so try asterisk first and when all is installed install
add-ons.

-- 

Michiel van Baak
[EMAIL PROTECTED]
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD

Why is it drug addicts and computer afficionados are both called users?

___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [Asterisk-Users] segmentation fault

2006-02-13 Thread Justin Tunney
On Mon, 13 Feb 2006 10:02:28 -0500, Patrick Fortin [EMAIL PROTECTED]  
wrote:



Hi

Asterisk died this morning with this message

safe_asterisk: line 83:  6828 Segmentation fault  (core dumped)  
asterisk ${CLIARGS} ${ASTARGS} 1/dev/${TTY} /dev/${TTY}


Any idea what is the problem ?


You should post this on the bugtracker (bugs.digium.com) along with a back  
trace.  See asterisk-sources/doc/README.backtrace for info on how to do a  
backtrace.


  Justin Tunney
___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [Asterisk-Users] segmentation fault

2006-02-13 Thread Sascha




I had the same problem when I did an SVN of the latest version of the
1.2 branch this past Friday (2/10) and re-made zaptel, libpri and
asterisk. I don't if someone goofed when updating the supposed stable
Asterisk 1.2 branch or what. But here's what I did to fix it...

I'm using Asterisk at Home. To get back to a working system I first
made a backup of everything through the AMP interface. I made backups
of my zaptel.conf and zapata.conf files to a separate location. Then, I
downloaded the tar version of AAH 2.5 (instead of the ISO). I followed
the instructions to untar and install AAH. Because AAH doesn't really
have a 100% working restore feature, what I had to do was:
1) go ahead and use the restore function in the AMP interface -
restoring the backup I had just made.
2) Go through every single configuration window within the AMP
interface and click 'submit' to re-apply the settings one by one. This
really only takes like 10 minutes.
3) Then I clicked the red bar along the top to apply the change in
settings.
4) In the process of installing itself, AAH will blow away your
zaptel.conf and zapata.conf files that you spent so long just getting
right. That's why you made backup copies of those to another directory.
;) Restore those files manually.
5) In order to get my T1 actually functioning I had to not only
shutdown the server but pull the plug on it for a few minutes and then
plug it back in/hit the on button.

Not sure if you're using AAH as well - but hope this helps someone else
who ended up in the same position as I did late Friday night.

Best of Luck,
Sascha



On Mon, 13 Feb 2006 10:02:28 -0500, Patrick Fortin wrote:


Hi
  
  
Asterisk died this morning with this message
  
  
safe_asterisk: line 83: 6828 Segmentation fault (core dumped)
asterisk ${CLIARGS} ${ASTARGS} 1/dev/${TTY}
/dev/${TTY}
  
  
Any idea what is the problem ?
  


You should post this on the bugtracker (bugs.digium.com) along with
a back trace. See asterisk-sources/doc/README.backtrace for info on
how to do a backtrace.


 Justin Tunney


___
--Bandwidth and Colocation provided by Easynews.com --

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


RE: [Asterisk-Users] Segmentation fault {Writer given gnu-lashing}

2005-02-20 Thread Race Vanderdecken
Ouch,

Do you know how to use gdb, the Gnu Debugger?

That will give you a clue as to where the segmentation fault is coming
from.

Good, then let me move on to the insults and ranting.

1. Why are you running on Slackware? 
Are you trying to prove a point or just enjoy being frustrated?
Open Source is like Broad Spectrum Pesticide, it works but
your results may vary and you may end up killing your lawn.

2. The dearth of information of value in your posting is amazing.
I went to http://www.automated.it/guidetoasterisk.htm (a good
start, good effort Mr. Powell.) As stated above, you life might be
easier using FEDORA, not an endorsement of Red Hat, rather a plea for a
unified Linux base (please don't say Debian, self-installing the
micro-chip in my head was easier.) (it is the new Anti-AMD Intel Rantino
chip for those interested.)

3. I've never installed or used Asterisk before, so I do not know much
about it.
1. What is your goal with installing Asterisk? 
2. Do you have Digium or other hardware installed?
3. Are you running SIP/H323/MGCP?
4. Did you modify any files?

4. What was the last thing on the *CLI screen before the seg fault?

Come on Mr. Caesar throw us a bone here.

All Hail,

Race The Tyrant Vanderdecken

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Julius
Schwartzenberg
Sent: Sunday, February 20, 2005 11:47 AM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] Segmentation fault

Hi,
I'm trying to set up a fresh system for use with Asterisk. I've never 
installed or used Asterisk before, so I do not know much about it.
I'm using Slackware Linux 10.1 and followed this guide:
http://www.automated.it/guidetoasterisk.htm
When I try to run asterisk though, at the point the guide suggests to
try 
it, I get 'Segmentation fault'.
Any idea what to do? Are there any known problems with Slackware and 
Asterisk?
Thanks in advance,
Julius
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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


Re: [Asterisk-Users] Segmentation fault {Writer given gnu-lashing}

2005-02-20 Thread Brian Capouch
Race Vanderdecken wrote:
Good, then let me move on to the insults and ranting.
1. Why are you running on Slackware? 
	Are you trying to prove a point or just enjoy being frustrated?
	Open Source is like Broad Spectrum Pesticide, it works but
your results may vary and you may end up killing your lawn.

Why do you not follow Ann Landers simple adage, Better to keep one's 
mouth shut and be thought a fool, than to open it and remove any doubt?

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


Re: [Asterisk-Users] Segmentation fault {Writer given gnu-lashing}

2005-02-20 Thread Andrew Kohlsmith
On February 20, 2005 01:11 pm, Race Vanderdecken wrote:
 1. Why are you running on Slackware?
  Are you trying to prove a point or just enjoy being frustrated?
  Open Source is like Broad Spectrum Pesticide, it works but
 your results may vary and you may end up killing your lawn.

Got a problem with Slackware?  It works *very* well with Asterisk.

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


RE: [Asterisk-Users] Segmentation fault {Writer given gnu-lashing}

2005-02-20 Thread Race Vanderdecken
Because I am more civilized?

By the way, it was Samuel Clemens's fool... quote, who stole it from
Mr. Lincoln, who stole if from Confucius (another educational Tyrant.)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian
Capouch
Sent: Sunday, February 20, 2005 1:26 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Segmentation fault {Writer given
gnu-lashing}

Race Vanderdecken wrote:
 Good, then let me move on to the insults and ranting.
 
 1. Why are you running on Slackware? 
   Are you trying to prove a point or just enjoy being frustrated?
   Open Source is like Broad Spectrum Pesticide, it works but
 your results may vary and you may end up killing your lawn.
 

Why do you not follow Ann Landers simple adage, Better to keep one's 
mouth shut and be thought a fool, than to open it and remove any doubt?

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


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


Re: [Asterisk-Users] Segmentation fault {Writer given gnu-lashing}

2005-02-20 Thread Paul
Brian Capouch wrote:
Race Vanderdecken wrote:
Good, then let me move on to the insults and ranting.
1. Why are you running on Slackware? Are you trying to prove a 
point or just enjoy being frustrated?
Open Source is like Broad Spectrum Pesticide, it works but
your results may vary and you may end up killing your lawn.

Why do you not follow Ann Landers simple adage, Better to keep one's 
mouth shut and be thought a fool, than to open it and remove any doubt?

Or maybe a double fool because he also disrespected Debian GNU/Linux in 
his reply. Is ignorance really bliss?

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


RE: [Asterisk-Users] Segmentation fault {Writer given gnu-lashing}

2005-02-20 Thread Race Vanderdecken
I have no problem with Slackware,

But when you are learning to drive a car you should first try a Chevy
with an automatic transmission first before strapping on a 6 speed
Ferrari.

Humor helps in teaching and getting a person to step out of a rut they
are having a problem in and gives them a chance to rethink what might be
going on.

Remember, my goal is to reduce the number of variables in the system. 

Race



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew
Kohlsmith
Sent: Sunday, February 20, 2005 1:39 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [Asterisk-Users] Segmentation fault {Writer given
gnu-lashing}

On February 20, 2005 01:11 pm, Race Vanderdecken wrote:
 1. Why are you running on Slackware?
  Are you trying to prove a point or just enjoy being frustrated?
  Open Source is like Broad Spectrum Pesticide, it works but
 your results may vary and you may end up killing your lawn.

Got a problem with Slackware?  It works *very* well with Asterisk.

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


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


Re: [Asterisk-Users] Segmentation fault {Writer given gnu-lashing}

2005-02-20 Thread Bruno Hertz
On Sun, 2005-02-20 at 13:51 -0500, Paul wrote:

 Or maybe a double fool because he also disrespected Debian GNU/Linux in 
 his reply. 

*And* recommended Fedora, which makes it triple. I just dumped FC3 and
replaced it with Debian because Fedora's kernels constantly gave me
issues, e.g. with proprietary AVM kernel drivers which didn't even work.
On the other hand, no probs whatsoever with Debian.



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


RE: [Asterisk-Users] Segmentation fault {Writer given gnu-lashing}

2005-02-20 Thread Jim Van Meggelen
[EMAIL PROTECTED] wrote:
 I have no problem with Slackware,

Me neither. I learned Linux with Slack. Found it to be extremely
friendly. And that was 10 years ago. Last time I chacked, it was still
friendly (and not at all GUI, unless you want it served that way)

 But when you are learning to drive a car you should first try
 a Chevy with an automatic transmission first before strapping
 on a 6 speed Ferrari.

Popular opinion holds that people who learn to drive standard first
generally end up being better drivers. And why wouldn't you want to
learn on a Ferrari since you can get one for free!?!

 Humor helps in teaching and getting a person to step out of a
 rut they are having a problem in and gives them a chance to
 rethink what might be going on.

Ya, but humour should be dispensed carefully, lest offence be given.

 Remember, my goal is to reduce the number of variables in the system.

The problem I see with Fedora is that you can install it successfully
without learning anything about Linux. Slackware is rather good for
learning Linux, because it is friendly and helpful, but still expects
you to make the decisions. I'd argue that a familiarity with the shell
is going to be essential for even a basic Asterisk install. It's not a
pre-qualifier so much as an essential skill.

LOL! You're just bored and are trolling for a holy war, eh? Well, I
guess we gotta shake off these Febraury blah's somehow.

GENTOO IS FOR WANNABE NEWBIES!!! (that oughta stir things up)


--
Jim Van Meggelen
[EMAIL PROTECTED]


 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Andrew Kohlsmith
 Sent: Sunday, February 20, 2005 1:39 PM
 To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
 Subject: Re: [Asterisk-Users] Segmentation fault {Writer
 given gnu-lashing}
 
 On February 20, 2005 01:11 pm, Race Vanderdecken wrote:
 1. Why are you running on Slackware?
  Are you trying to prove a point or just enjoy being frustrated? 
 Open Source is like Broad Spectrum Pesticide, it works but your
 results may vary and you may end up killing your lawn.
 
 Got a problem with Slackware?  It works *very* well with Asterisk.

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.1.0 - Release Date: 18/02/2005
 

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


Re: [Asterisk-Users] Segmentation fault {Writer given gnu-lashing}

2005-02-20 Thread Julius Schwartzenberg
Thanks a lot for your message.
Race Vanderdecken schreef:
Ouch,
Do you know how to use gdb, the Gnu Debugger?
That will give you a clue as to where the segmentation fault is coming
from.
No, I once used it being instructed exactly by a developer to solve a 
problem in Dosemu, but I never did anything else with it.
I understand that I need to recompile Asterisk with debugging support. 
Could you give me some pointers on what to do next?

Good, then let me move on to the insults and ranting.
1. Why are you running on Slackware? 
	Are you trying to prove a point or just enjoy being frustrated?
	Open Source is like Broad Spectrum Pesticide, it works but
your results may vary and you may end up killing your lawn.
I'm using a pretty old system and I have good experiences with Slackware 
 on other systems. Here are the specs of the system I'm using:
IBM/Cyrix PR-200 (@150MHz), 64MB RAM, two HDs which are combined ~2GB.

2. The dearth of information of value in your posting is amazing.
I went to http://www.automated.it/guidetoasterisk.htm (a good
start, good effort Mr. Powell.) As stated above, you life might be
easier using FEDORA, not an endorsement of Red Hat, rather a plea for a
unified Linux base (please don't say Debian, self-installing the
micro-chip in my head was easier.) (it is the new Anti-AMD Intel Rantino
chip for those interested.)
I've never used Fedora on older systems, but I thought it wouldn't run 
very well on the system I'm using.
(Good thing you don't have an Anti-IBM chip ;)
 	
3. I've never installed or used Asterisk before, so I do not know much
about it.
	1. What is your goal with installing Asterisk? 
We have about 8 telephones that use the plain telephone system to call 
each other and externally. Some of them are analog and others are 
digital (ISDN). I've also still got the old ISDN card from before we had 
ADSL. (Eicon Diva 2.01 ISA, seems to work with the hisax module.)
Since I read that Asterisk worked with any ISDN adapter that was 
supported by ISDN4Linux, I thought it might be possible to hook it up in 
such a way that the phones could call the Asterisk system and that 
Asterisk would forward the call to a computer (and maybe even over the 
internet). Also the other way around would be neat.

	2. Do you have Digium or other hardware installed?
No. Only the ISDN adapter.
	3. Are you running SIP/H323/MGCP?
No. I've experimented with SIP before, but only with a softphone, using 
an account from SIPPhone.com. It would be nice if I could call my 
Asterisk system using SIP!

	4. Did you modify any files?
None from Asterisk.
4. What was the last thing on the *CLI screen before the seg fault?	
The command to run Asterisk. It immediatly gives the error when I try to 
run it.

Is Asterisk able to do, what I thought it would do or am I just messing?
Come on Mr. Caesar throw us a bone here.
All Hail,
Race The Tyrant Vanderdecken
Thanks again,
Julius
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation fault {Writer given gnu-lashing}

2005-02-20 Thread Steven Critchfield
On Sun, 2005-02-20 at 22:59 +0100, Julius Schwartzenberg wrote:

 I'm using a pretty old system and I have good experiences with Slackware 
   on other systems. Here are the specs of the system I'm using:
 IBM/Cyrix PR-200 (@150MHz), 64MB RAM, two HDs which are combined ~2GB.

Here is your trouble. The Cyrix chip is what is the newer Via chipsets
are based on. It isn't a real pentium chipset and needs to get tuned
down via the CFLAGS to 586 or lower. 

You will probably hit the limits of that machine really quickly. You may
want to find a slightly better machine for testing.
-- 
Steven Critchfield [EMAIL PROTECTED]

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


Re: [Asterisk-Users] Segmentation Fault after Digitnetwork X100P install

2005-01-22 Thread Rich Adamson
   Shouldn't you contact your vendor for support and not a different
   vendors support channel?
   
  As far I know, although Digium hosts the asterisk-users list and
  supports the Asterisk development, Asterisk is still a GPL open source
  project and asterisk-list is not a Digium support channel.  Asking
  questions about a vendor other than Digium is no difference than
  asking questions about Digium hardware.
 
 Asking about a knock off vendor is grating on many peoples nerves.
 Asking about a problem caused by a knock of vendor is VERY grating. Why
 should those who are directly supporting Digium by helping to run this
 list as well as Digium be charged with having to do support for other
 companies? 

I'm not the OP and do agree with supporting digium where possible, 
but it would appear that digium is no longer selling the x100p card
(or at least its removed from the web site). Given some folks only
need/want/aford a single fxo port, is this actually considered a
knock-off at this time?


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


Re: [Asterisk-Users] Segmentation Fault after Digitnetwork X100P install

2005-01-22 Thread Steven Critchfield
On Sat, 2005-01-22 at 04:38 -0600, Rich Adamson wrote:
Shouldn't you contact your vendor for support and not a different
vendors support channel?

   As far I know, although Digium hosts the asterisk-users list and
   supports the Asterisk development, Asterisk is still a GPL open source
   project and asterisk-list is not a Digium support channel.  Asking
   questions about a vendor other than Digium is no difference than
   asking questions about Digium hardware.
  
  Asking about a knock off vendor is grating on many peoples nerves.
  Asking about a problem caused by a knock of vendor is VERY grating. Why
  should those who are directly supporting Digium by helping to run this
  list as well as Digium be charged with having to do support for other
  companies? 
 
 I'm not the OP and do agree with supporting digium where possible, 
 but it would appear that digium is no longer selling the x100p card
 (or at least its removed from the web site). Given some folks only
 need/want/aford a single fxo port, is this actually considered a
 knock-off at this time?

Isn't a TDM01b a single port FXO? It also has the benefit of being able
to scale up a little bit before having slot/interupt problems. 

This really is an edge case. If the original vendor had to do the
support, they couldn't sell the parts at such a low price point. If the
price rose to the amount to offer proper support, there wouldn't be much
distinction between them and Digium. Digium would then likely get the
sale as it is a feel good action.
-- 
Steven Critchfield [EMAIL PROTECTED]

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


Re: [Asterisk-Users] Segmentation Fault after Digitnetwork X100Pinstall

2005-01-22 Thread Henry Devito
- Original Message - 
From: Steven Critchfield [EMAIL PROTECTED]
To: Asterisk Users Mailing List - Non-Commercial Discussion 
asterisk-users@lists.digium.com
Sent: Saturday, January 22, 2005 4:54 AM
Subject: Re: [Asterisk-Users] Segmentation Fault after Digitnetwork 
X100Pinstall


On Sat, 2005-01-22 at 04:38 -0600, Rich Adamson wrote:
   Shouldn't you contact your vendor for support and not a different
   vendors support channel?
  
  As far I know, although Digium hosts the asterisk-users list and
  supports the Asterisk development, Asterisk is still a GPL open 
  source
  project and asterisk-list is not a Digium support channel.  Asking
  questions about a vendor other than Digium is no difference than
  asking questions about Digium hardware.

 Asking about a knock off vendor is grating on many peoples nerves.
 Asking about a problem caused by a knock of vendor is VERY grating. Why
 should those who are directly supporting Digium by helping to run this
 list as well as Digium be charged with having to do support for other
 companies?

I'm not the OP and do agree with supporting digium where possible,
but it would appear that digium is no longer selling the x100p card
(or at least its removed from the web site). Given some folks only
need/want/aford a single fxo port, is this actually considered a
knock-off at this time?
Isn't a TDM01b a single port FXO? It also has the benefit of being able
to scale up a little bit before having slot/interupt problems.
This really is an edge case. If the original vendor had to do the
support, they couldn't sell the parts at such a low price point. If the
price rose to the amount to offer proper support, there wouldn't be much
distinction between them and Digium. Digium would then likely get the
sale as it is a feel good action.
--
Steven Critchfield [EMAIL PROTECTED]
___
Just for FYI Digit Networks offers 30 days of support for the clone X100P. 
Matter of fact their support is great.  I purchased 4 cards from them to set 
up testing in my lab.   I wouldn't use the clones in production use, but for 
some home users, testing and such they are inexpensive and well just 
inexpensive.  Why spend $133 on a card for a low end machine when you can 
spend $30.  Not everyone has a budget for tinkering around and home use.

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


Re: [Asterisk-Users] Segmentation Fault after Digitnetwork X100P install

2005-01-21 Thread Asterisk List
On Thu, 20 Jan 2005 22:41:08 -0600, Steven Critchfield
[EMAIL PROTECTED] wrote:
 
 Shouldn't you contact your vendor for support and not a different
 vendors support channel?
 
As far I know, although Digium hosts the asterisk-users list and
supports the Asterisk development, Asterisk is still a GPL open source
project and asterisk-list is not a Digium support channel.  Asking
questions about a vendor other than Digium is no difference than
asking questions about Digium hardware.

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


Re: [Asterisk-Users] Segmentation Fault after Digitnetwork X100P install

2005-01-21 Thread Steven Critchfield
On Fri, 2005-01-21 at 09:55 -0800, Asterisk List wrote:
 On Thu, 20 Jan 2005 22:41:08 -0600, Steven Critchfield
 [EMAIL PROTECTED] wrote:
  
  Shouldn't you contact your vendor for support and not a different
  vendors support channel?
  
 As far I know, although Digium hosts the asterisk-users list and
 supports the Asterisk development, Asterisk is still a GPL open source
 project and asterisk-list is not a Digium support channel.  Asking
 questions about a vendor other than Digium is no difference than
 asking questions about Digium hardware.

Asking about a knock off vendor is grating on many peoples nerves.
Asking about a problem caused by a knock of vendor is VERY grating. Why
should those who are directly supporting Digium by helping to run this
list as well as Digium be charged with having to do support for other
companies? 

arghhh. insert standard clone rant/
-- 
Steven Critchfield [EMAIL PROTECTED]

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


Re: [Asterisk-Users] Segmentation Fault after Digitnetwork X100P install

2005-01-20 Thread Henry Devito
Just download 1.0.3, don't use the voicepet scripts.  they are versions 0.7 
and 0.9 of  *.  If it is a true clone from digit networks it will work fine 
with 1.0.3.  I just set up 3 different machines with the cards from digit 
networks.

Henry
- Original Message - 
From: Dave Green [EMAIL PROTECTED]
To: Asterisk Users Mailing List - Non-Commercial Discussion 
asterisk-users@lists.digium.com
Sent: Thursday, January 20, 2005 9:57 PM
Subject: [Asterisk-Users] Segmentation Fault after Digitnetwork X100P 
install


I've just installed a Digitnetworks X100P clone in my * server and run the 
install script for the voicepet-single-x100p tarball. The install appeared 
to run OK with modprobe wcfxo successful and the ztcfg reporting Channel 
01: FXS Kewlstart (Default) (Slaves: 01).

When I try to start * though I get a segmentation fault after loading 
res_features.so. I discovered that the Digitnetwork install script seems 
to modify all of the .conf files, leaving .conf.old copies. I tried moving 
the .conf.old files back to .conf but am still get the seg fault.

Has anyone else run into this kind of problem ?   The * server has been 
running fine up until now.

I can't get it to show the * version right now, but compiled from CVS 
around 11 Jan.

Dave


CAUTION:
This message and any attachments contain privileged and confidential
information.  If you are not the intended recipient of this message, you
are hereby notified that any use, dissemination, distribution or
reproduction of this message is prohibited. If you have received this
message in error please notify the sender immediately via email and then
destroy this message and any attachments.
Any views expressed in this message are those of the individual sender
and may not necessarily reflect the views of Winstone Pulp International
Ltd.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation Fault after Digitnetwork X100P install

2005-01-20 Thread Dave Green
Henry Devito wrote:
Just download 1.0.3, don't use the voicepet scripts.  they are 
versions 0.7 and 0.9 of  *.  If it is a true clone from digit networks 
it will work fine with 1.0.3.  I just set up 3 different machines with 
the cards from digit networks.

Henry
Yes, thanks for that. After posting I wondered if the script installed 
the whole * package, so I recompiled/installed the cvs I'd downloaded 
and after a bit more fiddling have managed ot get it working.

Dave

CAUTION:
This message and any attachments contain privileged and confidential
information.  If you are not the intended recipient of this message, you
are hereby notified that any use, dissemination, distribution or
reproduction of this message is prohibited. If you have received this
message in error please notify the sender immediately via email and then
destroy this message and any attachments.
Any views expressed in this message are those of the individual sender
and may not necessarily reflect the views of Winstone Pulp International
Ltd.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation Fault after Digitnetwork X100Pinstall

2005-01-20 Thread Paul Fielding
Shouldn't you contact your vendor for support and not a different
vendors support channel?
Um, I didn't think this was a Digium support channel.  I thought this was an
Asterisk Users channel.  Seems to me the question should be fair game.
(Sorry I don't have an answer to your question, though, Dave).
regards,
Paul
- Original Message - 
From: Steven Critchfield [EMAIL PROTECTED]
To: Asterisk Users Mailing List - Non-Commercial Discussion 
asterisk-users@lists.digium.com
Sent: Thursday, January 20, 2005 9:41 PM
Subject: Re: [Asterisk-Users] Segmentation Fault after Digitnetwork 
X100Pinstall


On Fri, 2005-01-21 at 16:57 +1300, Dave Green wrote:
I've just installed a Digitnetworks X100P clone in my * server and run
the install script for the voicepet-single-x100p tarball. The install
appeared to run OK with modprobe wcfxo successful and the ztcfg
reporting Channel 01: FXS Kewlstart (Default) (Slaves: 01).
When I try to start * though I get a segmentation fault after loading
res_features.so. I discovered that the Digitnetwork install script seems
to modify all of the .conf files, leaving .conf.old copies. I tried
moving the .conf.old files back to .conf but am still get the seg fault.
Shouldn't you contact your vendor for support and not a different
vendors support channel?
Another company with retarded disclaimers sending to a KNOWN publicly
archived mailing list. Fix the problem or be ridiculed regularly for the
stupidity.

CAUTION:
This message and any attachments contain privileged and confidential
information.  If you are not the intended recipient of this message, you
are hereby notified that any use, dissemination, distribution or
reproduction of this message is prohibited. If you have received this
message in error please notify the sender immediately via email and then
destroy this message and any attachments.
Any views expressed in this message are those of the individual sender
and may not necessarily reflect the views of Winstone Pulp International
Ltd.
--
Steven Critchfield [EMAIL PROTECTED]
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users 
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] segmentation fault on asterisk startup

2004-07-13 Thread andrewg
 
 Ok, just removed this last module works, asterisk is starting without 
 errors anymore, but I wanted to use ILBC codec so it's importan for me.
 
 Can anyone help me, getting this to work?
 

Start off with running ulimit -c unlimited before you start asterisk. Once it 
crashes, type gdb /path/to/asterisk core 

From there, enter the following:

bt
x/5i $eip 
info registers
info threads

and quit out. After doing that, you might want to save the output of 
uname -a 
cat /proc/cpuinfo 

and send it to the list.

(Note for other people/developers, perhaps something similar to samba's panic 
action might be useful, which automates a lot of this stuff might come in 
use.)

Hope this helps,
Andrew Griffiths
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] segmentation fault on asterisk startup

2004-07-13 Thread Andreas 'TheChaos' Groll
[EMAIL PROTECTED] wrote:
Start off with running ulimit -c unlimited before you start asterisk. Once it 
crashes, type gdb /path/to/asterisk core 

From there, enter the following:
bt
x/5i $eip 
info registers
info threads

and quit out. After doing that, you might want to save the output of 
uname -a 
cat /proc/cpuinfo 

and send it to the list.
(Note for other people/developers, perhaps something similar to samba's panic 
action might be useful, which automates a lot of this stuff might come in 
use.)

Hope this helps,
Andrew Griffiths
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
 

Ok I did.
uname -a gave me this:
Linux chaospbx 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 unknown
cat /proc/cpuinfo:
processor   : 0
vendor_id   : CyrixInstead
cpu family  : 6
model   : 1
model name  : 6x86MX 2.5x Core/Bus Clock
stepping: 4
cpu MHz : 166.405
fdiv_bug: no
hlt_bug : no
f00f_bug: no
coma_bug: yes
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu de tsc msr cx8 pge cmov mmx cyrix_arr
bogomips: 331.77
of course I think you wanted the gdb output, I hope that's correct:
(gdb) bt
#0  0x3aeb in ?? ()
#1  0x405e2752 in iLBC_encode (bytes=0x810fda0 ÿ ÿú\017`\022\021¢G\\214,
   block=0xb47c, iLBCenc_inst=0x810e868) at iLBC_encode.c:93
#2  0x405e0eea in lintoilbc_frameout (tmp=0x810e868) at codec_ilbc.c:196
#3  0x0805ca2f in calc_cost (t=0x405e9240) at translate.c:238
#4  0x0805ce4a in ast_register_translator (t=0x405e9240) at translate.c:299
#5  0x405e0fef in load_module () at codec_ilbc.c:263
#6  0x080551ce in ast_load_resource (resource_name=0x80defdb 
codec_ilbc.so)
   at loader.c:312
#7  0x08055636 in load_modules () at loader.c:407
#8  0x08084136 in main (argc=2, argv=0xbe04) at asterisk.c:1485
(gdb) x/5i $eip
0x3aeb: Cannot access memory at address 0x3aeb
(gdb) info registers
eax0xbfffd924   -1073751772
ecx0xbfffd974   -1073751692
edx0x3  3
ebx0x4001e89c   1073866908
esp0xbfffd450   0xbfffd450
ebp0xbfffd99c   0xbfffd99c
esi0x4012819c   1074954652
edi0x40231a9d   1076042397
eip0x3aeb   0x3aeb
eflags 0x10282  66178
cs 0x23 35
ss 0x2b 43
ds 0x2b 43
es 0x2b 43
fs 0x2b 43
gs 0x2b 43
fctrl  0x37f895
fstat  0x122290
ftag   0x   65535
fiseg  0x23 35
fioff  0x405e4895   1079920789
foseg  0x2b 43
fooff  0xbfffd920   -1073751776
fop0x11c284
xmm0   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
   -nan(0x7f), -nan(0x7f), -nan(0x7f)}}
xmm1   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
   -nan(0x7f), -nan(0x7f), -nan(0x7f)}}
xmm2   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
   -nan(0x7f), -nan(0x7f), -nan(0x7f)}}
xmm3   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
   -nan(0x7f), -nan(0x7f), -nan(0x7f)}}
xmm4   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
   -nan(0x7f), -nan(0x7f), -nan(0x7f)}}
xmm5   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
   -nan(0x7f), -nan(0x7f), -nan(0x7f)}}
xmm6   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
   -nan(0x7f), -nan(0x7f), -nan(0x7f)}}
xmm7   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
   -nan(0x7f), -nan(0x7f), -nan(0x7f)}}
mxcsr  0x1f80   8064
orig_eax   0x   -1
(gdb) info threads
* 1 process 8318  0x3aeb in ?? ()

Perhaps it is important to mention, that I got the bad modules again 
from a friend. His modules work within my asterisk with no errors.
Very confusing for me. I still hope you can help.

Thanks


signature.asc
Description: OpenPGP digital signature


Re: [Asterisk-Users] segmentation fault on asterisk startup

2004-07-13 Thread andrewg
On Tue, Jul 13, 2004 at 01:24:18PM +0200, Andreas 'TheChaos' Groll wrote:
 [EMAIL PROTECTED] wrote:
 

 Start off with running ulimit -c unlimited before you start asterisk. Once 
 it crashes, type gdb /path/to/asterisk core 
 
 From there, enter the following:
 
 bt
 x/5i $eip 
 info registers
 info threads
 
 and quit out. After doing that, you might want to save the output of 
 uname -a 
 cat /proc/cpuinfo 
 
 and send it to the list.
 

 vendor_id   : CyrixInstead
 model name  : 6x86MX 2.5x Core/Bus Clock
 cpu MHz : 166.405
 flags   : fpu de tsc msr cx8 pge cmov mmx cyrix_arr
 bogomips: 331.77

Is anyone else running asterisk with iLBC without problems on cyrix chips?
IIRC, they where meant to be a cheaper version, so initially it made me think 
that it might of been gcc emmitting a bad instruction for that cpu.

 of course I think you wanted the gdb output, I hope that's correct:

Looks good :)

 
 (gdb) bt
 #0  0x3aeb in ?? ()
 #1  0x405e2752 in iLBC_encode (bytes=0x810fda0 ? ??\017`\022\021?G\\214,
block=0xb47c, iLBCenc_inst=0x810e868) at iLBC_encode.c:93
 #2  0x405e0eea in lintoilbc_frameout (tmp=0x810e868) at codec_ilbc.c:196
 #3  0x0805ca2f in calc_cost (t=0x405e9240) at translate.c:238
 #4  0x0805ce4a in ast_register_translator (t=0x405e9240) at translate.c:299
 #5  0x405e0fef in load_module () at codec_ilbc.c:263
 #6  0x080551ce in ast_load_resource (resource_name=0x80defdb 
 codec_ilbc.so)
at loader.c:312
 #7  0x08055636 in load_modules () at loader.c:407
 #8  0x08084136 in main (argc=2, argv=0xbe04) at asterisk.c:1485
 (gdb) x/5i $eip
 0x3aeb: Cannot access memory at address 0x3aeb

Hmmm, looks like saved EIP got overwritten at some stage. I'm not familar with
the translation code, but it might be possible that its buffer was exceeded,
based upon seeing the iLBC_encode passed with a parameter on the stack. I 
don't have the code handy at the moment, after I grab it I'll have
a look over it and reply to this message.

 (gdb) info registers
 eax0xbfffd924   -1073751772
 ecx0xbfffd974   -1073751692
 edx0x3  3
 ebx0x4001e89c   1073866908
 esp0xbfffd450   0xbfffd450
 ebp0xbfffd99c   0xbfffd99c
 esi0x4012819c   1074954652
 edi0x40231a9d   1076042397
 eip0x3aeb   0x3aeb
 eflags 0x10282  66178
 cs 0x23 35
 ss 0x2b 43
 ds 0x2b 43
 es 0x2b 43
 fs 0x2b 43
 gs 0x2b 43
 fctrl  0x37f895
 fstat  0x122290
 ftag   0x   65535
 fiseg  0x23 35
 fioff  0x405e4895   1079920789
 foseg  0x2b 43
 fooff  0xbfffd920   -1073751776
 fop0x11c284
 xmm0   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
-nan(0x7f), -nan(0x7f), -nan(0x7f)}}
 xmm1   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
-nan(0x7f), -nan(0x7f), -nan(0x7f)}}
 xmm2   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
-nan(0x7f), -nan(0x7f), -nan(0x7f)}}
 xmm3   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
-nan(0x7f), -nan(0x7f), -nan(0x7f)}}
 xmm4   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
-nan(0x7f), -nan(0x7f), -nan(0x7f)}}
 xmm5   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
-nan(0x7f), -nan(0x7f), -nan(0x7f)}}
 xmm6   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
-nan(0x7f), -nan(0x7f), -nan(0x7f)}}
 xmm7   {f = {0x0, 0x0, 0x0, 0x0}}   {f = {-nan(0x7f),
-nan(0x7f), -nan(0x7f), -nan(0x7f)}}
 mxcsr  0x1f80   8064
 orig_eax   0x   -1
 (gdb) info threads
 * 1 process 8318  0x3aeb in ?? ()
 
 Perhaps it is important to mention, that I got the bad modules again 
 from a friend. His modules work within my asterisk with no errors.
 Very confusing for me. I still hope you can help.
 
 Thanks


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] segmentation fault on asterisk startup

2004-07-13 Thread andrewg
Hmm, block is allocated near the top of the stack.

Ack, I don't like the iLBC code for the quick 3 minutes or so I looked at it, but it 
wouldn't surprise me if it was overwriting more than it should be on the stack.

Well, I'll hand this off to the developers / people who want to spend longer looking 
over the code (I just happen to be handy with a debugger occasionally).

 #0  0x3aeb in ?? ()
 #1  0x405e2752 in iLBC_encode (bytes=0x810fda0 ? ??\017`\022\021?G\\214,
block=0xb47c, iLBCenc_inst=0x810e868) at iLBC_encode.c:93
 #2  0x405e0eea in lintoilbc_frameout (tmp=0x810e868) at codec_ilbc.c:196
 #3  0x0805ca2f in calc_cost (t=0x405e9240) at translate.c:238
 #4  0x0805ce4a in ast_register_translator (t=0x405e9240) at translate.c:299
 #5  0x405e0fef in load_module () at codec_ilbc.c:263
 #6  0x080551ce in ast_load_resource (resource_name=0x80defdb 
 codec_ilbc.so)
at loader.c:312
 #7  0x08055636 in load_modules () at loader.c:407
 #8  0x08084136 in main (argc=2, argv=0xbe04) at asterisk.c:1485
 (gdb) x/5i $eip
 0x3aeb: Cannot access memory at address 0x3aeb
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] segmentation fault on asterisk startup

2004-07-13 Thread Andrew Kohlsmith
On Tuesday 13 July 2004 08:22, [EMAIL PROTECTED] wrote:
 Ack, I don't like the iLBC code for the quick 3 minutes or so I looked at
 it, but it wouldn't surprise me if it was overwriting more than it should
 be on the stack.

Why wouldn't it surprise you?  I have a PRI and have 10 or 12 iLBC codecs 
running during peak times.  I don't understand how you can get from I don't 
like the sound of iLBC to iLBC must be written poorly.

-A.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] segmentation fault on asterisk startup

2004-07-13 Thread Andrew Kohlsmith
On Tuesday 13 July 2004 08:55, [EMAIL PROTECTED] wrote:
 You missed my point. I'm talking about how it does data handling with
 various loops and memcpys etc. I don't care about the sound quality, nor do
 I care about how well written it is, I'm just making the observation based
 on my previous experience based on previous auditing of software.

My apologies; I read code as codec and though you were making analysis of 
the code by listening to the codec.  

Regards,
Andrew
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation Fault on reload (gdb output included)

2003-09-24 Thread Tais M. Hansen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday 23 September 2003 19:04, jerk face wrote:
 I keep getting segmentation faults when I do a reload.

Do what Critchfield and Pycko told you to do, but I'm betting you're using 
chan_h323 with a gatekeeper (it's a known bug I think). That's what's killing 
my Asterisk on reload:

(gdb) bt
#0  0x40571b3e in PSocket::os_select(int, fd_set*, fd_set*, fd_set*, 
PScalarArrayint const, PTimeInterval const) ()
   from /usr/lib/libpt_linux_x86_r.so.1.5.2
#1  0x4056aef2 in PSocket::Select(PSocket::SelectList, PSocket::SelectList, 
PSocket::SelectList, PTimeInterval const) ()
   from /usr/lib/libpt_linux_x86_r.so.1.5.2
#2  0x4056a8c5 in PSocket::Select(PSocket::SelectList, PTimeInterval const) 
() from /usr/lib/libpt_linux_x86_r.so.1.5.2
#3  0x40c380e7 in H323TransportUDP::DiscoverGatekeeper(H323Gatekeeper, 
H323RasPDU, H323TransportAddress const) ()
   from /usr/lib/libh323_linux_x86_r.so.1.12.2
#4  0x40c48ebf in H323Gatekeeper::StartDiscovery(H323TransportAddress const) 
() from /usr/lib/libh323_linux_x86_r.so.1.12.2
#5  0x40c48cfc in H323Gatekeeper::DiscoverByAddress(H323TransportAddress 
const) () from /usr/lib/libh323_linux_x86_r.so.1.12.2
#6  0x40bfd59c in H323EndPoint::SetGatekeeper(PString const, H323Transport*) 
() from /usr/lib/libh323_linux_x86_r.so.1.12.2
#7  0x403ac4d4 in h323_set_gk (gatekeeper_discover=0, gatekeeper=0x403b4dc0 
195.135.216.2, secret=0x403b4e40 ) at ast_h323.cpp:1005
#8  0x403a5231 in reload () at chan_h323.c:1643
#9  0x080554c2 in ast_module_reload () at loader.c:159
#10 0x0806d10a in handle_reload (fd=153, argc=1, argv=0xbd9ff61c) at cli.c:105
#11 0x0806cefa in ast_cli_command (fd=153, s=0x0) at cli.c:1006
#12 0x08085770 in netconsole (vconsole=0x80bcc28) at asterisk.c:193
#13 0x40023463 in pthread_detach () from /lib/libpthread.so.0

- -- 
Regards,
Tais M. Hansen
ComX Networks
Tel: +45-70257474
Fax: +45-70257374
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/cWlx2TEAILET3McRAhjnAKCCJI93ty4OxpGZwIMNlchRaWiiTwCeNk/Y
HVqmHi76DIZsofmMF46Bp1w=
=gIC7
-END PGP SIGNATURE-

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation Fault on reload (gdb output included)

2003-09-24 Thread jerk face
Ok, here is the real gdb output.

This GDB was configured as
i586-mandrake-linux-gnu...
Core was generated by `asterisk'.
Program terminated with signal 11, Segmentation fault.
...
...
...

Loaded symbols for
/usr/lib/asterisk/modules/cdr_csv.so
Reading symbols from
/usr/lib/asterisk/modules/app_setcidnum.so...done.
Loaded symbols for
/usr/lib/asterisk/modules/app_setcidnum.so
#0  0x401519fc in mallopt () from /lib/i686/libc.so.6

Ok .. so what does this mean?

Thank you in advance.

--- Martin Pycko [EMAIL PROTECTED] wrote:
 actually
 
 gdb /usr/sbin/asterisk core.6044, sorry
 
 On Tue, 23 Sep 2003, jerk face wrote:
 
  I keep getting segmentation faults when I do a
 reload.
 
  Here are the core file outputs from gdb:
  (I have three of them and they produce the same
  output)
 
  (gdb) core core.6044
  Core was generated by `asterisk'.
  Program terminated with signal 11, Segmentation
 fault.
  #0  0x401519fc in ?? ()
 
 
  I have no idea what that means, but if somebody
 could
  point me in the right direction, that would be
 great.
 
  Thank you for your time.
 
  __
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
  http://sitebuilder.yahoo.com
  ___
  Asterisk-Users mailing list
  [EMAIL PROTECTED]
 

http://lists.digium.com/mailman/listinfo/asterisk-users
 
 
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]

http://lists.digium.com/mailman/listinfo/asterisk-users


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation Fault on reload (gdb output included)

2003-09-24 Thread Patrick
On Wed, 2003-09-24 at 15:41, jerk face wrote:
 Ok, here is the real gdb output.
 
 This GDB was configured as
 i586-mandrake-linux-gnu...
 Core was generated by `asterisk'.
 Program terminated with signal 11, Segmentation fault.
 ...
 ...
 ...
 
 Loaded symbols for
 /usr/lib/asterisk/modules/cdr_csv.so
 Reading symbols from
 /usr/lib/asterisk/modules/app_setcidnum.so...done.
 Loaded symbols for
 /usr/lib/asterisk/modules/app_setcidnum.so
 #0  0x401519fc in mallopt () from /lib/i686/libc.so.6
 
 Ok .. so what does this mean?
 
 Thank you in advance.
 

I started experiencing segfaults a while back too. Both after a reload
and during startup when loading res_adsi.so. What fixed it for me was
changing -O6 in all Makefiles to -O2. I'm using Red Hat 9 and it has
been said that Red Hat does some funky stuff with their gcc so that may
be causing it to segfault when compiled with -O6.

Regards,
Patrick

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation Fault on reload (gdb output included)

2003-09-24 Thread Steven Critchfield
On Wed, 2003-09-24 at 08:41, jerk face wrote:
 Ok, here is the real gdb output.
 
 This GDB was configured as
 i586-mandrake-linux-gnu...
 Core was generated by `asterisk'.
 Program terminated with signal 11, Segmentation fault.
 ...
 ...
 ...
 
 Loaded symbols for
 /usr/lib/asterisk/modules/cdr_csv.so
 Reading symbols from
 /usr/lib/asterisk/modules/app_setcidnum.so...done.
 Loaded symbols for
 /usr/lib/asterisk/modules/app_setcidnum.so
 #0  0x401519fc in mallopt () from /lib/i686/libc.so.6
 
 Ok .. so what does this mean?
 
 Thank you in advance.


This is where you type 'bt' and find out how it made it to that frame.


 --- Martin Pycko [EMAIL PROTECTED] wrote:
  actually
  
  gdb /usr/sbin/asterisk core.6044, sorry
  
  On Tue, 23 Sep 2003, jerk face wrote:
  
   I keep getting segmentation faults when I do a
  reload.
  
   Here are the core file outputs from gdb:
   (I have three of them and they produce the same
   output)
  
   (gdb) core core.6044
   Core was generated by `asterisk'.
   Program terminated with signal 11, Segmentation
  fault.
   #0  0x401519fc in ?? ()
  
  
   I have no idea what that means, but if somebody
  could
   point me in the right direction, that would be
  great.
  
   Thank you for your time.
  
   __
   Do you Yahoo!?
   Yahoo! SiteBuilder - Free, easy-to-use web site
  design software
   http://sitebuilder.yahoo.com
   ___
   Asterisk-Users mailing list
   [EMAIL PROTECTED]
  
 
 http://lists.digium.com/mailman/listinfo/asterisk-users
  
  
  ___
  Asterisk-Users mailing list
  [EMAIL PROTECTED]
 
 http://lists.digium.com/mailman/listinfo/asterisk-users
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Steven Critchfield [EMAIL PROTECTED]

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation Fault on reload (gdb output included)

2003-09-24 Thread jerk face
I am running Mandrake 9.1 if that makes a difference.


--- Patrick [EMAIL PROTECTED] wrote:
 On Wed, 2003-09-24 at 15:41, jerk face wrote:
  Ok, here is the real gdb output.
  
  This GDB was configured as
  i586-mandrake-linux-gnu...
  Core was generated by `asterisk'.
  Program terminated with signal 11, Segmentation
 fault.
  ...
  ...
  ...
  
  Loaded symbols for
  /usr/lib/asterisk/modules/cdr_csv.so
  Reading symbols from
  /usr/lib/asterisk/modules/app_setcidnum.so...done.
  Loaded symbols for
  /usr/lib/asterisk/modules/app_setcidnum.so
  #0  0x401519fc in mallopt () from
 /lib/i686/libc.so.6
  
  Ok .. so what does this mean?
  
  Thank you in advance.
  
 
 I started experiencing segfaults a while back too.
 Both after a reload
 and during startup when loading res_adsi.so. What
 fixed it for me was
 changing -O6 in all Makefiles to -O2. I'm using Red
 Hat 9 and it has
 been said that Red Hat does some funky stuff with
 their gcc so that may
 be causing it to segfault when compiled with -O6.
 
 Regards,
 Patrick
 
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]

http://lists.digium.com/mailman/listinfo/asterisk-users


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation Fault on reload (gdb output included)

2003-09-24 Thread jerk face
Sorry about that:
bt gives the following output:

#0  0x401519fc in mallopt () from /lib/i686/libc.so.6
#1  0x40150c61 in malloc () from /lib/i686/libc.so.6
#2  0x40157dd0 in strdup () from /lib/i686/libc.so.6
#3  0x0805603b in cfg_process (tmp=0x80ea890,
_tmpc=0x47a6a26c, _last=0x47a6a270, buf=0x65747865
Address 0x65747865 out of bounds,
lineno=183, configfile=0x458d083d
extensions.conf, includelevel=0) at config.c:57
#4  0x08055ac2 in __ast_load (configfile=0x458d083d
extensions.conf, tmp=0x80ea890, _tmpc=0x47a6a26c,
_last=0x47a6a270, includelevel=0)
at config.c:731
#5  0x08055edd in ast_load (configfile=0x8 Address
0x8 out of bounds) at config.c:766
#6  0x458cf815 in pbx_load_module () at
pbx_config.c:1543
#7  0x458ccdaf in reload () at pbx_config.c:1683
#8  0x08055372 in ast_module_reload () at loader.c:159
#9  0x0806b8ba in handle_reload (fd=44, argc=1,
argv=0x47a6a5fc) at cli.c:105
#10 0x0806b6aa in ast_cli_command (fd=44, s=0x8
Address 0x8 out of bounds) at cli.c:1006
#11 0x08083c80 in netconsole (vconsole=0x80b9c28) at
asterisk.c:192
#12 0x40021811 in pthread_start_thread () from
/lib/i686/libpthread.so.0

I see extensions.conf mentioned a couple of times. 
Could this be caused by a configuration error?


--- Steven Critchfield [EMAIL PROTECTED] wrote:
 On Wed, 2003-09-24 at 08:41, jerk face wrote:
  Ok, here is the real gdb output.
  
  This GDB was configured as
  i586-mandrake-linux-gnu...
  Core was generated by `asterisk'.
  Program terminated with signal 11, Segmentation
 fault.
  ...
  ...
  ...
  
  Loaded symbols for
  /usr/lib/asterisk/modules/cdr_csv.so
  Reading symbols from
  /usr/lib/asterisk/modules/app_setcidnum.so...done.
  Loaded symbols for
  /usr/lib/asterisk/modules/app_setcidnum.so
  #0  0x401519fc in mallopt () from
 /lib/i686/libc.so.6
  
  Ok .. so what does this mean?
  
  Thank you in advance.
 
 
 This is where you type 'bt' and find out how it made
 it to that frame.
 
 
  --- Martin Pycko [EMAIL PROTECTED] wrote:
   actually
   
   gdb /usr/sbin/asterisk core.6044, sorry
   
   On Tue, 23 Sep 2003, jerk face wrote:
   
I keep getting segmentation faults when I do a
   reload.
   
Here are the core file outputs from gdb:
(I have three of them and they produce the
 same
output)
   
(gdb) core core.6044
Core was generated by `asterisk'.
Program terminated with signal 11,
 Segmentation
   fault.
#0  0x401519fc in ?? ()
   
   
I have no idea what that means, but if
 somebody
   could
point me in the right direction, that would be
   great.
   
Thank you for your time.
   
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web
 site
   design software
http://sitebuilder.yahoo.com
   
 ___
Asterisk-Users mailing list
[EMAIL PROTECTED]
   
  
 

http://lists.digium.com/mailman/listinfo/asterisk-users
   
   
   ___
   Asterisk-Users mailing list
   [EMAIL PROTECTED]
  
 

http://lists.digium.com/mailman/listinfo/asterisk-users
  
  
  __
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
  http://sitebuilder.yahoo.com
  ___
  Asterisk-Users mailing list
  [EMAIL PROTECTED]
 

http://lists.digium.com/mailman/listinfo/asterisk-users
 -- 
 Steven Critchfield [EMAIL PROTECTED]
 
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]

http://lists.digium.com/mailman/listinfo/asterisk-users


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation Fault on reload (gdb output included)

2003-09-23 Thread Martin Pycko
gdb /usr/src/asterisk core.6044

then 'bt'

Martin

On Tue, 23 Sep 2003, jerk face wrote:

 I keep getting segmentation faults when I do a reload.

 Here are the core file outputs from gdb:
 (I have three of them and they produce the same
 output)

 (gdb) core core.6044
 Core was generated by `asterisk'.
 Program terminated with signal 11, Segmentation fault.
 #0  0x401519fc in ?? ()


 I have no idea what that means, but if somebody could
 point me in the right direction, that would be great.

 Thank you for your time.

 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation Fault on reload (gdb output included)

2003-09-23 Thread Martin Pycko
actually

gdb /usr/sbin/asterisk core.6044, sorry

On Tue, 23 Sep 2003, jerk face wrote:

 I keep getting segmentation faults when I do a reload.

 Here are the core file outputs from gdb:
 (I have three of them and they produce the same
 output)

 (gdb) core core.6044
 Core was generated by `asterisk'.
 Program terminated with signal 11, Segmentation fault.
 #0  0x401519fc in ?? ()


 I have no idea what that means, but if somebody could
 point me in the right direction, that would be great.

 Thank you for your time.

 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation Fault on reload (gdb output included)

2003-09-23 Thread Steven Critchfield
On Tue, 2003-09-23 at 12:04, jerk face wrote:
 I keep getting segmentation faults when I do a reload.
 
 Here are the core file outputs from gdb:
 (I have three of them and they produce the same
 output)
 
 (gdb) core core.6044

you need to run gdb like follows
gdb core.6044 `which asterisk`

This lets gdb load the asterisk binary with all the symbols in it to
understand the core file. Then if you could issue the command 'bt'
inside of gdb it will give a nice listing of functions called to get to
the point the crash happened.

 Core was generated by `asterisk'.
 Program terminated with signal 11, Segmentation fault.
 #0  0x401519fc in ?? ()
 
 
 I have no idea what that means, but if somebody could
 point me in the right direction, that would be great.
 
 Thank you for your time.
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Steven Critchfield  [EMAIL PROTECTED]

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Segmentation fault due to SIP registration NUMBER 2

2003-09-14 Thread Senad Jordanovic
what did the trick for me is:

1.
Use codec statements: allow=SOMECODEC)
2.
bind * to an IP instead of bind=0.0.0.0 (bind=IP_OF_YOUR_*_BOX)


Ta


Senad

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of mattf
Sent: 11 September 2003 21:30
To: '[EMAIL PROTECTED]'
Subject: RE: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2


Hello,

Don't know if this is related but I just got a segmentation fault today
while trying to register my new SNOM200 phone:


*CLI
*CLI NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'sip:[EMAIL PROTECTED]' failed for '10.10.10.14'
NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'Matt Florell sip:[EMAIL PROTECTED]' failed for
'10.10.10.14'
NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'Matt Florell sip:[EMAIL PROTECTED]' failed for
'10.10.10.14'
NOTICE[1125329600]: File chan_sip.c, Line 4651 (handle_request): Failed to
authenticate user sip:[EMAIL PROTECTED];tag=3g5l65mbnk for SUBSCRIBE
NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'Matt Florell sip:[EMAIL PROTECTED]' failed for
'10.10.10.14'
NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'Matt Florell sip:[EMAIL PROTECTED]' failed for
'10.10.10.14'
NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'Matt Florell sip:[EMAIL PROTECTED]' failed for
'10.10.10.14'
NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'Matt Florell sip:[EMAIL PROTECTED]' failed for
'10.10.10.14'
NOTICE[1125329600]: File chan_sip.c, Line 4651 (handle_request): Failed to
authenticate user sip:[EMAIL PROTECTED];tag=3g5l65mbnk for SUBSCRIBE
Segmentation fault


then I started asterisk back up and it registered and then gave me another
error:

*CLI
*CLI -- Registered SIP 'mattf2' at 10.10.10.14 port 5060 expires 3600
*CLI NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'Matt Florell sip:[EMAIL PROTECTED]' failed for
'10.10.10.14'


Any idea what causes this? could I have possibly just configured the Snom
incorrectly to cause this?

Thanks,

MATT---




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 4:01 PM
To: [EMAIL PROTECTED]
Subject: RE: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2


Is there any chance that you could send a tcpdump of the system tying to
make a connection?  

Open up two terminal sessions to your server.  In one, type tcpdump -w
foo.  In the other session, start asterisk and let it sit there hanging
for a few minutes.  Stop Ctrl-C in the terminal session running tcpdump
and send me the file foo that was created by tcpdump.  You might want
to gzip it if it's large and send it to me off list.

-Original Message-
From: Senad Jordanovic [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 11, 2003 2:48 PM
To: [EMAIL PROTECTED]
Subject: RE: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2


Tim, thanks for your answer.

I tried, all of the options you suggested, and still the same... *
hangs. It is interesting that it does the same think, when it tries to
register my FWD account and there are no problems with registering IAX
account with NuFone.

I can make iconnect/fwd/iax calls with no major problems.

Any other suggestions?

Senad



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: 11 September 2003 20:14
To: [EMAIL PROTECTED]
Subject: RE: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2


I assume that from your previous post that you are using iconnect

Is your register line in the format:

Register = 18005551212:[EMAIL PROTECTED]/18005551212

I've had good luck using the IP address vs. the fully qualified
hostname.  Remember that the register line goes in the [general] section
of sip.conf.  Also, are you using the latest CVS release of *?

-Original Message-
From: Senad Jordanovic [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 1:52 PM
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2



I am really desperate to have any help on this problem below
as it prevents us from making any further progress.

Is there anyone out there who can help?


Thanks

Senad



-
Hi,

Allowing registration to iconnect by using
register = XXX in sip.conf file does not start *,
but instead produces segmentation fault and * hangs.

Commenting out register =  allows * to start with
no problems.

Anyone know why is this happening

RE: [Asterisk-Users] Segmentation fault due to SIP registration NUMBER 2

2003-09-11 Thread tim.mcqueen
I assume that from your previous post that you are using iconnect

Is your register line in the format:

Register = 18005551212:[EMAIL PROTECTED]/18005551212

I've had good luck using the IP address vs. the fully qualified
hostname.  Remember that the register line goes in the [general] section
of sip.conf.  Also, are you using the latest CVS release of *?

-Original Message-
From: Senad Jordanovic [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 11, 2003 1:52 PM
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2



I am really desperate to have any help on this problem below
as it prevents us from making any further progress.

Is there anyone out there who can help?


Thanks

Senad



-
Hi,

Allowing registration to iconnect by using
register = XXX in sip.conf file does not start *,
but instead produces segmentation fault and * hangs.

Commenting out register =  allows * to start with
no problems.

Anyone know why is this happening?


--

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Segmentation fault due to SIP registration NUMBER 2

2003-09-11 Thread Senad Jordanovic
Tim, thanks for your answer.

I tried, all of the options you suggested, and still the same... * hangs.
It is interesting that it does the same think, when it tries to register my
FWD account and there are no problems with registering IAX account with
NuFone.

I can make iconnect/fwd/iax calls with no major problems.

Any other suggestions?

Senad



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: 11 September 2003 20:14
To: [EMAIL PROTECTED]
Subject: RE: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2


I assume that from your previous post that you are using iconnect

Is your register line in the format:

Register = 18005551212:[EMAIL PROTECTED]/18005551212

I've had good luck using the IP address vs. the fully qualified
hostname.  Remember that the register line goes in the [general] section
of sip.conf.  Also, are you using the latest CVS release of *?

-Original Message-
From: Senad Jordanovic [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 1:52 PM
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2



I am really desperate to have any help on this problem below
as it prevents us from making any further progress.

Is there anyone out there who can help?


Thanks

Senad



-
Hi,

Allowing registration to iconnect by using
register = XXX in sip.conf file does not start *,
but instead produces segmentation fault and * hangs.

Commenting out register =  allows * to start with
no problems.

Anyone know why is this happening?


--

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Segmentation fault due to SIP registration NUMBER 2

2003-09-11 Thread tim.mcqueen
Is there any chance that you could send a tcpdump of the system tying to
make a connection?  

Open up two terminal sessions to your server.  In one, type tcpdump -w
foo.  In the other session, start asterisk and let it sit there hanging
for a few minutes.  Stop Ctrl-C in the terminal session running tcpdump
and send me the file foo that was created by tcpdump.  You might want
to gzip it if it's large and send it to me off list.

-Original Message-
From: Senad Jordanovic [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 11, 2003 2:48 PM
To: [EMAIL PROTECTED]
Subject: RE: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2


Tim, thanks for your answer.

I tried, all of the options you suggested, and still the same... *
hangs. It is interesting that it does the same think, when it tries to
register my FWD account and there are no problems with registering IAX
account with NuFone.

I can make iconnect/fwd/iax calls with no major problems.

Any other suggestions?

Senad



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: 11 September 2003 20:14
To: [EMAIL PROTECTED]
Subject: RE: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2


I assume that from your previous post that you are using iconnect

Is your register line in the format:

Register = 18005551212:[EMAIL PROTECTED]/18005551212

I've had good luck using the IP address vs. the fully qualified
hostname.  Remember that the register line goes in the [general] section
of sip.conf.  Also, are you using the latest CVS release of *?

-Original Message-
From: Senad Jordanovic [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 1:52 PM
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2



I am really desperate to have any help on this problem below
as it prevents us from making any further progress.

Is there anyone out there who can help?


Thanks

Senad



-
Hi,

Allowing registration to iconnect by using
register = XXX in sip.conf file does not start *,
but instead produces segmentation fault and * hangs.

Commenting out register =  allows * to start with
no problems.

Anyone know why is this happening?


--

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Segmentation fault due to SIP registration N UMBER 2

2003-09-11 Thread mattf
Hello,

Don't know if this is related but I just got a segmentation fault today
while trying to register my new SNOM200 phone:


*CLI
*CLI NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'sip:[EMAIL PROTECTED]' failed for '10.10.10.14'
NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'Matt Florell sip:[EMAIL PROTECTED]' failed for
'10.10.10.14'
NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'Matt Florell sip:[EMAIL PROTECTED]' failed for
'10.10.10.14'
NOTICE[1125329600]: File chan_sip.c, Line 4651 (handle_request): Failed to
authenticate user sip:[EMAIL PROTECTED];tag=3g5l65mbnk for SUBSCRIBE
NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'Matt Florell sip:[EMAIL PROTECTED]' failed for
'10.10.10.14'
NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'Matt Florell sip:[EMAIL PROTECTED]' failed for
'10.10.10.14'
NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'Matt Florell sip:[EMAIL PROTECTED]' failed for
'10.10.10.14'
NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'Matt Florell sip:[EMAIL PROTECTED]' failed for
'10.10.10.14'
NOTICE[1125329600]: File chan_sip.c, Line 4651 (handle_request): Failed to
authenticate user sip:[EMAIL PROTECTED];tag=3g5l65mbnk for SUBSCRIBE
Segmentation fault


then I started asterisk back up and it registered and then gave me another
error:

*CLI
*CLI -- Registered SIP 'mattf2' at 10.10.10.14 port 5060 expires 3600
*CLI NOTICE[1125329600]: File chan_sip.c, Line 4713 (handle_request):
Registration from 'Matt Florell sip:[EMAIL PROTECTED]' failed for
'10.10.10.14'


Any idea what causes this? could I have possibly just configured the Snom
incorrectly to cause this?

Thanks,

MATT---




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 4:01 PM
To: [EMAIL PROTECTED]
Subject: RE: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2


Is there any chance that you could send a tcpdump of the system tying to
make a connection?  

Open up two terminal sessions to your server.  In one, type tcpdump -w
foo.  In the other session, start asterisk and let it sit there hanging
for a few minutes.  Stop Ctrl-C in the terminal session running tcpdump
and send me the file foo that was created by tcpdump.  You might want
to gzip it if it's large and send it to me off list.

-Original Message-
From: Senad Jordanovic [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 11, 2003 2:48 PM
To: [EMAIL PROTECTED]
Subject: RE: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2


Tim, thanks for your answer.

I tried, all of the options you suggested, and still the same... *
hangs. It is interesting that it does the same think, when it tries to
register my FWD account and there are no problems with registering IAX
account with NuFone.

I can make iconnect/fwd/iax calls with no major problems.

Any other suggestions?

Senad



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: 11 September 2003 20:14
To: [EMAIL PROTECTED]
Subject: RE: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2


I assume that from your previous post that you are using iconnect

Is your register line in the format:

Register = 18005551212:[EMAIL PROTECTED]/18005551212

I've had good luck using the IP address vs. the fully qualified
hostname.  Remember that the register line goes in the [general] section
of sip.conf.  Also, are you using the latest CVS release of *?

-Original Message-
From: Senad Jordanovic [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 1:52 PM
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Segmentation fault due to SIP registration
NUMBER 2



I am really desperate to have any help on this problem below
as it prevents us from making any further progress.

Is there anyone out there who can help?


Thanks

Senad



-
Hi,

Allowing registration to iconnect by using
register = XXX in sip.conf file does not start *,
but instead produces segmentation fault and * hangs.

Commenting out register =  allows * to start with
no problems.

Anyone know why is this happening?


--

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman

Re: [Asterisk-Users] segmentation fault with asterisk and OH323

2003-08-04 Thread Rattana BIV
It's OK.
I change my oh323.conf file and I don't have segmantation fault anymore.

Thanks
Rattana

- Original Message -
From: Rattana BIV [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 01, 2003 3:42 PM
Subject: Re: [Asterisk-Users] segmentation fault with asterisk and OH323


 By my phone I call H323 client (Netmeeting) I can talk.
 Everything is OK.

 But when I hangup I have the segmentation fault.
 These are the last asterisk log before the segmentation fault:

 -- Called 192.168.1.200
 -- H323:193 answered CAPI[contr1/26]/1
 DEBUG[23569]: File channel.c, Line 2145 (ast_channel_bridge): Didn't get a
 frame from channel: CAPI[contr1/26]/1
 DEBUG[23569]: File channel.c, Line 2213 (ast_channel_bridge): Bridge stops
 bridging channels CAPI[contr1/26]/1 and H323:193


 Something strange is, when I call the phone from netmeeting it's work
 perfectly.

 What do you think ?
 (you can see my oh323.conf in attach file)


 Rattana


 - Original Message -
 From: Michael Manousos [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, August 01, 2003 3:07 PM
 Subject: Re: [Asterisk-Users] segmentation fault with asterisk and OH323


  Rattana BIV wrote:
   Hi,
  
   I got a segmantation fault When I call to computer (h323) from phone.
  
   I use asterisk-oh323 0.5.4 and chan_capi.0.2.2 drivers.
 
  More info (config files, screen log, backtrace of core file) is needed.
 
  
   Someone know where the problem ?
  
  
   Regards
   Rattana
 
  Michael.
 
  ___
  Asterisk-Users mailing list
  [EMAIL PROTECTED]
  http://lists.digium.com/mailman/listinfo/asterisk-users


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] segmentation fault with asterisk and OH323

2003-08-01 Thread Michael Manousos
Rattana BIV wrote:
Hi,
 
I got a segmantation fault When I call to computer (h323) from phone.
 
I use asterisk-oh323 0.5.4 and chan_capi.0.2.2 drivers.
More info (config files, screen log, backtrace of core file) is needed.

 
Someone know where the problem ?
 
 
Regards
Rattana
Michael.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] segmentation fault with asterisk and OH323

2003-08-01 Thread Rattana BIV
By my phone I call H323 client (Netmeeting) I can talk.
Everything is OK.

But when I hangup I have the segmentation fault.
These are the last asterisk log before the segmentation fault:

-- Called 192.168.1.200
-- H323:193 answered CAPI[contr1/26]/1
DEBUG[23569]: File channel.c, Line 2145 (ast_channel_bridge): Didn't get a
frame from channel: CAPI[contr1/26]/1
DEBUG[23569]: File channel.c, Line 2213 (ast_channel_bridge): Bridge stops
bridging channels CAPI[contr1/26]/1 and H323:193


Something strange is, when I call the phone from netmeeting it's work
perfectly.

What do you think ?
(you can see my oh323.conf in attach file)


Rattana


- Original Message -
From: Michael Manousos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 01, 2003 3:07 PM
Subject: Re: [Asterisk-Users] segmentation fault with asterisk and OH323


 Rattana BIV wrote:
  Hi,
 
  I got a segmantation fault When I call to computer (h323) from phone.
 
  I use asterisk-oh323 0.5.4 and chan_capi.0.2.2 drivers.

 More info (config files, screen log, backtrace of core file) is needed.

 
  Someone know where the problem ?
 
 
  Regards
  Rattana

 Michael.

 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users


oh323.conf
Description: Binary data


RE: [Asterisk-Users] Segmentation fault with chan_oh323

2003-07-17 Thread Arun Kumar Sharma, Noida
Hi Everybody,

I am new to Asterisk. Can anybody suggest me some link where I can find
architecture level detail of this system. My aim is to find out how easy it
is to port it on a new hardware (T1/E1 and POTS)?

Any input is highly appreciated.

Regards
Arun


-Original Message-
From: Mark Thompson [mailto:[EMAIL PROTECTED]
Sent: 17 July 2003 13:07
To: [EMAIL PROTECTED]
Subject: RE: [Asterisk-Users] Segmentation fault with chan_oh323


This also happened to me when I was using the same codec with both oh323
and SIP, if I forced it to alaw on oh323 and ulaw on SIP the connection
worked. I also tried h323 instead of oh323 which works okay but you have
to use earlier versions of pwlib and openh323.
Mark

-Original Message-
From: Michael Ulitskiy [mailto:[EMAIL PROTECTED] 
Sent: 16 July 2003 23:44
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Segmentation fault with chan_oh323


Hi,

I'm trying to interconnect sip and h323 endpoints using asterisk and
asterisk crashes with segmentation fault whenever h323 
connection needs to be established. It registers with gatekeeper ok
though. Here are the symptoms. If the call initiated by SIP device,
asterisk replies to it Trying and then silently crashes (it launched
as asterisk -cd). In debug log I can see the following: Jul 16
18:11:52 DEBUG[196621]: File pbx.c, Line 1123 (pbx_extension_helper):
Launching 'Dial' Jul 16 18:11:52 DEBUG[196621]: File chan_oh323.c, Line
1393 (oh323_request): In oh323_request. Jul 16 18:11:52 DEBUG[196621]:
File chan_oh323.c, Line 1394 (oh323_request): type=oh323, format=4,
data=phone number. Jul 16 18:11:52 DEBUG[196621]: File chan_oh323.c,
Line 1440 (oh323_request): Created new call structure 0 (2428 bytes).
That's it. If the call initiated by H323 device, then I see
*CLI   
WrapH323Connection::WrapH323Connection: WrapH323Connection created.
Segmentation fault and debug log shows: Jul 16 18:33:12 DEBUG[196621]:
File chan_oh323.c, Line 2141 (init_h323_connection): In
init_h323_connection... Jul 16 18:33:12 DEBUG[196621]: File
chan_oh323.c, Line 2180 (init_h323_connection): Created new call
structure 0 (2428 bytes). Jul 16 18:33:12 DEBUG[196621]: File
chan_oh323.c, Line 1527 (copy_call_details): --- CALL DETAILS --- Jul 16
18:33:12 DEBUG[196621]: File chan_oh323.c, Line 1528
(copy_call_details): call_token = ip$192.168.0.227:5018/92 Jul 16
18:33:12 DEBUG[196621]: File chan_oh323.c, Line 1529
(copy_call_details): call_source_alias = tnt [192.168.0.227]
Jul 16 18:33:12 DEBUG[196621]: File chan_oh323.c, Line 1530
(copy_call_details): call_dest_alias = 12125551234  12125551234
ip$192.168.0.70:1720
Jul 16 18:33:12 DEBUG[196621]: File chan_oh323.c, Line 1531
(copy_call_details): call_source_e164 = phone number Jul 16 18:33:12
DEBUG[196621]: File chan_oh323.c, Line 1532 (copy_call_details):
call_dest_e164 = 12125551234 That's it. And gatekeeper log shows that
after normal ARQ-ACF exchange originating device immediately sent DRQ.
If anybody knows a reason for this (and the way to fix it of course ;)),
I'd appreciate if you let me know. If you need any additional info to
troubleshoot it, let me know too. Thank a lot.

Michael

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation fault with chan_oh323

2003-07-17 Thread Michael Manousos
Michael Ulitskiy wrote:
Hi,

I'm trying to interconnect sip and h323 endpoints using asterisk
and asterisk crashes with segmentation fault whenever h323 
connection needs to be established. It registers with gatekeeper ok though.
Here are the symptoms.
If the call initiated by SIP device, asterisk replies to it Trying and then
silently crashes (it launched as asterisk -cd).
In debug log I can see the following:
Jul 16 18:11:52 DEBUG[196621]: File pbx.c, Line 1123 (pbx_extension_helper): Launching 'Dial'
Jul 16 18:11:52 DEBUG[196621]: File chan_oh323.c, Line 1393 (oh323_request): In oh323_request.
Jul 16 18:11:52 DEBUG[196621]: File chan_oh323.c, Line 1394 (oh323_request): type=oh323, format=4, data=phone number.
Jul 16 18:11:52 DEBUG[196621]: File chan_oh323.c, Line 1440 (oh323_request): Created new call structure 0 (2428 bytes).
That's it.
If the call initiated by H323 device, then I see
*CLI   
WrapH323Connection::WrapH323Connection: WrapH323Connection created.
Segmentation fault
and debug log shows:
Jul 16 18:33:12 DEBUG[196621]: File chan_oh323.c, Line 2141 (init_h323_connection): In init_h323_connection...
Jul 16 18:33:12 DEBUG[196621]: File chan_oh323.c, Line 2180 (init_h323_connection): Created new call structure 0 (2428 bytes).
Jul 16 18:33:12 DEBUG[196621]: File chan_oh323.c, Line 1527 (copy_call_details): --- CALL DETAILS ---
Jul 16 18:33:12 DEBUG[196621]: File chan_oh323.c, Line 1528 (copy_call_details): call_token = ip$192.168.0.227:5018/92
Jul 16 18:33:12 DEBUG[196621]: File chan_oh323.c, Line 1529 (copy_call_details): call_source_alias = tnt [192.168.0.227]
Jul 16 18:33:12 DEBUG[196621]: File chan_oh323.c, Line 1530 (copy_call_details): call_dest_alias = 12125551234  12125551234 ip$192.168.0.70:1720
Jul 16 18:33:12 DEBUG[196621]: File chan_oh323.c, Line 1531 (copy_call_details): call_source_e164 = phone number
Jul 16 18:33:12 DEBUG[196621]: File chan_oh323.c, Line 1532 (copy_call_details): call_dest_e164 = 12125551234
That's it. And gatekeeper log shows that after normal ARQ-ACF exchange originating device
immediately sent DRQ.
If anybody knows a reason for this (and the way to fix it of course ;)), I'd appreciate if you let me know.
If you need any additional info to troubleshoot it, let me know too.
First of all, in oh323.conf, set

wrapLibTraceLevel=3
libTraceLevel=3
libTraceFile=/tmp/trace.txt
Run Asterisk again, with -vvvcd, and make it crash.
Then send me (offlist) the trace file, the screen log
and a backtrace of the core file dumped.
Thank a lot.

Michael


Michael.



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation fault with chan_oh323

2003-07-17 Thread Michael Ulitskiy
That is another problem I hope the developers would pay attention to.
ulaw codec segfaulting when it is used by h323 side of connection for
both incoming and outgoing calls. At least with chan_oh323. 
If I set alaw codec for h323 it works fine regardless of codec on SIP 
side. 

Michael

On Thursday 17 July 2003 03:36 am, Mark Thompson wrote:
 This also happened to me when I was using the same codec with both oh323
 and SIP, if I forced it to alaw on oh323 and ulaw on SIP the connection
 worked. I also tried h323 instead of oh323 which works okay but you have
 to use earlier versions of pwlib and openh323.
 Mark
 
 -Original Message-
 From: Michael Ulitskiy [mailto:[EMAIL PROTECTED] 
 Sent: 16 July 2003 23:44
 To: [EMAIL PROTECTED]
 Subject: [Asterisk-Users] Segmentation fault with chan_oh323
 
 
 Hi,
 
 I'm trying to interconnect sip and h323 endpoints using asterisk and
 asterisk crashes with segmentation fault whenever h323 
 connection needs to be established. It registers with gatekeeper ok
 though. Here are the symptoms. If the call initiated by SIP device,
 asterisk replies to it Trying and then silently crashes (it launched
 as asterisk -cd). In debug log I can see the following: Jul 16
 18:11:52 DEBUG[196621]: File pbx.c, Line 1123 (pbx_extension_helper):
 Launching 'Dial' Jul 16 18:11:52 DEBUG[196621]: File chan_oh323.c, Line
 1393 (oh323_request): In oh323_request. Jul 16 18:11:52 DEBUG[196621]:
 File chan_oh323.c, Line 1394 (oh323_request): type=oh323, format=4,
 data=phone number. Jul 16 18:11:52 DEBUG[196621]: File chan_oh323.c,
 Line 1440 (oh323_request): Created new call structure 0 (2428 bytes).
 That's it. If the call initiated by H323 device, then I see
 *CLI   
 WrapH323Connection::WrapH323Connection: WrapH323Connection created.
 Segmentation fault and debug log shows: Jul 16 18:33:12 DEBUG[196621]:
 File chan_oh323.c, Line 2141 (init_h323_connection): In
 init_h323_connection... Jul 16 18:33:12 DEBUG[196621]: File
 chan_oh323.c, Line 2180 (init_h323_connection): Created new call
 structure 0 (2428 bytes). Jul 16 18:33:12 DEBUG[196621]: File
 chan_oh323.c, Line 1527 (copy_call_details): --- CALL DETAILS --- Jul 16
 18:33:12 DEBUG[196621]: File chan_oh323.c, Line 1528
 (copy_call_details): call_token = ip$192.168.0.227:5018/92 Jul 16
 18:33:12 DEBUG[196621]: File chan_oh323.c, Line 1529
 (copy_call_details): call_source_alias = tnt [192.168.0.227]
 Jul 16 18:33:12 DEBUG[196621]: File chan_oh323.c, Line 1530
 (copy_call_details): call_dest_alias = 12125551234  12125551234
 ip$192.168.0.70:1720
 Jul 16 18:33:12 DEBUG[196621]: File chan_oh323.c, Line 1531
 (copy_call_details): call_source_e164 = phone number Jul 16 18:33:12
 DEBUG[196621]: File chan_oh323.c, Line 1532 (copy_call_details):
 call_dest_e164 = 12125551234 That's it. And gatekeeper log shows that
 after normal ARQ-ACF exchange originating device immediately sent DRQ.
 If anybody knows a reason for this (and the way to fix it of course ;)),
 I'd appreciate if you let me know. If you need any additional info to
 troubleshoot it, let me know too. Thank a lot.
 
 Michael
 
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users
 
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users
 

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation fault on reload

2003-06-14 Thread Mark Spencer
Can you run with valgrind instead so we can find the true source?  install
asterisk with make valgrind and then run:

valgrind --attach-gdb=yes ./asterisk -vvvg

and then asterisk -rx reload and see where it tries to make you attach.
Talk to Martin for more info ([EMAIL PROTECTED]) next week if you need
it, or find assistance on IRC (irc.freenode.net in #asterisk)

Mark

On Thu, 12 Jun 2003, Derek Beaumont wrote:

 Whenever I issue the reload command, asterisk crashes.  Below is the
 output I get from
 (gdb) bt

 Any help is appreciated.

 ***
 *CLI reload
   == Parsing '/etc/asterisk/manager.conf': Found
   == Parsing '/etc/asterisk/enum.conf': Found
   == Parsing '/etc/asterisk/rtp.conf': Not found (No such file or
 directory)  == RTP Allocating from port range 5000 - 31000
 -- Reloading module 'app_voicemail2.so' (Comedian Mail (Voicemail
 System))
   == Parsing '/etc/asterisk/voicemail.conf': Found
 -- Reloading module 'chan_local.so' (Local Proxy Channel)
 -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2))
   == Parsing '/etc/asterisk/iax.conf': Found
 WARNING[16384]: File chan_iax2.c, Line 4980 (set_config): Ignoring port
 for now
 -- Reloading module 'cdr_csv.so' (Comma Separated Values CDR
 Backend)
 -- Reloading module 'app_queue.so' (True Call Queueing)
   == Parsing '/etc/asterisk/queues.conf': Found
 -- Reloading module 'pbx_config.so' (Text Extension Configuration)
   == Parsing '/etc/asterisk/extensions.conf': Found

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 16384 (LWP 2159)]
 0x4015b9fc in mallopt () from /lib/i686/libc.so.6
 (gdb) bt
 #0  0x4015b9fc in mallopt () from /lib/i686/libc.so.6
 #1  0x4015ac61 in malloc () from /lib/i686/libc.so.6
 #2  0x40161dd0 in strdup () from /lib/i686/libc.so.6
 #3  0x08055a2f in cfg_process (tmp=0x80e5950, _tmpc=0xb360,
 _last=0xb364, buf=0x6c636e69 Address 0x6c636e69 out of bounds,
 lineno=118, configfile=0x44ceb41d extensions.conf, includelevel=0)
 at config.c:57
 #4  0x08055472 in __ast_load (configfile=0x44ceb41d extensions.conf,
 tmp=0x80e5950, _tmpc=0xb360, _last=0xb364, includelevel=0)
 at config.c:731
 #5  0x0805588d in ast_load (configfile=0x8 Address 0x8 out of bounds)
 at config.c:766
 #6  0x44ceabd2 in pbx_load_module () at pbx_config.c:1520
 #7  0x44ce7c8f in reload () at pbx_config.c:1648
 #8  0x08054d22 in ast_module_reload () at loader.c:159
 #9  0x08069d6a in handle_reload (fd=1, argc=1, argv=0xb4c0) at
 cli.c:105
 #10 0x08069b5a in ast_cli_command (fd=1, s=0x8 Address 0x8 out of
 bounds) at cli.c:1006
 #11 0x0807b36e in main (argc=135033816, argv=0x80b2d08) at
 asterisk.c:496
 #12 0x400fd7f7 in __libc_start_main () from /lib/i686/libc.so.6
 (gdb)

 
 
 ***


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Segmentation fault on reload

2003-06-12 Thread Martin Pycko
Check the line 118 of extensions.conf ???

Martin

On Thu, 12 Jun 2003, Derek Beaumont wrote:

 Whenever I issue the reload command, asterisk crashes.  Below is the
 output I get from
 (gdb) bt

 Any help is appreciated.

 ***
 *CLI reload
   == Parsing '/etc/asterisk/manager.conf': Found
   == Parsing '/etc/asterisk/enum.conf': Found
   == Parsing '/etc/asterisk/rtp.conf': Not found (No such file or
 directory)  == RTP Allocating from port range 5000 - 31000
 -- Reloading module 'app_voicemail2.so' (Comedian Mail (Voicemail
 System))
   == Parsing '/etc/asterisk/voicemail.conf': Found
 -- Reloading module 'chan_local.so' (Local Proxy Channel)
 -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2))
   == Parsing '/etc/asterisk/iax.conf': Found
 WARNING[16384]: File chan_iax2.c, Line 4980 (set_config): Ignoring port
 for now
 -- Reloading module 'cdr_csv.so' (Comma Separated Values CDR
 Backend)
 -- Reloading module 'app_queue.so' (True Call Queueing)
   == Parsing '/etc/asterisk/queues.conf': Found
 -- Reloading module 'pbx_config.so' (Text Extension Configuration)
   == Parsing '/etc/asterisk/extensions.conf': Found

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 16384 (LWP 2159)]
 0x4015b9fc in mallopt () from /lib/i686/libc.so.6
 (gdb) bt
 #0  0x4015b9fc in mallopt () from /lib/i686/libc.so.6
 #1  0x4015ac61 in malloc () from /lib/i686/libc.so.6
 #2  0x40161dd0 in strdup () from /lib/i686/libc.so.6
 #3  0x08055a2f in cfg_process (tmp=0x80e5950, _tmpc=0xb360,
 _last=0xb364, buf=0x6c636e69 Address 0x6c636e69 out of bounds,
 lineno=118, configfile=0x44ceb41d extensions.conf, includelevel=0)
 at config.c:57
 #4  0x08055472 in __ast_load (configfile=0x44ceb41d extensions.conf,
 tmp=0x80e5950, _tmpc=0xb360, _last=0xb364, includelevel=0)
 at config.c:731
 #5  0x0805588d in ast_load (configfile=0x8 Address 0x8 out of bounds)
 at config.c:766
 #6  0x44ceabd2 in pbx_load_module () at pbx_config.c:1520
 #7  0x44ce7c8f in reload () at pbx_config.c:1648
 #8  0x08054d22 in ast_module_reload () at loader.c:159
 #9  0x08069d6a in handle_reload (fd=1, argc=1, argv=0xb4c0) at
 cli.c:105
 #10 0x08069b5a in ast_cli_command (fd=1, s=0x8 Address 0x8 out of
 bounds) at cli.c:1006
 #11 0x0807b36e in main (argc=135033816, argv=0x80b2d08) at
 asterisk.c:496
 #12 0x400fd7f7 in __libc_start_main () from /lib/i686/libc.so.6
 (gdb)

 
 
 ***


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] segmentation fault

2003-04-02 Thread Martin Pycko
asterisk -vvvcg (use g option to generate the coredump file)
than gdb asterisk core.pid
bt

Also you might send a log of pri intense debug span number

regards
Martin

On Wed, 2 Apr 2003, Alex Zarubin wrote:

 Configuration:
 Linux wpbx 2.4.9-13 #1 Tue Oct 30 20:11:04 EST 2001 i686 unknown
 P4 2.5 GHz, 1 GB RAM
 T400P with 3 T1s plugged in. A flow of 46 calls (spread out over 3 T1s).
 Each call gets transferred (Dial) to the SIP platform and stays for 5 min.

 Case 1. Asterisk built out of CVS Mar. 19. Test was running for 3 days.
 Segmentation fault.
 Case 2. Asterisk built out of CVS Apr. 1. Test was running for 12 hours.
 Segmentation fault.

 No coredump found. In case 1 there was a significant memory growth:
 Top at the startup:
 15986 root   9   0  6440 6436  2144 S 0.0  0.6   0:00 asterisk
 15987 root   8   0  6440 6436  2144 S 0.0  0.6   0:00 asterisk
 Top in several hours:
 15986 root   9   0  9192 9188  2148 S 0.0  0.9   0:00 asterisk
 15987 root   9   0  9192 9188  2148 S 0.0  0.9   0:00 asterisk
 Top after a day:
 27441 root   9   0 45980  44M  2156 S 0.0  4.5   0:00 asterisk
 27442 root   8   0 45980  44M  2156 S 0.0  4.5   0:16 asterisk
 Actually, I saw it over 50.

 There were some warning messages on the way. For example:

 Apr  1 23:22:33 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error):
 PRI:
 Read on 86 failed: Unknown error 500
 Apr  1 23:24:54 WARNING[11276]: File chan_zap.c, Line 5248 (zt_pri_error):
 PRI:
 !! Got reject for frame 102, retransmitting frame 102 now, updating n_r!
 Apr  1 23:24:54 WARNING[11276]: File chan_zap.c, Line 5248 (zt_pri_error):
 PRI:
 !! Got reject for frame 103, but we have nothing -- resetting!
 Apr  1 23:28:49 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error):
 PRI:
 !! Got reject for frame 29, retransmitting frame 29 now, updating n_r!
 Apr  1 23:28:49 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error):
 PRI:
 !! Got reject for frame 30, but we have nothing -- resetting!
 Apr  1 23:30:00 WARNING[11276]: File chan_zap.c, Line 5248 (zt_pri_error):
 PRI:
 Read on 87 failed: Unknown error 500
 Apr  1 23:30:24 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error):
 PRI:
 Read on 86 failed: Unknown error 500

 Question:
 What do I do to give you more info? Should I issue 'ulimit -c unlimited' to
 get a coredump?
 Are there any flags/modes to set?

 Thank you.
 Alex Zarubin




___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] segmentation fault

2003-04-02 Thread Alex Zarubin
Title: RE: [Asterisk-Users] segmentation fault





OK, here it is. On a flow of shorter calls it lasted about an hour.


[EMAIL PROTECTED] asterisk]# gdb asterisk core.12348
GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB. Type show warranty for details.
This GDB was configured as i386-redhat-linux...
Core was generated by `asterisk -dgvvvc'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/i686/libpthread.so.0...done.


warning: Unable to set global thread event mask: generic error
[New Thread 1024 (LWP 12342)]
Error while reading shared library symbols:
Can't attach LWP 12342: No such process
Reading symbols from /usr/lib/libncurses.so.5...done.
Loaded symbols for /usr/lib/libncurses.so.5
Reading symbols from /lib/i686/libm.so.6...done.
Loaded symbols for /lib/i686/libm.so.6
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/asterisk/modules/chan_modem.so...done.
.
.
.
.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/lib/asterisk/modules/format_pcm_alaw.so...done.
Loaded symbols for /usr/lib/asterisk/modules/format_pcm_alaw.so
#0 0x08055d86 in ast_queue_frame (chan=0x81cd398, fin=0x42c1991c, lock=1)
 at channel.c:354
354 cur = chan-pvt-readq;
(gdb) bt
#0 0x08055d86 in ast_queue_frame (chan=0x81cd398, fin=0x42c1991c, lock=1)
 at channel.c:354
#1 0x0805a9a0 in ast_queue_hangup (chan=0x81cd398, lock=1) at channel.c:391
#2 0x42412855 in handle_request (p=0x82b6350, req=0x42c1b25c, sin=0x42c1b24c)
 at chan_sip.c:3762
#3 0x42412e6d in sipsock_read (id=0x80d7850, fd=10, events=1, ignore=0x0)
 at chan_sip.c:3840
#4 0x08050d9e in ast_io_wait (ioc=0x80d9018, howlong=1000) at io.c:268
#5 0x424131f5 in do_monitor (data="" at chan_sip.c:3928
#6 0x4003ec6f in pthread_start_thread (arg=0x42c1bbe0) at manager.c:284
(gdb)






-Original Message-
From: Martin Pycko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 02, 2003 11:38 AM
To: '[EMAIL PROTECTED]'
Subject: Re: [Asterisk-Users] segmentation fault



asterisk -vvvcg (use g option to generate the coredump file)
than gdb asterisk core.pid
bt


Also you might send a log of pri intense debug span number


regards
Martin


On Wed, 2 Apr 2003, Alex Zarubin wrote:


 Configuration:
 Linux wpbx 2.4.9-13 #1 Tue Oct 30 20:11:04 EST 2001 i686 unknown
 P4 2.5 GHz, 1 GB RAM
 T400P with 3 T1s plugged in. A flow of 46 calls (spread out over 3 T1s).
 Each call gets transferred (Dial) to the SIP platform and stays for 5 min.

 Case 1. Asterisk built out of CVS Mar. 19. Test was running for 3 days.
 Segmentation fault.
 Case 2. Asterisk built out of CVS Apr. 1. Test was running for 12 hours.
 Segmentation fault.

 No coredump found. In case 1 there was a significant memory growth:
 Top at the startup:
 15986 root 9 0 6440 6436 2144 S 0.0 0.6 0:00 asterisk
 15987 root 8 0 6440 6436 2144 S 0.0 0.6 0:00 asterisk
 Top in several hours:
 15986 root 9 0 9192 9188 2148 S 0.0 0.9 0:00 asterisk
 15987 root 9 0 9192 9188 2148 S 0.0 0.9 0:00 asterisk
 Top after a day:
 27441 root 9 0 45980 44M 2156 S 0.0 4.5 0:00 asterisk
 27442 root 8 0 45980 44M 2156 S 0.0 4.5 0:16 asterisk
 Actually, I saw it over 50.

 There were some warning messages on the way. For example:

 Apr 1 23:22:33 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error):
 PRI:
 Read on 86 failed: Unknown error 500
 Apr 1 23:24:54 WARNING[11276]: File chan_zap.c, Line 5248 (zt_pri_error):
 PRI:
 !! Got reject for frame 102, retransmitting frame 102 now, updating n_r!
 Apr 1 23:24:54 WARNING[11276]: File chan_zap.c, Line 5248 (zt_pri_error):
 PRI:
 !! Got reject for frame 103, but we have nothing -- resetting!
 Apr 1 23:28:49 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error):
 PRI:
 !! Got reject for frame 29, retransmitting frame 29 now, updating n_r!
 Apr 1 23:28:49 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error):
 PRI:
 !! Got reject for frame 30, but we have nothing -- resetting!
 Apr 1 23:30:00 WARNING[11276]: File chan_zap.c, Line 5248 (zt_pri_error):
 PRI:
 Read on 87 failed: Unknown error 500
 Apr 1 23:30:24 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error):
 PRI:
 Read on 86 failed: Unknown error 500

 Question:
 What do I do to give you more info? Should I issue 'ulimit -c unlimited' to
 get a coredump?
 Are there any flags/modes to set?

 Thank you.
 Alex Zarubin





___
Asterisk-Users mailing l

RE: [Asterisk-Users] segmentation fault

2003-04-02 Thread Mark Spencer
Does running it under valgrind produce more useful output?

Mark

On Wed, 2 Apr 2003, Alex Zarubin wrote:

 OK, here it is. On a flow of shorter calls it lasted about an hour.

 [EMAIL PROTECTED] asterisk]# gdb asterisk core.12348
 GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT)
 Copyright 2001 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for details.
 This GDB was configured as i386-redhat-linux...
 Core was generated by `asterisk -dgvvvc'.
 Program terminated with signal 11, Segmentation fault.
 Reading symbols from /lib/libdl.so.2...done.
 Loaded symbols for /lib/libdl.so.2
 Reading symbols from /lib/i686/libpthread.so.0...done.

 warning: Unable to set global thread event mask: generic error
 [New Thread 1024 (LWP 12342)]
 Error while reading shared library symbols:
 Can't attach LWP 12342: No such process
 Reading symbols from /usr/lib/libncurses.so.5...done.
 Loaded symbols for /usr/lib/libncurses.so.5
 Reading symbols from /lib/i686/libm.so.6...done.
 Loaded symbols for /lib/i686/libm.so.6
 Reading symbols from /lib/i686/libc.so.6...done.
 Loaded symbols for /lib/i686/libc.so.6
 Reading symbols from /lib/ld-linux.so.2...done.
 Loaded symbols for /lib/ld-linux.so.2
 Reading symbols from /usr/lib/asterisk/modules/chan_modem.so...done.
 .
 .
 .
 .
 Loaded symbols for /lib/libcrypt.so.1
 Reading symbols from /lib/libnsl.so.1...done.
 Loaded symbols for /lib/libnsl.so.1
 Reading symbols from /usr/lib/asterisk/modules/format_pcm_alaw.so...done.
 Loaded symbols for /usr/lib/asterisk/modules/format_pcm_alaw.so
 #0  0x08055d86 in ast_queue_frame (chan=0x81cd398, fin=0x42c1991c, lock=1)
 at channel.c:354
 354 cur = chan-pvt-readq;
 (gdb) bt
 #0  0x08055d86 in ast_queue_frame (chan=0x81cd398, fin=0x42c1991c, lock=1)
 at channel.c:354
 #1  0x0805a9a0 in ast_queue_hangup (chan=0x81cd398, lock=1) at channel.c:391
 #2  0x42412855 in handle_request (p=0x82b6350, req=0x42c1b25c,
 sin=0x42c1b24c)
 at chan_sip.c:3762
 #3  0x42412e6d in sipsock_read (id=0x80d7850, fd=10, events=1, ignore=0x0)
 at chan_sip.c:3840
 #4  0x08050d9e in ast_io_wait (ioc=0x80d9018, howlong=1000) at io.c:268
 #5  0x424131f5 in do_monitor (data=0x0) at chan_sip.c:3928
 #6  0x4003ec6f in pthread_start_thread (arg=0x42c1bbe0) at manager.c:284
 (gdb)





 -Original Message-
 From: Martin Pycko [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 02, 2003 11:38 AM
 To: '[EMAIL PROTECTED]'
 Subject: Re: [Asterisk-Users] segmentation fault


 asterisk -vvvcg (use g option to generate the coredump file)
 than gdb asterisk core.pid
 bt

 Also you might send a log of pri intense debug span number

 regards
 Martin

 On Wed, 2 Apr 2003, Alex Zarubin wrote:

  Configuration:
  Linux wpbx 2.4.9-13 #1 Tue Oct 30 20:11:04 EST 2001 i686 unknown
  P4 2.5 GHz, 1 GB RAM
  T400P with 3 T1s plugged in. A flow of 46 calls (spread out over 3 T1s).
  Each call gets transferred (Dial) to the SIP platform and stays for 5 min.
 
  Case 1. Asterisk built out of CVS Mar. 19. Test was running for 3 days.
  Segmentation fault.
  Case 2. Asterisk built out of CVS Apr. 1. Test was running for 12 hours.
  Segmentation fault.
 
  No coredump found. In case 1 there was a significant memory growth:
  Top at the startup:
  15986 root   9   0  6440 6436  2144 S 0.0  0.6   0:00 asterisk
  15987 root   8   0  6440 6436  2144 S 0.0  0.6   0:00 asterisk
  Top in several hours:
  15986 root   9   0  9192 9188  2148 S 0.0  0.9   0:00 asterisk
  15987 root   9   0  9192 9188  2148 S 0.0  0.9   0:00 asterisk
  Top after a day:
  27441 root   9   0 45980  44M  2156 S 0.0  4.5   0:00 asterisk
  27442 root   8   0 45980  44M  2156 S 0.0  4.5   0:16 asterisk
  Actually, I saw it over 50.
 
  There were some warning messages on the way. For example:
 
  Apr  1 23:22:33 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error):
  PRI:
  Read on 86 failed: Unknown error 500
  Apr  1 23:24:54 WARNING[11276]: File chan_zap.c, Line 5248 (zt_pri_error):
  PRI:
  !! Got reject for frame 102, retransmitting frame 102 now, updating n_r!
  Apr  1 23:24:54 WARNING[11276]: File chan_zap.c, Line 5248 (zt_pri_error):
  PRI:
  !! Got reject for frame 103, but we have nothing -- resetting!
  Apr  1 23:28:49 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error):
  PRI:
  !! Got reject for frame 29, retransmitting frame 29 now, updating n_r!
  Apr  1 23:28:49 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error):
  PRI:
  !! Got reject for frame 30, but we have nothing -- resetting!
  Apr  1 23:30:00 WARNING[11276]: File chan_zap.c, Line 5248 (zt_pri_error):
  PRI:
  Read on 87 failed: Unknown error 500
  Apr  1 23:30:24 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error