2010-03-01 04:29:39     Linphone crashes when answering call (libspeex)

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-03-01 04:29:39     Linphone crashes when answering call (libspeex)

Mike Bunke (GERMANY)

Message: 86662   

 

I am using BF518F-EZBRD and the 2009R1.1-rc4 kernel, built with changes only in device drivers (audio), bf canned demos (linphone) and bf build option - binary format (FDPIC).

 

I get an error everytime I make a call and this call is answered:

 

Linphone crashes...

 

 

 

U-Boot 2008.10 (ADI-2009R1.1-rc1) (Dec  4 2009 - 03:18:46)

 

CPU:   ADSP bf518-0.0 (Detected Rev: 0.1) (parallel flash boot)

Board: ADI BF518F EZ-Board board

       Support:   blackfin.uclinux.org/

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:22:FE:5F:94

Hit any key to stop autoboot:  0

CID information:

Manufacturer ID:       03

OEM/Application ID:    5344

Product name:          SD256

Product Revision:      8.0

Product Serial Number: 555548002

Manufacturing Date:    03/11

SD Card detected (RCA 43004)

CSD information:

CSD structure version:   1.0

Card command classes:    5f5

Max trans speed: 25MHz

Read block length:       512

Write block length:      16

Card capacity:          252968960 bytes

 

reading uimage118

 

4434274 bytes read

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   Linux-2.6.28.10-ADI-2009R1.1

   Created:      2010-01-29   7:27:15 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    4434210 Bytes =  4.2 MB

   Load Address: 00001000

   Entry Point:  001b8e10

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

runk/git-11fe486) ) #16 Fri Jan 29 08:27:10 CET 2010

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0012d5c0

  rodata    = 0x0012d5c0-0x00183798

  bss       = 0x00184000-0x00196ad4

  data      = 0x00196ad4-0x001ac000

    stack   = 0x001aa000-0x001ac000

  init      = 0x001ac000-0x00866000

  available = 0x00866000-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 1

Blackfin support (C) 2004-2009 Analog Devices, Inc.

Compiled for ADSP-BF518 Rev 0.0

Warning: Compiled for Rev 0, but running on Rev 1

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 400 MHz core clock and 80 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-back)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16001

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial

,uart0,57600 console=ttyBF0,57600

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

Console: colour dummy device 80x25

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 55336k/65536k RAM, (6888k init code, 1201k kernel code, 507k d

ata, 1024k dma, 576k reserved)

Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (15 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 32 KB (26 KB free)

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

ezbrd_init(): registering device resources

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

NET: Registered protocol family 1

msgmni has been set to 108

io scheduler noop registered (default)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART

brd: module loaded

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_

clk=2500000Hz(mdc_div=15)@sclk=80MHz)

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b

ase@ffc00500, dma channel@7

bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b

ase@ffc03400, dma channel@5

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

i2c /dev entries driver

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base

@ffc01400

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Advanced Linux Sound Architecture Driver Version 1.0.18rc3.

ASoC version 0.13.2

dma rx:3 tx:4, err irq:15, regs:ffc00800

ssm2602 Audio Codec 0.1<6>dma_alloc_init: dma_page @ 0x03a78000 - 256 pages at 0

x03f00000

asoc: SSM2602 <-> bf5xx-i2s mapping ok

ALSA device list:

  #0: bf5xx_ssm2602 (SSM2602)

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 11:18:44 UTC (40724)

Freeing unused kernel memory: 6888k freed

 

root:/> ifconfig eth0 192.168.19.3 netmask 255.255.255.0

root:/> PHY: 0:01 - Link is Up - 100/Full

 

root:/> route add default gw 192.168.19.1

root:/> ifconfig

eth0      Link encap:Ethernet  HWaddr 82:1D:F9:74:AE:7C

          inet addr:192.168.19.3  Bcast:192.168.19.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:1 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:243 (243.0 B)  TX bytes:0 (0.0 B)

 

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

root:/> route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.19.0    *               255.255.255.0   U     0      0        0 eth0

default         192.168.19.1    0.0.0.0         UG    0      0        0 eth0

root:/> ping -c 3 209.85.135.147

PING 209.85.135.147 (209.85.135.147): 56 data bytes

64 bytes from 209.85.135.147: seq=0 ttl=54 time=24.000 ms

64 bytes from 209.85.135.147: seq=1 ttl=54 time=20.000 ms

64 bytes from 209.85.135.147: seq=2 ttl=54 time=16.000 ms

 

--- 209.85.135.147 ping statistics ---

3 packets transmitted, 3 packets received, 0% packet loss

round-trip min/avg/max = 16.000/20.000/24.000 ms

root:/> linphonec                                      

NLS disabled.                                          

ALSA lib ../../alsa-lib-1.0.18/src/conf.c:3952:(snd_config_expand) Unknown parameters 0

ALSA lib ../../../alsa-lib-1.0.18/src/control/control.c:909:(snd_ctl_open_noupdate) Invalid CTL default:0

Ready                                                                                                  

Warning: video is disabled in linphonec, use -V or -C or -D to enable.                                  

linphonec> soundcard list                                                                              

0: ALSA: default device                                                                                

1: ALSA: bf5xx_ssm2602                                                                                  

2: OSS: /dev/dsp                                                                                       

linphonec> soundcard use 1                                                                              

Using sound device ALSA: bf5xx_ssm2602                                                                 

linphonec> call sip:toto@192.168.1.11                                                                  

Contacting sip:toto@192.168.1.11                                                                       

linphonec> linphonec> Connected.                                                                       

linphonec> Data access misaligned address violation                                                     

- Attempted misaligned data memory or data cache access.                                              

Deferred Exception context                                                                              

CURRENT PROCESS:                                                                                       

COMM=linphonec PID=273                                                                                 

CPU = 0                                                                                                 

TEXT = 0x00300000-0x00343adc        DATA = 0x002c0adc-0x002c6428                                       

BSS = 0x002c6428-0x00380000  USER-STACK = 0x003bfeb0                                                   

 

return address: [0x004e33f2]; contents of:

0x004e33d0:  b9a0  308b  32a2  6c0d  bbcd  0908  1763  a3bb

0x004e33e0:  0d03  180b  b948  aff9  3213  3440  e0b2  2005

0x004e33f0:  9108 [9c01] 5008  9208  e438  0013  0c00  1049

0x004e3400:  b93e  e801  0000  05a4  0010  3043  40e8  3200

 

ADSP-BF518-0.0(Detected 0.1) 400(MHz CCLK) 80(MHz SCLK) (mpu off)

Linux version 2.6.28.10-ADI-2009R1.1                           

Built with gcc version 4.3.4 (ADI-trunk/git-11fe486)           

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00000024  IPEND: 0030  SYSCFG: 0006

  EXCAUSE   : 0x24                         

  interrupts disabled                      

  physical IVG5 asserted : <0xffa00bbc> { _evt_ivhw + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */            

RETN: <0x0073c000> /* kernel dynamic memory */          

RETX: <0x00000480> /* Maybe fixed code section */       

RETS: <0x004e32ee> [ /usr/lib/libspeex.so.1 + 0x32ee ]  

PC  : <0x004e33f2> [ /usr/lib/libspeex.so.1 + 0x33f2 ]  

DCPLB_FAULT_ADDR: <0x007995f0> [ linphonec + 0x95f0 ]    

ICPLB_FAULT_ADDR: <0x004e33f2> [ /usr/lib/libspeex.so.1 + 0x33f2 ]

 

PROCESSOR STATE:

R0 : 00000000    R1 : 00000200    R2 : 00000001    R3 : 00000028

R4 : 00000001    R5 : 00000005    R6 : 00000000    R7 : 00000005

P0 : 00798368    P1 : 007995f0    P2 : 00000028    P3 : 000000d1

P4 : 00000028    P5 : 00000009    FP : 007992b4    SP : 0073bf24

LB0: 004e7aa5    LT0: 004e7a7e    LC0: 00000000               

LB1: 004e33f7    LT1: 004e33f0    LC1: 00000027               

B0 : 00000000    L0 : 0000000a    M0 : 00000023    I0 : 00798362

B1 : 0079845c    L1 : 00000000    M1 : 00000005    I1 : 007994ac

B2 : 007992b0    L2 : 00000000    M2 : 00798452    I2 : 00000028

B3 : 007992ac    L3 : 00000000    M3 : 0000000a    I3 : 00000008

A0.w: 00000b0c   A0.x: 00000000   A1.w: 00000c88   A1.x: 00000000

USP : 00798344  ASTAT: 02002000                                

 

Hardware Trace:

   0 Target : <0x00004d98> { _trap_c + 0x0 }

     Source : <0xffa0061a> { _exception_to_level5 + 0xae }

   1 Target : <0xffa0056c> { _exception_to_level5 + 0x0 }

     Source : <0xffa00428> { _bfin_return_from_exception + 0x18 }

   2 Target : <0xffa00410> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa004c4> { _ex_trap_c + 0x6c }                

   3 Target : <0xffa00458> { _ex_trap_c + 0x0 }                 

     Source : <0xffa006e6> { _trap + 0x5a }                     

   4 Target : <0xffa0068c> { _trap + 0x0 }                       

     Source : <0x004e33f0> [ /usr/lib/libspeex.so.1 + 0x33f0 ] 0x9108

   5 Target : <0x004e3375> [ /usr/lib/libspeex.so.1 + 0x3375 ]     

     Source : <0x004e33cc> [ /usr/lib/libspeex.so.1 + 0x33cc ] IF CC JUMP

   6 Target : <0x004e33c6> [ /usr/lib/libspeex.so.1 + 0x33c6 ]         

     Source : <0x004e3391> [ /usr/lib/libspeex.so.1 + 0x3391 ]         

   7 Target : <0x004e3340> [ /usr/lib/libspeex.so.1 + 0x3340 ]         

     Source : <0x004e344c> [ /usr/lib/libspeex.so.1 + 0x344c ] JUMP.S  

   8 Target : <0x004e3441> [ /usr/lib/libspeex.so.1 + 0x3441 ]         

     Source : <0x004e344a> [ /usr/lib/libspeex.so.1 + 0x344a ] IF CC JUMP

   9 Target : <0x004e3429> [ /usr/lib/libspeex.so.1 + 0x3429 ]         

     Source : <0x004e3434> [ /usr/lib/libspeex.so.1 + 0x3434 ] IF CC JUMP

  10 Target : <0x004e340a> [ /usr/lib/libspeex.so.1 + 0x340a ]         

     Source : <0x004e32f4> [ /usr/lib/libspeex.so.1 + 0x32f4 ] IF CC JUMP

  11 Target : <0x004e32ee> [ /usr/lib/libspeex.so.1 + 0x32ee ]         

     Source : <0x004e7f66> [ /usr/lib/libspeex.so.1 + 0x7f66 ] RTS     

  12 Target : <0x004e7f5a> [ /usr/lib/libspeex.so.1 + 0x7f5a ]         

     Source : <0x004e7f76> [ /usr/lib/libspeex.so.1 + 0x7f76 ] JUMP.S  

  13 Target : <0x004e7f68> [ /usr/lib/libspeex.so.1 + 0x7f68 ]         

     Source : <0x004e7f52> [ /usr/lib/libspeex.so.1 + 0x7f52 ] IF !CC JUMP

  14 Target : <0x004e7ef8> [ /usr/lib/libspeex.so.1 + 0x7ef8 ]          

     Source : <0x004e2aea> [ /usr/lib/libspeex.so.1 + 0x2aea ] JUMP (P1)

  15 Target : <0x004e2ae2> [ /usr/lib/libspeex.so.1 + 0x2ae2 ]          

     Source : <0x004e32ea> [ /usr/lib/libspeex.so.1 + 0x32ea ] CALL pcrel

Userspace Stack                                                         

Stack info:                                                             

SP: [0x00798344] <0x00798344> [ linphonec + 0x8344 ]                   

Memory from 0x00798340 to 00799000                                     

00798340: 00000005 [004f1f8d] 007994a0  00799264  00000100  00798460  00000001  007992b0

00798360: 007992ac  00000000  00000200  00000200  fffffa00  fffffa00  00000200  00000200

00798380: 00000200  fffffa00  fffffa00  00000200  00000200  00000200  fffffa00  fffffa00

007983a0: 00000200  00000200  00000200  fffffa00  fffffa00  00000200  00000200  00000200

007983c0: fffffa00  fffffa00  00000200  00000200  00000200  fffffa00  fffffa00  00000200

007983e0: 00000200  00000200  fffffa00  fffffa00  00000200  00000200  00000200  fffffa00

00798400: fffffa00  00000200  0006fdf8  0047fffe  001a0034  00020089  00350049  008b001c

00798420: 004b0004  001e0037  0004008c  0037004b  008c001e  004b0004  001e0037  0004008c

00798440: 0037004b  008c001e  004b0004  001e0037  0004008c  0037004b  008c001e  0003821b

00798460: 0000751e  0002a6b1  0000d1b6  00001753  000013e5  00005049  0001c0de  000052be

00798480: 000046bd  0000a93f  00004ebf  00013a1f  000109a1  00008433  0000257e  00007769

007984a0: 0000284d  00001eee  0000717e  0000510f  0000a0d6  00004bee  00004846  00004143

007984c0: 0000393d  000021c3  0000297e  0000395f <0000c1ae> 00024942  0000bceb  000046eb

007984e0: 000040d9  0001152e  00026e09  00003fd7  000070f0  00002a06  00009f5e  000033bf

00798500: 00005194  00019625  0000654f  0000faf9  0000545f  0000b84f  00009ba5  00007465

00798520: 000011d2  000004a8  00000c36  000017f1  00002ad2  00004b1f  00008a51  0000537c

00798540: 00002225  0001041b  00005a66  000023b2  00005cbf  0000b740  0000286f  0000367c

00798560: 0001dc8f  0001ad2e  00011567  0000f5f6  0000769f  00005070  00006978  00005566

00798580: 000032b8  00000f11  0000e852  000071f9  00008860  0000fcf9  000064a2  000043e1

007985a0: 00001f85  00002302  00003dce  0000d38b  0000c27e  000013e9  000097e7  000011cb

007985c0: 0000325d  000090ed  00001791  00009e4a <000052e6> 00005326  000007e9  000019a5

007985e0: 00005615  000053b7  0000209e  0000492a  0001f147  000079e3  000070f6  00003d43

00798600: 00005452  00002151  00013249  000010c6  00001e4c  00003d15  000010f3  00006de9

00798620: 00004072  000027ee  00004eae  0000bcd9  00003557  00005fce  00005569  00006cb9

00798640: 00003ca3  0001a534  0000755b  000083a2  0000336d  0003f6ec  000044be  00004e19

00798660: 00005d92  0003f491  00007d91  00001f10  0000169a  00007857  0000b03d  000052d6

00798680: 000021fd  00004777  000014b7  00011c12  00011f6f  0000dd0e  00007075  00004e0d

007986a0: 00002309  00000921  0000683d  000064a9  00007186  000071de  0000fe34  0000126c

007986c0: 00006178  0000a67a  00004598  00008bf9  0001c482  0000e67d  00001e02  00002dfb

007986e0: 00004a36  000127b1  00008e0a  00003661  00007e75  00007c4e  00005c1b  0000429e

00798700: 00005e12  000226a5  00005c85  00002dc2  000051fa  00007d22  00007c48  000062aa

00798720: 0000144d  00003e3b  00000a02  0000264a  00000aa5  0000762b  0001373e  00005ae3

00798740: 00006b8a  000050fc  00001c62  0000809f  0000bc7d  0001531d  00005781  00001e2b

00798760: 000030ed  0001016a  00011734  000163a6  000045aa  0001061a  00006079  0000497a

00798780: 0000580a  0000992b  0000801f  000028e9  0000ac42  0000e2f0  000040b4  000038e4

007987a0: 000020ec  00000087  00003968  00002a3a  00004011  0000ab3f  0000c081  00007c8f

007987c0: 000055ff <0000db7c> 000040c3  00003427  00000fde  0000dcda  000086c3  000096a1

007987e0: 0000bae6  00014a7a  00005409  0000739b  00011d6a  000019a5  000085f6 <00004d10>

00798800:<0000de8e> 000092d6  00006f43  00001c4f  000076a2  00010f70  00005f4b  000084e8

00798820: 00000603  0000123e  00000b82  00004cce  0000b41e  00003a2b  00005cad  000051ab

00798840: 000044b7 <0000b976> 00010206  0000aa4b  00007deb  0001900b  0000413e  000017a5

00798860: 0006fde8  ffaafff0  ff88ffcd  0092ffb7  00ea00e1  007600b6  ff69ff86  0012ff9b

00798880: fffa004a  ffdf001d  003ffffa  001a0028  00080007  fff20034  ffebff9a  ffe6005e

007988a0: 00180028  ff29ffce  ff80ff03  fffeffdb  ffcf0020  ff88fff6  ffd8ffdd  ffc6ffe4

007988c0: 0035ffd8  004b00ad  0009ffe0  005a0049  001c004b  00b200bd  002d0065  ffe0ffe8

007988e0:<0058ffe8> 003a00f1  0003003f  ff6fffb6  000cffe2  ffadffd9  0004fff4  00030004

00798900: ff580030  003c002e  ffec0028  0012ffcd  fff50016  00320043  ffa0ffc8  000fffc5

00798920: ffcc0072  ffc7001f  0072001d  0098006c  ffc5fffd  0054ffca  001e0009  ff9dffd8

00798940:<006b0024> ffea0043  ffc0001c  ffcfffc4  002b0045  ffb00022  ffc90036  fffc0022

00798960: 0028ffd3  00330031  000fffbe  00360032  ffb00019  ffd5ffdb  fff3ffba  ff7d0024

00798980: ff9cff7e  ffccffbf  ff55ff93  ff10ff24  00690024  00530080  00620071  000e0011

007989a0: ffc90047  ff98003c  001e0021  0048000e  00ab005f  005c008a  ff1eff58  ff66ff29

007989c0: ffa8ff9c  ffba002b  000dffd7  001e008e  004a0010  ffca002e  0024ffcb  fffc003d

007989e0: ffe8ffb2  ff7cffdf  ffd8ff83  ffde0031  ffa7fff3  0010ffe4  ffcc006c  ffe2ffb6

00798a00:<004cfffc> 00e100d8  ffe9ff78  00120051  ff30fffb  ffbaff86  ffe8ffe7  00410046

00798a20: 0020ffff  005a006b  008b0069  ffd70054  00000012  ff52ffaa  0004ffd5  ffb9ffe2

00798a40: 005c007c  ffe9fffa  ffdb0012  ffeeffd0  0009fff1  ffeb000b  fff4ffe4  ffe5fff6

00798a60: ffd20025  ffe2002f  0002001e  002c0034  ffbfffe8  0054ffd9  ffd5ffc3  002e0043

00798a80: 003a0036  ff80ffc0  0024ffa3  00230073  ffcd0037  fffe0006  ffbb0020  ffb00036

00798aa0: ffc8ff69  00910073  0024ff9e  00030058  ffb8ffbd  00070018  ffccffe7  0016006c

00798ac0: ffc9ffad  ffc60029  ff8aff96  ffaeff94  ffc5ffd2  ffc40017  0010ffe7  ffadffb1

00798ae0: ffeb000b  00950062  00b000a7  002e00b1  0076004e  00ef00af  ffafff78  008d0045

00798b00: ffe40092  ff4effbc  ffddff63  002d0086  ffb1ffd1  ffbeffd4  0031ffcd  ffa1002f

00798b20: 004e0050  fff4006a  ff86ffc8  fff70047  fff00028  ffce0014  00000046  0014ffb8

00798b40: ffdaffda  fff3ffec  ffa5ff72  ff80ffae  ffd0ffa7  ff9a0007  ffb8ff96  ffa4ffc6

00798b60: ff8affa2  0088ffee  006100ba  ffd2fff4  fffafff6  ff63fffc  fff4001f  ffd6fffd

00798b80: ffca0070  ffe3003a  ffc2fffe  0008fffc  003c0025  00230034  0012ffe4  00440011

00798ba0: 00760063  00410059  008e0059  ffea006e  ff8dff93  0042ff92  000affe8  00070004

00798bc0: 00b90010  ffed003d  ffcaffee  ffeafff3  fffb001f  ffe4004a  fff1004e  00260012

00798be0: ffec000c  00a80053  0024fff6  ffd50016  ffcaffd0  00350025  009e005c  ffbf0018

00798c00: ffa4ffa7  000efffa  ffc0ffe9  ff9fffac  ffe70016  00040000  002e001e  000ffff8

00798c20: fff80040  ffda008e  fff8fff2  002cfff3  00460037  0049004f  ffd9ffe0  ffd8ffc3

00798c40: 00020016  ffef0051  004affb0  00ef00bc  004600ad  ffaefffd  ffceff71  fffd0027

00798c60: 005cffe2  001f0080  002affd1  ffb2003d  00370021  000cfffe  0023007a  ffc6ffb7

00798c80: 0003ffec  003c0022  ff5aff2e  003afffb  ffde003a  ffe0fff3  ffdbffe8  00050008

00798ca0: 000f0031  001a0047  00300028  ffa70038  001a002e  ffd90001  00680005  00040079

00798cc0: 002a001e  00420050  002a003f  fff20003  ffcbffcc  ffd1ffd0  0058ffd6  ffd8005f

00798ce0: ff880003  ff77ffc0  ffaeffbe  00090032  ffe8ffd5  0020ffa3  0053ffde  ffc8006f

00798d00: 0060003c  ffa8001b  ffe8ffe8  005a005c  00210062  001b004e  ffcd0005  ff50004e

00798d20: ff75ff15  0019ffd7  ffd7ffb6  0059007a  ff5efff7  ffc2fff8  ffd3ffd9  00170062

00798d40:<001efff2> ff84002c  feffff33  ff03fef3  000d001e  ff99004c  0032fff4  0016000d

00798d60: 003e0072  ffbd0054  ffa9ffea  0072ffbe  00f600be  01110112  ffc2ffac  004afff4

00798d80: 001e007d  001b0047  0015001d  0028003e  0006000f  ff80fff7  002affe9  003b005d

00798da0: 002e0006  ff660020  ff90ff79  ffb5ffe2  0024001d  ffbcffc8  0006ffe3  fff40008

00798dc0: 000effd5  0041006d  fff7ffcc  fffd0032  ffe80003  00810052  008d00aa  ff56ffb4

00798de0: ffa9ff4f  002c0003  009e0097  ffad0000  0062ffe8  ff8a000e  ffd6ffbd  ffc8ffd2

00798e00: ff8f000e  fff4000c  ffbeffe1  fff2ffc6 <0000fffe> 001d0024  ffb2ff74  fffbffe8

00798e20: 00260014  ffacffea  0081fff4  007e0022  0037002e  006c0053  00690010  001b004a

00798e40: 00a500a0  002f0051  fff8003b  ffc80006  ffde0012  fff30092  ffe9002f  fffc001b

00798e60: 0032ffd3  0095007e  ffd3ffca  ffc1ffd7  ff9effab  ff86ffb4  0028ffc1  ff5fffda

00798e80: ff52ff24  001aff9d  ffb5fff4  ff58ff64  0023001e  fff7004a <00380000> ffb7fffb

00798ea0: fff00037  ffdb004e  0028000c  fff80063  00d40058  000c0097  ff81ff92  ffcfffb6

00798ec0: ffacfff0  000e0028  0023ffc2  00600088  00100039  ffe2ffde  002aff86  00390069

00798ee0: fff1ffca  ffd20029  ffb6ff7f  ffa7000b  ffd40028  fffa0004  002b0086  000e0041

00798f00: 00cc0063  00ba00ea  0002ff82  ffbc0022  ffaeffd3  ffdeffdf  ffcdfff4  0068004a

00798f20: ffd3ffda  fffe0023  ffebffc6  ff5fffd0  ffecffe4  ffa2ffaa  fffa0078  ff6cffe9

00798f40: ffceffef  ffec0006  0020003d  ffe8fffc  00290014  fff90073  ffd9ffec  ffecfff1

00798f60: ff9e0004  fff4fffa  0003fffd  0025000a  000efffa  0010ffe0  ff9fff8f  0040003d

00798f80: 006e009e  ff6fffc6  000aff79  00330057  ff91ffe6  fff50002  ffd80022  ffdc009d

00798fa0: ff9affaa  0028fffa  0012ffdc  001f001d  ff94ffc2  00690053  00120037  ffc6fff0

00798fc0: 000eff57  ffe4007e  ff75ffb0  ff62ff44  ff8cffc6  ffd4ffe5  fffc0036  ffb7ffeb

00798fe0: 00290010  00120042  002e0037  00340034  00750058  00910090  ff59ff70  ffb9ff93

Return addresses in stack:

    address : <0x0000c1ae> { _sched_show_task + 0xb2 }

    address : <0x000052e6> { _show_interrupts + 0xb2 }

    address : <0x0000db7c> { _copy_process + 0xc0 }

    address : <0x00004d10> { _double_fault_c + 0x5c }

    address : <0x0000de8e> { _copy_process + 0x3d2 }

    address : <0x0000b976> { _sched_debug_show + 0x306 }

    address : <0x0058ffe8> [ /usr/lib/libasound.so.2 + 0x8ffe8 ]

    address : <0x006b0024> [ linphonec + 0x24 ]

    address : <0x004cfffc> [ linphonec + 0xfffc ]

    address : <0x001efff2> [ /lib/libc.so.0 + 0x2fff2 ]

    address : <0x0000fffe> { _do_syslog + 0x26a }

    address : <0x00380000> [ linphonec + 0x0 ]

Bus error

:/>

 

 

 

 

Some things I tried:

 

 

 

linux-yyc2:/home/mike # bfin-linux-uclibc-addr2line -f -e uClinux-dist/lib/speex/build-speex-svn-14525//libspeex/.libs/libspeex.so.1 0x33f2                                                                          

split_cb_search_shape_sign_N1                                                                                 

../../speex-svn-14525/libspeex/cb_search.c:225 

linux-yyc2:/home/mike/uClinux-dist # awk '{print FNR "\t" $0}' lib/speex/speex-svn-14525/libspeex/cb_search.c | sed -n '220,230p'

220        }

221

222        /* Update excitation */

223        /* FIXME: We could update the excitation directly above */

224        for (j=0;j<nsf;j++)

225           exc[j]=ADD32(exc[j],e[j]);

226

227        /* Update target: only update target if necessary */

228        if (update_target)

229        {

230           VARDECL(spx_word16_t *r2);

linux-yyc2:/home/mike/uClinux-dist #

 

 

 

 

 

    33d8:       cd bb           [FP -0x10] = P5;

    33da:       08 09           CC = R0 <= R1;

    33dc:       63 17           IF !CC JUMP 0x32a2 <_split_cb_search_shape_sign_N1+0xda> (BP);

    33de:       bb a3           R3 = [FP + 0x38];

    33e0:       03 0d           CC = R3 <= 0x0;

    33e2:       0b 18           IF CC JUMP 0x33f8 <_split_cb_search_shape_sign_N1+0x230>;

    33e4:       48 b9           P0 = [FP -0x30];

    33e6:       f9 af           P1 = [FP + 0x3c];

    33e8:       13 32           P2 = R3;

    33ea:       40 34           I0 = P0;

    33ec:       b2 e0 05 20     LSETUP(0x33f0 <_split_cb_search_shape_sign_N1+0x228>, 0x33f6 <_split_cb_search_shape_sign_N1+0x22e>) LC1 = P2;

    33f0:       08 91           R0 = [P1];

    33f2:       01 9c           R1 = [I0++];

    33f4:       08 50           R0 = R0 + R1;

    33f6:       08 92           [P1++] = R0;

    33f8:       38 e4 13 00     R0 = [FP + 0x4c];

    33fc:       00 0c           CC = R0 == 0x0;

    33fe:       49 10           IF !CC JUMP 0x3490 <_split_cb_search_shape_sign_N1+0x2c8>;

    3400:       3e b9           SP = [FP -0x34];

    3402:       01 e8 00 00     UNLINK;

    3406:       a4 05           (R7:4, P5:4) = [SP++];

    3408:       10 00           RTS;

    340a:       43 30           R0 = P3;

    340c:       e8 40           R0 *= R5;

    340e:       00 32           P0 = R0;

    3410:       79 b9           P1 = [FP -0x24];

    3412:       b8 e4 b7 ff     R0 = B[FP + -0x49] (Z);

    3416:       08 02           CC = R0;

    3418:       41 5c           P1 = P1 + (P0 << 0x1);

    341a:       49 30           R1 = P1;

    341c:       2c 18           IF CC JUMP 0x3474 <_split_cb_search_shape_sign_N1+0x2ac>;

 

 

 

For addition:

 

 

 

bfin> version

 

 

 

U-Boot 2008.10 (ADI-2009R1.1-rc1) (Dec 4 2009 - 03:18:46)

 

bfin>

 

...

 

root:/> version

kernel:    Linux release 2.6.28.10-ADI-2009R1.1, build #29 Thu Feb 4 09:17:35 CET 2010

toolchain: bfin-linux-uclibc-gcc release gcc version 4.3.4 (ADI-trunk/git-11fe486)

user-dist: release 2009R1.1, build #14 Thu Feb 4 09:16:28 CET 2010

root:/>

TranslateQuoteReplyEditDelete

 

 

2010-03-01 20:11:19     Re: Linphone crashes when answering call (libspeex)

Yi Li (CHINA)

Message: 86684   

 

Mike,

 

Are you using 2009R1.1 toolchain? If not, please try to use 2009r1.1-rc2 gcc.

 

Also, kernel need to be configured for bf518-0.1 (and you are setting it to bf518-0.0).

 

-Yi

QuoteReplyEditDelete

 

 

2010-03-02 05:52:36     Re: Linphone crashes when answering call (libspeex)

Robin Getz (UNITED STATES)

Message: 86718   

 

Mike:

 

I think there is a problem in the in-line assembly. (not resetting the L[0-4] registers - per the ABI)

 

Try something like:

 

Index: libspeex/lpc_bfin.h

===================================================================

--- libspeex/lpc_bfin.h (revision 9458)

+++ libspeex/lpc_bfin.h (working copy)

@@ -108,6 +108,7 @@

             "[P1--] = R3;\n\t"

             "P0 += 4;\n\t"

          "LOOP_END pitch%=;\n\t"

+        "L0 = 0;\n\t"

    : : "m" (xs), "m" (x), "m" (ac32top), "m" (N_lag), "m" (lag_1), "m" (nshift)

    : "A0", "A1", "P0", "P1", "P2", "P3", "P4", "R0", "R1", "R2", "R3", "R4", "I0", "I1", "L0", "L1", "B0", "B1", "memory",

      "ASTAT" BFIN_HWLOOP0_REGS BFIN_HWLOOP1_REGS

Index: libspeex/filters_bfin.h

===================================================================

--- libspeex/filters_bfin.h     (revision 9458)

+++ libspeex/filters_bfin.h     (working copy)

@@ -52,7 +52,7 @@

    "LOOP_END norm_max%=;\n\t"

    : "=&d" (max_val)

    : "a" (x), "a" (len)

-   : "R1", "R2", "ASTAT" BFIN_HWLOOP0_REGS

+   : "L0", "R1", "R2", "ASTAT" BFIN_HWLOOP0_REGS

    );

 

    sig_shift=0;

Index: libspeex/vq_bfin.h

===================================================================

--- libspeex/vq_bfin.h  (revision 9458)

+++ libspeex/vq_bfin.h  (working copy)

@@ -66,6 +66,7 @@

                "if cc %3 = R2;\n\t"

                "R2 += 1;\n\t"

             "LOOP_END entries_loop%=;\n\t"

+           "L0 = 0;\n\t"

             : "=&D" (dist), "=&a" (codebook), "=&d" (best_dist[0]), "=&d" (nbest[0]), "=&a" (E)

             : "a" (len-1), "a" (in), "a" (2), "d" (entries), "d" (len<<1), "1" (codebook), "4" (E), "2" (best_dist[0]), "3" (nbest[0])

             : "R0", "R1", "R2", "I0", "L0", "B0", "A0", "cc", "memory",

 

 

and let me know.

 

-Robin

QuoteReplyEditDelete

 

 

2010-03-02 07:10:02     Re: Linphone crashes when answering call (libspeex)

Mike Bunke (GERMANY)

Message: 86722   

 

I am sorry,

 

 

 

but nothing changed with the modifications.

 

Same crash messages.

 

 

 

I also changed configuration to bf518-rev0.1, no difference.

 

(Toolchain is 2009r1.1-rc2)

TranslateQuoteReplyEditDelete

 

 

2010-03-02 07:43:08     Re: Linphone crashes when answering call (libspeex)

Mike Bunke (GERMANY)

Message: 86724   

 

Okay, I could not believe that and tried again the total build process etc...

 

 

 

Now it's working!

 

 

 

Thank you so much!

TranslateQuoteReplyEditDelete

 

 

2010-03-02 11:52:04     Re: Linphone crashes when answering call (libspeex)

Robin Getz (UNITED STATES)

Message: 86730   

 

Mike:

 

No problem - it was actually someone else who identified the issue, and pointed me in the right direction.

 

-Robin

Attachments

    Outcomes