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
,
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 ) 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
) 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-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 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 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 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 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*, 
PScalarArray 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-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 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 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


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

2003-09-23 Thread jerk face
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