[Asterisk-Users] Illegal instruction (core dumped)

Tom Fanning mailinglists at tomt.co.uk
Sun Apr 17 02:55:47 MST 2005


Hi

Grabbed the most recent stable asterisk from CVS as documented here:
http://www.asterisk.org/index.php?menu=download

Didn't bother with zaptel or libpri as I have no Digium hardware nor T1 or
E1.

Did 
make install asterisk; make samples.

Started asterisk with 
asterisk -vvvvc 
and it crashes:

.
.
.
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)

Build environment is Mandrake 10.1 official. Didn't have this problem on a
Mandrake 10.1 Community box running in vmware - it worked perfectly the
first time.

Putting 
noload => res_adsi.so 
in extensions.conf just causes it to crash elsewhere during the load.

Compilation worked fine except for this lot which came out of stderr. Is
this normal?

In file included from editline.c:18:
term.c: In function `term_move_to_line':
term.c:556: warning: implicit declaration of function `tputs'
term.c:556: warning: implicit declaration of function `tgoto'
term.c: In function `term_set':
term.c:913: warning: implicit declaration of function `tgetent'
term.c:931: warning: implicit declaration of function `tgetflag'
term.c:940: warning: implicit declaration of function `tgetnum'
term.c:943: warning: implicit declaration of function `tgetstr'
term.c:943: warning: passing arg 3 of `term_alloc' makes pointer from
integer without a cast
In file included from editline.c:18:
term.c: In function `term_echotc':
term.c:1441: warning: assignment makes pointer from integer without a cast
ar: creating libtime.a
frame.c: In function `ast_fr_fdread':
frame.c:360: warning: assignment discards qualifiers from pointer target
type
chan_modem_aopen.c: In function `aopen_read':
chan_modem_aopen.c:327: warning: assignment discards qualifiers from pointer
target type
chan_modem_bestdata.c: In function `bestdata_read':
chan_modem_bestdata.c:375: warning: assignment discards qualifiers from
pointer target type
chan_modem_i4l.c: In function `i4l_read':
chan_modem_i4l.c:446: warning: assignment discards qualifiers from pointer
target type
chan_iax2.c: In function `__send_command':
chan_iax2.c:3574: warning: assignment discards qualifiers from pointer
target type
app_mp3.c: In function `mp3_exec':
app_mp3.c:169: warning: assignment discards qualifiers from pointer target
type
app_festival.c: In function `send_waveform_to_channel':
app_festival.c:213: warning: assignment discards qualifiers from pointer
target type
app_nbscat.c: In function `NBScat_exec':
app_nbscat.c:147: warning: assignment discards qualifiers from pointer
target type
codec_ilbc.c: In function `lintoilbc_sample':
codec_ilbc.c:95: warning: assignment discards qualifiers from pointer target
type
codec_ilbc.c: In function `ilbctolin_sample':
codec_ilbc.c:110: warning: assignment discards qualifiers from pointer
target type
codec_ilbc.c: In function `ilbctolin_frameout':
codec_ilbc.c:128: warning: assignment discards qualifiers from pointer
target type
codec_ilbc.c: In function `lintoilbc_frameout':
codec_ilbc.c:189: warning: assignment discards qualifiers from pointer
target type
codec_gsm.c: In function `lintogsm_sample':
codec_gsm.c:85: warning: assignment discards qualifiers from pointer target
type
codec_gsm.c: In function `gsmtolin_sample':
codec_gsm.c:100: warning: assignment discards qualifiers from pointer target
type
codec_gsm.c: In function `gsmtolin_frameout':
codec_gsm.c:118: warning: assignment discards qualifiers from pointer target
type
codec_gsm.c: In function `lintogsm_frameout':
codec_gsm.c:203: warning: assignment discards qualifiers from pointer target
type
src/decode.c: In function `Postprocessing':
src/decode.c:25: warning: unused variable `ltmp'
src/long_term.c: In function `Long_term_analysis_filtering':
src/long_term.c:855: warning: unused variable `ltmp'
src/long_term.c: In function `Gsm_Long_Term_Synthesis_Filtering':
src/long_term.c:924: warning: unused variable `ltmp'
src/lpc.c: In function `Reflection_coefficients':
src/lpc.c:214: warning: unused variable `ltmp'
src/lpc.c: In function `Quantization_and_coding':
src/lpc.c:322: warning: unused variable `ltmp'
src/preprocess.c: In function `Gsm_Preprocess':
src/preprocess.c:89: warning: unused variable `lsp'
src/preprocess.c:49: warning: unused variable `ltmp'
src/preprocess.c:50: warning: unused variable `utmp'
src/rpe.c: In function `APCM_inverse_quantization':
src/rpe.c:365: warning: unused variable `ltmp'
src/short_term.c: In function `Decoding_of_the_coded_Log_Area_Ratios':
src/short_term.c:33: warning: unused variable `ltmp'
src/short_term.c: In function `Coefficients_0_12':
src/short_term.c:102: warning: unused variable `ltmp'
src/short_term.c: In function `Coefficients_13_26':
src/short_term.c:116: warning: unused variable `ltmp'
src/short_term.c: In function `Coefficients_27_39':
src/short_term.c:128: warning: unused variable `ltmp'
src/short_term.c: In function `LARp_to_rp':
src/short_term.c:159: warning: unused variable `ltmp'
src/short_term.c: In function `Gsm_Short_Term_Analysis_Filter':
src/short_term.c:381: warning: unused variable `i'
codec_lpc10.c: In function `lintolpc10_sample':
codec_lpc10.c:109: warning: assignment discards qualifiers from pointer
target type
codec_lpc10.c: In function `lpc10tolin_sample':
codec_lpc10.c:125: warning: assignment discards qualifiers from pointer
target type
codec_lpc10.c: In function `lpc10tolin_frameout':
codec_lpc10.c:143: warning: assignment discards qualifiers from pointer
target type
codec_lpc10.c: In function `lintolpc10_frameout':
codec_lpc10.c:281: warning: assignment discards qualifiers from pointer
target type
analys.c:208: warning: no previous prototype for 'analys_'
analys.c: In function `analys_':
analys.c:566: warning: implicit declaration of function `placev_'
analys.c:622: warning: implicit declaration of function `placea_'
bsynz.c:125: warning: no previous prototype for 'bsynz_'
chanwr.c:134: warning: no previous prototype for 'chanwr_0_'
chanwr.c:224: warning: no previous prototype for 'chanwr_'
chanwr.c:230: warning: no previous prototype for 'chanrd_'
dcbias.c:80: warning: no previous prototype for 'dcbias_'
decode.c:150: warning: no previous prototype for 'decode_'
deemp.c:107: warning: no previous prototype for 'deemp_'
difmag.c:93: warning: no previous prototype for 'difmag_'
dyptrk.c:132: warning: no previous prototype for 'dyptrk_'
encode.c:113: warning: no previous prototype for 'encode_'
energy.c:79: warning: no previous prototype for 'energy_'
ham84.c:86: warning: no previous prototype for 'ham84_'
hp100.c:115: warning: no previous prototype for 'hp100_'
invert.c:94: warning: no previous prototype for 'invert_'
irc2pc.c:84: warning: no previous prototype for 'irc2pc_'
ivfilt.c:91: warning: no previous prototype for 'ivfilt_'
lpcini.c:94: warning: no previous prototype for 'lpcini_'
lpfilt.c:85: warning: no previous prototype for 'lpfilt_'
median.c:70: warning: no previous prototype for 'median_'
mload.c:101: warning: no previous prototype for 'mload_'
onset.c:132: warning: no previous prototype for 'onset_'
pitsyn.c:136: warning: no previous prototype for 'pitsyn_'
placea.c:119: warning: no previous prototype for 'placea_'
placev.c:115: warning: no previous prototype for 'placev_'
preemp.c:84: warning: no previous prototype for 'preemp_'
prepro.c:103: warning: no previous prototype for 'prepro_'
random.c:94: warning: no previous prototype for 'random_'
rcchk.c:83: warning: no previous prototype for 'rcchk_'
synths.c:172: warning: no previous prototype for 'synths_'
synths.c: In function `synths_':
synths.c:401: warning: implicit declaration of function `irc2pc_'
synths.c:402: warning: implicit declaration of function `bsynz_'
tbdm.c:97: warning: no previous prototype for 'tbdm_'
voicin.c:262: warning: no previous prototype for 'voicin_'
vparms.c:138: warning: no previous prototype for 'vparms_'
codec_adpcm.c: In function `adpcmtolin_frameout':
codec_adpcm.c:326: warning: assignment discards qualifiers from pointer
target type
codec_adpcm.c: In function `lintoadpcm_frameout':
codec_adpcm.c:405: warning: assignment discards qualifiers from pointer
target type
codec_adpcm.c: In function `adpcmtolin_sample':
codec_adpcm.c:439: warning: assignment discards qualifiers from pointer
target type
codec_adpcm.c: In function `lintoadpcm_sample':
codec_adpcm.c:459: warning: assignment discards qualifiers from pointer
target type
codec_ulaw.c: In function `ulawtolin_frameout':
codec_ulaw.c:173: warning: assignment discards qualifiers from pointer
target type
codec_ulaw.c: In function `lintoulaw_frameout':
codec_ulaw.c:231: warning: assignment discards qualifiers from pointer
target type
codec_ulaw.c: In function `ulawtolin_sample':
codec_ulaw.c:254: warning: assignment discards qualifiers from pointer
target type
codec_ulaw.c: In function `lintoulaw_sample':
codec_ulaw.c:274: warning: assignment discards qualifiers from pointer
target type
codec_alaw.c: In function `alawtolin_frameout':
codec_alaw.c:173: warning: assignment discards qualifiers from pointer
target type
codec_alaw.c: In function `lintoalaw_frameout':
codec_alaw.c:231: warning: assignment discards qualifiers from pointer
target type
codec_alaw.c: In function `alawtolin_sample':
codec_alaw.c:254: warning: assignment discards qualifiers from pointer
target type
codec_alaw.c: In function `lintoalaw_sample':
codec_alaw.c:274: warning: assignment discards qualifiers from pointer
target type
codec_a_mu.c: In function `alawtoulaw_frameout':
codec_a_mu.c:130: warning: assignment discards qualifiers from pointer
target type
codec_a_mu.c: In function `ulawtoalaw_frameout':
codec_a_mu.c:177: warning: assignment discards qualifiers from pointer
target type
codec_a_mu.c: In function `alawtoulaw_sample':
codec_a_mu.c:200: warning: assignment discards qualifiers from pointer
target type
codec_a_mu.c: In function `ulawtoalaw_sample':
codec_a_mu.c:215: warning: assignment discards qualifiers from pointer
target type
codec_g726.c: In function `g726tolin_frameout':
codec_g726.c:716: warning: assignment discards qualifiers from pointer
target type
codec_g726.c: In function `lintog726_frameout':
codec_g726.c:779: warning: assignment discards qualifiers from pointer
target type
codec_g726.c: In function `g726tolin_sample':
codec_g726.c:802: warning: assignment discards qualifiers from pointer
target type
codec_g726.c: In function `lintog726_sample':
codec_g726.c:822: warning: assignment discards qualifiers from pointer
target type

Any ideas?

Thanks in advance

Tom




More information about the asterisk-users mailing list