Asterisk core dumps on ubuntu


#1

Ubuntu 5.04 "The Hoary Hedgehog"
Linux 2.6.10 i686 GNU/Linux

I’ve downloaded and built:

  1. 1.2.0-beta1 Asterisk and Zaptel from .gz files on download page
  2. CVS head Asterisk and Zaptel ( via instructions for cvs download asterisk.org/download)
  3. CVS current snapshot Asterisk and Zaptel ( via instructions for cvs download asterisk.org/download)

For all three build attempts, Zaptel and Asterisk successfully build.

Zaptel module loads and recognizes my card. From dmesg:
wcfxo: DAA mode is 'FCC’
Found a Wildcard FXO: Generic Clone
Registered tone zone 0 (United States / North America)
From lsmod:
wcfxo 12704 0
zaptel 226564 1 wcfxo
crc_ccitt 2176 2 hisax,zaptel

All attempts to start Asterisk result in a coredump.
Could anyone help me diagnose this? I’ve posted below the output of an attempted start of asterisk and an initial backtrace from gdb.

root@baerlon:~ # asterisk -V
Asterisk CVS-v1-0-09/17/05-22:49:24

root@baerlon:~ # asterisk -vvvvvvvgc -n
== Parsing ‘/etc/asterisk/asterisk.conf’: Found
== Parsing ‘/etc/asterisk/extconfig.conf’: Found
Asterisk CVS-v1-0-09/17/05-22:49:24, Copyright © 1999-2004 Digium.
Written by Mark Spencer markster@digium.com

== Parsing ‘/etc/asterisk/logger.conf’: Found
Asterisk Event Logger Started /var/log/asterisk/event_log
== Manager registered action Ping
== Manager registered action Events
== Manager registered action Logoff
== Manager registered action Hangup
== Manager registered action Status
== Manager registered action Setvar
== Manager registered action Getvar
== Manager registered action Redirect
== Manager registered action Originate
== Manager registered action Command
== Manager registered action ExtensionState
== Manager registered action AbsoluteTimeout
== Manager registered action MailboxStatus
== Manager registered action MailboxCount
== Manager registered action ListCommands
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/rtp.conf’: Found
== RTP Allocating from port range 10000 -> 20000
Asterisk PBX Core Initializing
Registering builtin applications:
[AbsoluteTimeout]
== Registered application ‘AbsoluteTimeout’
[Answer]
== Registered application ‘Answer’
[BackGround]
== Registered application ‘BackGround’
[Busy]
== Registered application ‘Busy’
[Congestion]
== Registered application ‘Congestion’
[DigitTimeout]
== Registered application ‘DigitTimeout’
[Goto]
== Registered application ‘Goto’
[GotoIf]
== Registered application ‘GotoIf’
[GotoIfTime]
== Registered application ‘GotoIfTime’
[Hangup]
== Registered application ‘Hangup’
[NoOp]
== Registered application ‘NoOp’
[Prefix]
== Registered application ‘Prefix’
[Progress]
== Registered application ‘Progress’
[ResetCDR]
== Registered application ‘ResetCDR’
[ResponseTimeout]
== Registered application ‘ResponseTimeout’
[Ringing]
== Registered application ‘Ringing’
[SayNumber]
== Registered application ‘SayNumber’
[SayDigits]
== Registered application ‘SayDigits’
[SayAlpha]
== Registered application ‘SayAlpha’
[SayPhonetic]
== Registered application ‘SayPhonetic’
[SetAccount]
== Registered application ‘SetAccount’
[SetAMAFlags]
== Registered application ‘SetAMAFlags’
[SetGlobalVar]
== Registered application ‘SetGlobalVar’
[SetLanguage]
== Registered application ‘SetLanguage’
[SetVar]
== Registered application ‘SetVar’
[StripMSD]
== Registered application ‘StripMSD’
[Suffix]
== Registered application ‘Suffix’
[Wait]
== Registered application ‘Wait’
[WaitExten]
== Registered application 'WaitExten’
Asterisk Dynamic Loader Starting:
== Parsing ‘/etc/asterisk/modules.conf’: Found
[chan_modem.so] => (Generic Voice Modem Driver)
== Parsing ‘/etc/asterisk/modem.conf’: Found
== Loading modem driver chan_modem_aopen.so => (A/Open (Rockwell Chipset) ITU-2 VoiceModem Driver)
== Registered channel type ‘Modem’ (Generic Voice Modem Channel Driver)
[res_musiconhold.so] => (Music On Hold Resource)
== Parsing ‘/etc/asterisk/musiconhold.conf’: Found
== Registered application ‘MusicOnHold’
== Registered application ‘WaitMusicOnHold’
== Registered application ‘SetMusicOnHold’
[res_adsi.so] => (ADSI Resource)
== Parsing ‘/etc/asterisk/adsi.conf’: Found
Illegal instruction (core dumped)

Running in gdb:
gives same output as above plus

Program received signal SIGILL, Illegal instruction.
[Switching to Thread -1211096960 (LWP 8308)]
0xb78ea4f1 in adsi_load () at res_adsi.c:1068
1068 if (x)
(gdb) bt
#0 0xb78ea4f1 in adsi_load () at res_adsi.c:1068
#1 0xb78e9c0b in load_module () at res_adsi.c:1102
#2 0x08057763 in ast_load_resource (resource_name=0x81077df “res_adsi.so”) at loader.c:344
#3 0x0805803f in load_modules () at loader.c:439
#4 0x0809d7bf in main (argc=-1073743440, argv=0xbffffbb4) at asterisk.c:1854
(gdb)