Monday, December 3, 2007

Re: [asterisk-users] Asterisk 1.4.15 crash without generating core file

Is not a configuration problem because if I run an older version of Asterisk (ie 1.4.12) it generates this core in /tmp
With 1.4.15 I did # updatedb and then #locate core* and I didn´t found.
I found why Asterisk 1.4.15 crash, is because of this error:

asterisk: symbol lookup error: /usr/lib/asterisk/modules/cdr_pgsql.so: undefined symbol: PQescapeStringConn

I comment cdr_pgsql.conf and it doesn´t crash any more.(Off course I haven´t cdr in postgres)



On Dec 3, 2007 7:45 AM, Tzafrir Cohen <tzafrir.cohen@xorcom.com> wrote:
On Sun, Dec 02, 2007 at 01:06:50PM +1300, Matt Riddell wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> equis software wrote:
> > Hi, I'm testing Asterisk 1.4.15 with the  -g option.
> > When it crash didn´t generate core file in the /tmp folder.
> > What is happening??
>
> Check the directory you were in when you ran Asterisk.

Or alternatively:

 echo '/tmp/core.%e.%t' > /proc/sys/kernel/core_pattern

This will mean that all core files (for anything that generates core
file, not only asterisk) will be created under /tmp with the file name
'core.<name_of_executable>.<time_of_crash>' (time: seconds since epoch).

To make this change permanent (if you actually think it is wise), use
/etc/sysctl.conf .

--
              Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen@xorcom.com
+972-50-7952406           mailto: tzafrir.cohen@xorcom.com
http://www.xorcom.com  iax:guest@local.xorcom.com/tzafrir

_______________________________________________
--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

No comments: