2010-08-24 03:27:58     mudflap option for multithreaded application

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

2010-08-24 03:27:58     mudflap option for multithreaded application

Mahalakshmi M (INDIA)

Message: 92727   

 

Hi all,

 

 

 

I am currently working in uClinux-dist-2009R1-RC1 distribution 2009R1-RC7 toolchain for a BF533 custom board. For debugging my application, i enabled the following options as mentioned in

 

              docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:debugging_applications

 

 

 

#

# Blackfin build options

#

CONFIG_FMT_USE_FLAT=y

# CONFIG_FMT_USE_SEP_DATA is not set

# CONFIG_FMT_USE_SHARED_FLAT is not set

# CONFIG_FMT_USE_FDPIC_ELF is not set

CONFIG_INSTALL_ELF_SHARED_LIBS=y

# CONFIG_INSTALL_ELF_TRIM_LIBS is not set

# CONFIG_INSTALL_FLAT_SHARED_LIBS is not set

CONFIG_USER_CFLAGS="-g -O2"

CONFIG_BLACKFIN_CHECK_STACKFLOW=y

CONFIG_BLACKFIN_CHECK_POINTER=y

CONFIG_BLACKFIN_INSTALL_UCLINUX_CONFIG=y

 

 

 

 

           

 

 

 

But during compilation of my distribution, i get the following error.

 

 

 

dhry_1.c:376: warning: control reaches end of non-void function

 

dhry_1.c: In function âProc_4â:

 

dhry_1.c:367: warning: control reaches end of non-void function

 

dhry_1.c: In function âProc_3â:

 

dhry_1.c:355: warning: control reaches end of non-void function

 

dhry_1.c: In function âProc_2â:

 

dhry_1.c:340: warning: control reaches end of non-void function

 

dhry_1.c: In function âProc_1â:

 

dhry_1.c:317: warning: control reaches end of non-void function

 

dhry_1.c: In function âmainâ:

 

dhry_1.c:283: warning: control reaches end of non-void function

 

rcp.o: In function `sink':

 

/home/linux_user1/uClinux-dist-2009R1-RC1/user/blkfin-apps/inetutils/rcp/rcp.c:838: warning: the use of LEGACY `utimes' is discouraged, use `utime'

 

rcp.o: In function `help':

 

/home/linux_user1/uClinux-dist-2009R1-RC1/user/blkfin-apps/inetutils/rcp/rcp.c:1084: undefined reference to `___mf_register'

 

/home/linux_user1/uClinux-dist-2009R1-RC1/user/blkfin-apps/inetutils/rcp/rcp.c:1089: undefined reference to `___mfwrap_fprintf'

 

rcp.o: In function `usage':

 

/home/linux_user1/uClinux-dist-2009R1-RC1/user/blkfin-apps/inetutils/rcp/rcp.c:1054: undefined reference to `___mfwrap_fprintf'

 

/home/linux_user1/uClinux-dist-2009R1-RC1/user/blkfin-apps/inetutils/rcp/rcp.c:1054: undefined reference to `___mfwrap_vfprintf'

 

/home/linux_user1/uClinux-dist-2009R1-RC1/user/blkfin-apps/inetutils/rcp/rcp.c:1054: undefined reference to `___mfwrap_fprintf'

 

/home/linux_user1/uClinux-dist-2009R1-RC1/user/blkfin-apps/inetutils/rcp/rcp.c:1057: undefined reference to `___mfwrap_fflush'

 

rcp.o: In function `response':

 

/home/linux_user1/uClinux-dist-2009R1-RC1/user/blkfin-apps/inetutils/rcp/rcp.c:1007: undefined reference to `___mf_unregister'

 

/home/linux_user1/uClinux-dist-2009R1-RC1/user/blkfin-apps/inetutils/rcp/rcp.c:1007: undefined reference to `___mfwrap_fdopen'

 

/home/linux_user1/uClinux-dist-2009R1-RC1/user/blkfin-apps/inetutils/rcp/rcp.c:1150: undefined reference to `___mfwrap_puts'

 

/home/linux_user1/uClinux-dist-2009R1-RC1/user/blkfin-apps/inetutils/rcp/rcp.c:1150: undefined reference to `___mfwrap_puts'

 

/home/linux_user1/uClinux-dist-2009R1-RC1/user/blkfin-apps/inetutils/rcp/rcp.c:1010: undefined reference to `___mfwrap_puts'

 

/home/linux_user1/uClinux-dist-2009R1-RC1/user/blkfin-apps/inetutils/rcp/rcp.c:1010: undefined reference to `___mfwrap_puts'

 

                                                                 

 

May I know what could be the problem? Kindly suggest.

 

 

 

 

 

Regards,

 

Maha

 

QuoteReplyEditDelete

 

 

2010-08-24 03:33:46     Re: mudflap option for multithreaded application

Mike Frysinger (UNITED STATES)

Message: 92728   

 

like the documentation shows, you need both a compiler and a linker flag in order to properly use mudflap.  the uclinux-dist build system isnt nearly clean enough to support proper linker flags everywhere, so dont bother enabling it globally.  manually apply it to the few packages you want to actually debug.

QuoteReplyEditDelete

 

 

2010-08-24 08:15:05     Re: mudflap option for multithreaded application

Mahalakshmi M (INDIA)

Message: 92730   

 

As u told i manually applied it in the application and it got crashed.Please suggest ur views.

 

-------------CURn_GLOBAL_INIT Success ----defined instruction

- May be used to emulate instructions that are not defined for

   a particular processor implementation.

Deferred Exception context

CURRENT PROCESS:

COMM=Philips_NP PID=327

CPU = 0

TEXT = 0x07000000-0x0721c794        DATA = 0x04000794-0x052ce464

BSS = 0x052ce464-0x00f20000  USER-STACK = 0x00f3fe90

 

return address: [0x06201254]; contents of:

0x06201230:  0001  0000  4412  0000  0000  0000  0000  0000

0x06201240:  0000  0000  0000  0000  0000  0000  0000  0000

0x06201250:  0000  0000 [001c] 0000  11d0  0620  1200  0620

0x06201260:  0000  0000  0000  0000  1ff4  0620  8a50  0608

 

ADSP-BF533-0.6 594(MHz CCLK) 118(MHz SCLK) (mpu off)

Linux version 2.6.28.10-ADI-2009R1

Built with gcc version 4.1.2 (ADI svn)

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00062021  IPEND: 0030  SYSCFG: 0006

  EXCAUSE   : 0x21

  interrupts disabled

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

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

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

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

RETS: <0x06201260> [ Philips_NP + 0x260 ]

PC  : <0x06201254> [ Philips_NP + 0x254 ]

DCPLB_FAULT_ADDR: <0x061c3d54> [ Philips_NP + 0x3d54 ]

ICPLB_FAULT_ADDR: <0x06201254> [ Philips_NP + 0x254 ]

 

PROCESSOR STATE:

R0 : 00000000    R1 : 00000002    R2 : 061c3f0c    R3 : 00000008

R4 : 07400af8    R5 : 00f19388    R6 : 00000110    R7 : 0620134c

P0 : 0000009c    P1 : 0764df54    P2 : ffb00000    P3 : 00f79938

P4 : 061c3e24    P5 : 00f19388    FP : 06201174    SP : 06193f24

LB0: 0765f7e9    LT0: 0765f7e6    LC0: 00000000

LB1: 00f65ca1    LT1: 00f65ca0    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : ffffffe8    I0 : 07629ed0

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000000

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: 00000006   A0.x: 00000000   A1.w: 00000006   A1.x: 00000000

USP : 061c3d58  ASTAT: 02002022

 

Hardware Trace:

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

     Source : <0xffa0062a> { _exception_to_level5 + 0x9e } CALL pcrel

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

     Source : <0xffa0046c> { _bfin_return_from_exception + 0x18 } RTX

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

     Source : <0xffa004e2> { _ex_trap_c + 0x46 } JUMP.S

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

     Source : <0xffa006f4> { _trap + 0x58 } JUMP (P4)

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

     Source : <0x06201252> [ Philips_NP + 0x252 ] 0x0000

   5 Target : <0x06201250> [ Philips_NP + 0x250 ]

     Source : <0x06201268> [ Philips_NP + 0x268 ] IF CC JUMP

   6 Target : <0x06201260> [ Philips_NP + 0x260 ]

     Source : <0x0764df72> [ /lib/libc.so.0 + 0xdf72 ] RTS

   7 Target : <0x0764df60> [ /lib/libc.so.0 + 0xdf60 ]

     Source : <0xffa00bcc> { __common_int_entry + 0xcc } RTI

   8 Target : <0xffa00b6a> { __common_int_entry + 0x6a }

     Source : <0xffa00e84> { _evt_system_call + 0x64 } JUMP.S

   9 Target : <0xffa00e84> { _evt_system_call + 0x64 }

     Source : <0xffa0087c> { _system_call + 0xb8 } RTS

  10 Target : <0xffa00878> { _system_call + 0xb4 }

     Source : <0xffa00868> { _system_call + 0xa4 } IF !CC JUMP

  11 Target : <0xffa00862> { _system_call + 0x9e }

     Source : <0xffa00852> { _system_call + 0x8e } IF !CC JUMP

  12 Target : <0xffa00840> { _system_call + 0x7c }

     Source : <0xffa00860> { _system_call + 0x9c } JUMP.S

  13 Target : <0xffa0085e> { _system_call + 0x9a }

     Source : <0xffa023f4> { _schedule + 0x1a8 } RTS

  14 Target : <0xffa023e6> { _schedule + 0x19a }

     Source : <0x0018c10a> { _finish_task_switch + 0x52 } RTS

  15 Target : <0x0018c0fc> { _finish_task_switch + 0x44 }

     Source : <0x0018c0dc> { _finish_task_switch + 0x24 } IF !CC JUMP

Userspace Stack

Stack info:

SP: [0x061c3d58] <0x061c3d58> [ Philips_NP + 0x3d58 ]

FP: (0x061c3d6c)

Memory from 0x061c3d50 to 061c4000

061c3d50: 06201260  0620134c [0811200d] 60021008  0c022009  06201174  06201260 (061c3d98)

061c3d70:<00f45bf0> 076258b8  06201260  0620134c  06201438  041fe548  63fb1003  e54b2003

061c3d90: 06201260  0620134c (061c3dc4)<00f45bf0> 076258b8  0620134c  06201438  06201524

061c3db0: 07916008  61300690  10070802  0620134c  06201438 (061c3df0)<00f45bf0> 076258b8

061c3dd0: 06201438  06201524  06201610  0401e12d  44155b12  e120304b  06201438  06201524

061c3df0:(061c3e1c)<00f45bf0> 076258b8  06201524  06201610  062016fc  061c3e24  060efc68

061c3e10: 00004000  06201524  06201610 (061c3e48)<00f45bf0> 076258b8  06201610  062016fc

061c3e30: 062017e8  00004011  00000147  00000004  06201610  062016fc (061c3e74)<00f45bf0>

061c3e50: 076258b8  062016fc  062017e8  062018d4  00000000  00000000  061c3e6c  062016fc

061c3e70: 062017e8 (061c3ea0)<00f45bf0> 076258b8  062017e8  062018d4  062019c0  00000000

061c3e90:<00f513ea> 060efbf4  062017e8  062018d4 (061c3ecc)<00f45bf0> 076258b8  062018d4

061c3eb0: 062019c0  06201aac  00f53e00  0608914c  00f19388  062018d4  062019c0 (061c3ef8)

061c3ed0:<00f45bf0> 076258b8  062019c0  06201aac  06201b98  074007e0  060efc38 <00f51358>

061c3ef0: 062019c0  06201aac (061c3f24)<00f45bf0> 076258b8  06201aac  06201b98  06201c84

061c3f10: 00000000  00000000  00000000  06201aac  06201b98 (061c3f50)<00f45bf0> 076258b8

061c3f30: 06201b98  06201c84  06201d70  00000000  00000000  00000000  06201b98  06201c84

061c3f50:(061c3f7c)<00f45bf0> 076258b8  06201c84  06201d70  06201e5c  00000000  00000000

061c3f70: 00000000  06201c84  06201d70 (061c3fa8)<00f45bf0> 076258b8  06201d70  06201e5c

061c3f90: 06201f48  00000000  00000000  00000000  06201d70  06201e5c (061c3fd4)<00f45bf0>

061c3fb0: 076258b8  06201e5c  06201f48  06202034  00000000  00000000  00000000  06201e5c

061c3fd0: 06201f48 (061c4000)<00f45bf0> 076258b8  06201f48  06202034  06202120  00000000

061c3ff0: 00000000  00000000  06201f48  06202034 (061c402c)

Return addresses in stack:

   frame  1 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

   frame  2 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

   frame  3 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

   frame  4 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

   frame  5 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

   frame  6 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

   frame  7 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

    address : <0x00f513ea> [ /lib/libmudflapth.so.0 + 0x113ea ]

   frame  8 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

   frame  9 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

    address : <0x00f51358> [ /lib/libmudflapth.so.0 + 0x11358 ]

   frame 10 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

   frame 11 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

   frame 12 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

   frame 13 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

   frame 14 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

   frame 15 : <0x00f45bf0> [ /lib/libmudflapth.so.0 + 0x5bf0 ]

 

aPending for Message from tal et CN_Handleracnct

Handler Restsne CN_Handler CnPt

USB BLBW ER INITIALIzation

should never occur at CmiIsitialize

s

d ------------ -R _GLOBAL_INIT Usceess ----

  b

   Pending for y stage from hel et CN_HandlerMMnUt

i~~~~~~~~~~~~~~~~~Message Recieved

Commandgnoae is recievedl

                          aM_CMD_ID_BROWSER Command is Rx

Device Ini CaPization CommaLB  s recieved

mi3s_CN_KeyIds so437

n a data access.

Deferred Exception context

CURRENT PROCESS:

COMM=Philips_NP PID=239

CPU = 0

TEXT = 0x07000000-0x0721c794        DATA = 0x04000794-0x052ce464

BSS = 0x052ce464-0x00f20000  USER-STACK = 0x00f3fe90

 

return address: [0x0766f886]; contents of:

0x0766f860:  1fe5  0803  51fa  181c  0000  0000  0000  ac51

0x0766f870:  0c41  1807  3071  9109  520e  6460  0803  1820

0x0766f880:  322a  0c40  5a95 [bc51] bc90  1818  bc42  0c41

0x0766f890:  1802  bc8a  324a  9317  2fd6  6800  2fc7  0c40

 

ADSP-BF533-0.6 594(MHz CCLK) 118(MHz SCLK) (mpu off)

Linux version 2.6.28.10-ADI-2009R1

Built with gcc version 4.1.2 (ADI svn)

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00062026  IPEND: 0030  SYSCFG: 0006

  EXCAUSE   : 0x26

  interrupts disabled

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

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

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

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

RETS: <0x0766f462> [ /lib/libc.so.0 + 0x2f462 ]

PC  : <0x0766f886> [ /lib/libc.so.0 + 0x2f886 ]

DCPLB_FAULT_ADDR: <0x0c433fcc> /* kernel dynamic memory */

ICPLB_FAULT_ADDR: <0x0766f886> [ /lib/libc.so.0 + 0x2f886 ]

 

PROCESSOR STATE:

R0 : 0623c004    R1 : 00000ffc    R2 : 06201fd4    R3 : 0c404004

R4 : 00000008    R5 : 00f7926c    R6 : 0623cff4    R7 : 06202a0c

P0 : 06088a50    P1 : 0623cff4    P2 : 0c433fc8    P3 : 00f79268

P4 : 00f79938    P5 : 06201fd4    FP : 07629d4c    SP : 07633f24

LB0: 0765f7e9    LT0: 0765f7e6    LC0: 00000000

LB1: 00f65993    LT1: 00f6598c    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : ffffffe8    I0 : 00000000

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000000

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: 00000006   A0.x: 00000000   A1.w: 00000006   A1.x: 00000000

USP : 07629d4c  ASTAT: 02003004

 

Hardware Trace:

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

     Source : <0xffa0062a> { _exception_to_level5 + 0x9e } CALL pcrel

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

     Source : <0xffa0046c> { _bfin_return_from_exception + 0x18 } RTX

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

     Source : <0xffa004e2> { _ex_trap_c + 0x46 } JUMP.S

   3 Target : <0xffa00380> { _ex_dcplb_miss + 0x0 }

     Source : <0xffa006f4> { _trap + 0x58 } JUMP (P4)

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

     Source : <0x0766f884> [ /lib/libc.so.0 + 0x2f884 ] 0x5a95

   5 Target : <0x0766f852> [ /lib/libc.so.0 + 0x2f852 ]

     Source : <0x0766f818> [ /lib/libc.so.0 + 0x2f818 ] IF !CC JUMP

   6 Target : <0x0766f811> [ /lib/libc.so.0 + 0x2f811 ]

     Source : <0x0766f824> [ /lib/libc.so.0 + 0x2f824 ] IF CC JUMP

   7 Target : <0x0766f812> [ /lib/libc.so.0 + 0x2f812 ]

     Source : <0x0766f80e> [ /lib/libc.so.0 + 0x2f80e ] JUMP.S

   8 Target : <0x0766f7fc> [ /lib/libc.so.0 + 0x2f7fc ]

     Source : <0x0764bcde> [ /lib/libc.so.0 + 0xbcde ] JUMP (P1)

   9 Target : <0x0764bcd6> [ /lib/libc.so.0 + 0xbcd6 ]

     Source : <0x0766f45e> [ /lib/libc.so.0 + 0x2f45e ] CALL pcrel

  10 Target : <0x0766f456> [ /lib/libc.so.0 + 0x2f456 ]

     Source : <0x00f663ee> [ /lib/libpthread.so.0 + 0x63ee ] RTS

  11 Target : <0x00f663e8> [ /lib/libpthread.so.0 + 0x63e8 ]

     Source : <0x00f664dc> [ /lib/libpthread.so.0 + 0x64dc ] JUMP.S

  12 Target : <0x00f664da> [ /lib/libpthread.so.0 + 0x64da ]

     Source : <0x00f6858c> [ /lib/libpthread.so.0 + 0x858c ] RTS

  13 Target : <0x00f68586> [ /lib/libpthread.so.0 + 0x8586 ]

     Source : <0x00f68518> [ /lib/libpthread.so.0 + 0x8518 ] IF !CC JUMP

  14 Target : <0x00f68516> [ /lib/libpthread.so.0 + 0x8516 ]

     Source : <0x00000428> /* Maybe fixed code section */ RTS

  15 Target : <0x00000420> /* Maybe fixed code section */

     Source : <0x00f68514> [ /lib/libpthread.so.0 + 0x8514 ] CALL (P2)

Userspace Stack

Stack info:

SP: [0x07629d4c] <0x07629d4c> [ Philips_NP + 0x1d4c ]

FP: (0x07629d4c)

Memory from 0x07629d40 to 0762a000

07629d40: 06202034  00000000  ffffffe8 [07629d70]<0766f462> 00f79268  06202030  06201fd4

07629d60: 00000000  00000000  00000000  074007e0  07629d9c <00f655d4> 00f1b780  00f19388

07629d80: 06201e54  061c3e24  061c0004  00000008  07629da8 <00f684b6> 000013d8  07629dc8

07629da0:<00f65836> 061c3e24  00f19388  00000058  00f18e40  07629dc4  07629dc0  00005000

07629dc0: 00004004  00000004  07629fd8 <00f65d30> 07629fd8  00f194e0  00000000  ffffffff

07629de0: 00f19388  0006ff07  0006ff07  0006ff07  00000000  07629fd0  00000000  07629fd0

07629e00: 00f18a54  00000004  00f18e40  00f18a48  00f1b670  00f1b66c  07629f50  07629e3c

07629e20: 060efe24  00000013  00004813  06238004  00000000  0000011b  06088958  060efe24

07629e40: 00000000  060efc68  07400af8  06088958  80000000  00000000 <00f513ea> 060efbf4

07629e60:<00f660aa> 074007f4  060efc00 <0766f344> 06088954  00f795b0  06088cf4  074007e4

07629e80: 00f53e00  06088cf4  00f19388  00000010  060efbfc <00f47e24> 0000000c  060efc38

07629ea0:<00f5138c> 07400800  07401058  074007e0  060efc38 <00f51358> 07400800  07400800

07629ec0: 07401058  060efc40 <00f643a8> 06088958  ffffffef  fffffffe  ffffffff  ffffffff

07629ee0: ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff

07629f00: ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff

07629f20: ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  ffffffff

07629f40: ffffffff  ffffffff  ffffffff  ffffffff  00000008  00000000  00000000  00000000

07629f60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

07629f80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

07629fa0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

07629fc0: 00000000  00000000  00000000  00000000  00000002  00000000  00000000 <0764bdec>

07629fe0: 00f19388  00f7bb28  00f18a4c  046c1e18  00f1b638  00f18a80  00000003  0762685c

0762a000: 00000028

Return addresses in stack:

   frame  1 : <0x0766f462> [ /lib/libc.so.0 + 0x2f462 ]

   frame  2 : <0x00f655d4> [ /lib/libpthread.so.0 + 0x55d4 ]

    address : <0x00f684b6> [ /lib/libpthread.so.0 + 0x84b6 ]

   frame  3 : <0x00f65836> [ /lib/libpthread.so.0 + 0x5836 ]

   frame  4 : <0x00f65d30> [ /lib/libpthread.so.0 + 0x5d30 ]

    address : <0x00f513ea> [ /lib/libmudflapth.so.0 + 0x113ea ]

    address : <0x00f660aa> [ /lib/libpthread.so.0 + 0x60aa ]

    address : <0x0766f344> [ /lib/libc.so.0 + 0x2f344 ]

    address : <0x00f47e24> [ /lib/libmudflapth.so.0 + 0x7e24 ]

    address : <0x00f5138c> [ /lib/libmudflapth.so.0 + 0x1138c ]

    address : <0x00f51358> [ /lib/libmudflapth.so.0 + 0x11358 ]

    address : <0x00f643a8> [ /lib/libpthread.so.0 + 0x43a8 ]

   frame  5 : <0x0764bdec> [ /lib/libc.so.0 + 0xbdec ]

lcd_release: close()

----Close_lcd-----

freedma() : BEGIN

freedma() : END

ppi_release: close() return

freedma() : BEGIN

freedma() : END

freedma() : BEGIN

freedma() : END

QuoteReplyEditDelete

 

 

2010-08-24 12:28:17     Re: mudflap option for multithreaded application

Mike Frysinger (UNITED STATES)

Message: 92733   

 

verify your setup is sane by first testing with a simple "hello world" app

QuoteReplyEditDelete

 

 

2010-09-06 07:49:36     Re: mudflap option for multithreaded application

Mahalakshmi M (INDIA)

Message: 93178   

 

I tried with the "hellow world application " and it woks fine. Now i made the similar changes in my Application and it seems to work fine.Thanks a lot.

QuoteReplyEditDelete

 

 

2010-09-06 08:16:40     Re: mudflap option for multithreaded application

Mahalakshmi M (INDIA)

Message: 93179   

 

While running my application i got "mudflap Violations".Is there any document for "mudflap violation" if so plaese share to understand the violation better.

 

and after  that code violation i got crash inside "libmudflap.so.0 "  as follows.Is this correct?

 

root:/> *******

mudflap violation 1 (register): time=1167610034.406000 ptr=0x51aa43c size=256

pc=0x7b677be

      [0x0x7b670a2]

Nearby object 1: checked region begins 0B into and ends 255B into

mudLlCp object 0x6825914: name=`DMP/mw_src/upnp_callback.c:20 ecp_url'

bounds=[0x51aa43c,0x51aa63b] size=512 area=static check=0r/0w liveness=0

alloc time=1167610034.406000 pc=0x7b677be

number of nearby objects: 1

*******

mudflap violation 2 (register): time=1167610034.416000 ptr=0x430fc2c size=32768

pc=0x7b677be

      [0x0x7b670a2]

Nearby object 1: checked region begins 0B into and ends 32767B after

mudflap object 0x6839b8c: name=`AudioPlayBack/AudioAlgorithms/AACDecoder/AAC_Kernel.c:62 au8_SCRATCH_off_chip'

bounds=[0x430fc2c,0x430fc2c] size=1 area=static check=0r/0w liveness=0

alloc time=1167610034.416000 pc=0x7b677be

number of nearby objects: 1

D_open:

request_dma() : BEGIN

DMA CHANNEL IS ALLOCATED

request_dma() : END

AD004 LCD registers config

bfin_read_TIMER_DISABLE = 0

bfin_read_TIMER0_PERIOD = 4c8

bfin_read_TIMER0_WIDTH = 1

bfin_read_TIMER0_CONFIG = 2a9

bfin_read_TIMER1_PERIOD = 4e4b0

bfin_read_TIMER1_WIDTH = 4c8

bfin_read_TIMER1_CONFIG = 2a9

LCD_open: return

 

Lcd_open SUCCESS

Loading gsqlitedll.so  - Error Unable to load [Cannot Load Dll. gsqlitedll.so]

Undefined instruction

- May be used to emulate instructions that are not defined for

   a particular processor implementation.

Deferred Exception context

CURRENT PROCESS:

COMM=Philips_NP PID=251

CPU = 0

TEXT = 0x06000000-0x06463558        DATA = 0x04000558-0x053dd53c

BSS = 0x053dd53c-0x07b20000  USER-STACK = 0x07b3fe90

 

return address: [0x068fd8e4]; contents of:

0x068fd8c0:  0000  0000  77be  07b6  4f2e  4598  0050  0000

0x068fd8d0:  d89c  068f  d8ab  068f  2e40  07b7  0001  0000

0x068fd8e0:  0050  0000 [d8b0] 068f  d8bf  068f  2e40  07b7

0x068fd8f0:  0001  0000  0000  0000  0000  0000  0000  0000

 

ADSP-BF533-0.6 594(MHz CCLK) 118(MHz SCLK) (mpu off)

Linux version 2.6.28.10-ADI-2009R1

Built with gcc version 4.1.2 (ADI svn)

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00062021  IPEND: 0030  SYSCFG: 0006

  EXCAUSE   : 0x21

  interrupts disabled

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

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

RETN: <0x068b8000> [ Philips_NP + 0x0 ]

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

RETS: <0x068fd8e4> [ Philips_NP + 0x8e4 ]

PC  : <0x068fd8e4> [ Philips_NP + 0x8e4 ]

DCPLB_FAULT_ADDR: <0x068fd948> [ Philips_NP + 0x948 ]

ICPLB_FAULT_ADDR: <0x068fd8e4> [ Philips_NP + 0x8e4 ]

 

PROCESSOR STATE:

R0 : 068bfb34    R1 : 068f20c4    R2 : 068f1f64    R3 : 000003ae

R4 : 07500f80    R5 : 00000002    R6 : 00000000    R7 : 068fdff4

P0 : 068bfb34    P1 : 068bfb34    P2 : 068fda5c    P3 : 068f2e1c

P4 : 068fdb44    P5 : 068fd570    FP : 068fd8b0    SP : 068b7f24

LB0: 0685f7e9    LT0: 0685f7e6    LC0: 00000000

LB1: 0685d6b3    LT1: 0685d6b2    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : ffffffe8    I0 : 069ceed3

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000000

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: 00007aba   A0.x: 00000000   A1.w: 00007aba   A1.x: 00000000

USP : 068fd94c  ASTAT: 02003004

 

Hardware Trace:

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

     Source : <0xffa0062a> { _exception_to_level5 + 0x9e } CALL pcrel

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

     Source : <0xffa0046c> { _bfin_return_from_exception + 0x18 } RTX

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

     Source : <0xffa004e2> { _ex_trap_c + 0x46 } JUMP.S

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

     Source : <0xffa006f4> { _trap + 0x58 } JUMP (P4)

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

     Source : <0x07b6585c> [ /lib/libmudflap.so.0 + 0x585c ] RTS

   5 Target : <0x07b65844> [ /lib/libmudflap.so.0 + 0x5844 ]

     Source : <0x07b657ec> [ /lib/libmudflap.so.0 + 0x57ec ] RTS

   6 Target : <0x07b657e4> [ /lib/libmudflap.so.0 + 0x57e4 ]

     Source : <0x07b658b8> [ /lib/libmudflap.so.0 + 0x58b8 ] JUMP.S

   7 Target : <0x07b6589c> [ /lib/libmudflap.so.0 + 0x589c ]

     Source : <0x07b65806> [ /lib/libmudflap.so.0 + 0x5806 ] IF !CC JUMP

   8 Target : <0x07b657f2> [ /lib/libmudflap.so.0 + 0x57f2 ]

     Source : <0x07b65876> [ /lib/libmudflap.so.0 + 0x5876 ] IF CC JUMP

   9 Target : <0x07b65872> [ /lib/libmudflap.so.0 + 0x5872 ]

     Source : <0x07b65850> [ /lib/libmudflap.so.0 + 0x5850 ] IF !CC JUMP

  10 Target : <0x07b65844> [ /lib/libmudflap.so.0 + 0x5844 ]

     Source : <0x07b6585c> [ /lib/libmudflap.so.0 + 0x585c ] RTS

  11 Target : <0x07b65844> [ /lib/libmudflap.so.0 + 0x5844 ]

     Source : <0x07b657ec> [ /lib/libmudflap.so.0 + 0x57ec ] RTS

  12 Target : <0x07b657e4> [ /lib/libmudflap.so.0 + 0x57e4 ]

     Source : <0x07b658b8> [ /lib/libmudflap.so.0 + 0x58b8 ] JUMP.S

  13 Target : <0x07b6589c> [ /lib/libmudflap.so.0 + 0x589c ]

     Source : <0x07b65806> [ /lib/libmudflap.so.0 + 0x5806 ] IF !CC JUMP

  14 Target : <0x07b657f2> [ /lib/libmudflap.so.0 + 0x57f2 ]

     Source : <0x07b65876> [ /lib/libmudflap.so.0 + 0x5876 ] IF CC JUMP

  15 Target : <0x07b65872> [ /lib/libmudflap.so.0 + 0x5872 ]

     Source : <0x07b65850> [ /lib/libmudflap.so.0 + 0x5850 ] IF !CC JUMP

Userspace Stack

Stack info:

SP: [0x068fd94c] <0x068fd94c> [ Philips_NP + 0x94c ]

FP: (0x068fd9f0)

Memory from 0x068fd940 to 068fe000

068fd940: 068fdb44  068fdff4  00000000 [00000028] 068fd954  3078305b  36623778  63643637

068fd960: 0000005d  068fda40  00000028  068fd970  3078305b  00000094  63643637  2d36005d

068fd980: 38396138  0003ff26  0008ff02  0004ff01  0002ff04  0002ff04  0002ff18  0002ff06

068fd9a0: 0002ff06  0002ff06  0002ff03  0002ff01  0002ff02  0002ff02  0002ff01  0004ff03

068fd9c0: 0003ff04  0004ff05  0005ff04  0002ff03  0003ff01  0002ff02  0003ff02  0002ff01

068fd9e0: 0002ff03  0000ff21  00000000  00000000 (00000000)<07b677be> 4598503a  000c6bb0

068fda00: 068fda40  00000001  00000050  068fd998  068fd9e5  07b72e40  00000001  00000000

068fda20: 00000000  00000000  00000000 <07b677be> 459850b2  000789b0  068fda78  00000001

068fda40: 00000000  00000000  00000000  00000000  00000000  00000000  0000001c  068fd998

068fda60: 068fda0c  00000000  00000000  068fdff4  00000000  00000028  068fda7c  3078305b

068fda80: 36623778  63643637  0000005d  00000001  00000007  068fdb70  392d3237  00000054

068fdaa0: 39326338  62613630  66643066  00000050  068fda40  068fda89  00000050  068fda88

068fdac0: 00000001  00000001  00000002  068fdba8  00000000  00000000  00000000 <07b677be>

068fdae0: 4598503a  000c6bb0  068fdb28  00000001  00000050  068fdac0  068fdacf  07b72e40

068fdb00: 00000001  00000000  00000000  00000000  00000000 <07b677be> 459850b2  000789b0

068fdb20: 068fdb60  00000001  00000000  00000000  00000000  00000000  00000000  00000000

068fdb40: 0000001c  068fdac0  068fdaf4  068fda5c  068fdc24  068fdff4  00000000  00000028

068fdb60: 068fdb64  3078305b  36623778  63643637  0002005d  0002ff05  0002ff05  0005ff02

068fdb80: 0009ff01  0000004c  0004ff03  0004ff03  0004ff03  0005ff03  0002ff02  0006ff01

068fdba0: 0003ff02  0001ff01  001aff06  0000ff08  00000000  00000000 <07b677be> 45984f2e

068fdbc0: 0007c060  068fdc04  00000001  00000050  00000050  068fdba8  068fdbad  07b72e40

068fdbe0: 00000001  00000000  00000000  00000000  00000000 <07b677be> 459850b2  000789b0

068fdc00: 068fdc40  00000001  00000000  00000000  00000000  00000000  00000000  00000000

068fdc20: 0000001c  068fdba8  068fdbd4  00000000  00000000  068fdff4  00000000  00000028

068fdc40: 068fdc44  3078305b  36623778  63643637  0002005d  0002ff05  0002ff05  0002ff06

068fdc60: 00000054  00000054  0002ff05  0002ff05  0002ff06  0010ff05  6364ff20  7263005d

068fdc80: 666f736f  00000001  00000001  00000001  0000000c  068fdd70  64654d5f  00000050

068fdca0: 068fdc4c  068fdc79  07b72e40  00000001  00000000  00000050  00000050  068fdc88

068fdcc0: 068fdc97  07b72e40  00000001  00000000  00000000  00000000  00000000 <07b677be>

068fdce0: 459850b2  000789b0  068fdd28  00000001  00000000  00000000  00000000  00000000

068fdd00: 00000000  00000000  0000001c  068fdc88  068fdcbc  068bfb34  068fde40  068fdff4

068fdd20: 00000000  00000028  068fdd2c  3078305b  36623778  63643637  068f005d  068fdce8

068fdd40: 00000000  00000000  0000006c  000000a0  00000028  00000001  00000000  00000004

068fdd60: 068fde3c  642e005d  653f6c6c  0003ff2c  0002ff48  0002ff01  0002ff03  0006ff02

068fdd80: 0004ff01  0002ff01  0002ff03  0004ff03  0002ff03  0004ff03  0002ff03  0004ff03

068fdda0: 0002ff03  0004ff03  0002ff03  0004ff03  0002ff03  0004ff03  0002ff03  0004ff03

068fddc0: 0002ff03  0002ff03  0000ff30  00000000  00000000  00000000 <07b677be> 4598503a

068fdde0: 000c6bb0  068fde24  00000001  00000050  068fdd70  068fddc9  07b72e40  00000001

068fde00: 00000000  00000000  00000000  00000000 <07b677be> 459850b2  000789b0  068fde5c

068fde20: 00000001  00000000  00000000  00000000  00000000  00000000  00000000  0000001c

068fde40: 068fdd70  068fddf0  00000000  00000000  068fdff4  00000000  00000028  068fde60

068fde60: 3078305b  36623778  63643637  0000005d  00000000  00000005  068fdf54  00000054

068fde80: 00000054  00000000  00000000  00000000  00000000  00000050  068fde3c  00000050

068fdea0: 068fde6c  00000001  00000001  00000007  068fdf8c  00000000  00000000  00000000

068fdec0:<07b677be> 4598503a  000c6f98  068fdf0c  00000001  00000050  068fdea4  068fdeb3

068fdee0: 07b72e40  00000001  00000000  00000000  00000000  00000000 <07b677be> 459850b2

068fdf00: 000789b0  068fdf44  00000001  00000000  00000000  00000000  00000000  00000000

068fdf20: 00000000  0000001c  068fdea4  068fded8  068fdd0c  068fe054  068fdff4  00000000

068fdf40: 00000028  068fdf48  3078305b  36623778  63643637  0003005d  0004ff01  0002ff01

068fdf60: 000aff02  0002ff01  00000098  0002ff03  0002ff03  0002ff03  0002ff03  0002ff03

068fdf80: 0002ff03  068fff16  07b72e40  0002ff2a  0002ff01  0006ff02  0002ff01  0004ff03

068fdfa0: 0004ff03  0004ff03  0004ff03  0004ff03  0004ff03  0004ff03  0002ff03  0000ff1c

068fdfc0: 00000000  00000000  00000000 <07b677be> 4598503a  000c6f98  068fe020  00000001

068fdfe0: 00000000  00000000  00000000  00000000  00000000  00000098  00000000  00000000

068fe000: 00000050

Return addresses in stack:

   frame  1 : <0x07b677be> [ /lib/libmudflap.so.0 + 0x77be ]

    address : <0x07b677be> [ /lib/libmudflap.so.0 + 0x77be ]

    address : <0x07b677be> [ /lib/libmudflap.so.0 + 0x77be ]

    address : <0x07b677be> [ /lib/libmudflap.so.0 + 0x77be ]

    address : <0x07b677be> [ /lib/libmudflap.so.0 + 0x77be ]

    address : <0x07b677be> [ /lib/libmudflap.so.0 + 0x77be ]

    address : <0x07b677be> [ /lib/libmudflap.so.0 + 0x77be ]

    address : <0x07b677be> [ /lib/libmudflap.so.0 + 0x77be ]

    address : <0x07b677be> [ /lib/libmudflap.so.0 + 0x77be ]

    address : <0x07b677be> [ /lib/libmudflap.so.0 + 0x77be ]

    address : <0x07b677be> [ /lib/libmudflap.so.0 + 0x77be ]

    address : <0x07b677be> [ /lib/libmudflap.so.0 + 0x77be ]

lcd_release: close()

----Close_lcd-----

freedma() : BEGIN

freedma() : END

ppi_release: close() return

 

Is this correct?

QuoteReplyEditDelete

 

 

2010-09-06 11:09:50     Re: mudflap option for multithreaded application

Mike Frysinger (UNITED STATES)

Message: 93185   

 

please read the documentation:

  docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:debugging_applications#mudflap

 

QuoteReplyEditDelete

 

 

2010-09-08 08:19:05     Re: mudflap option for multithreaded application

Mahalakshmi M (INDIA)

Message: 93261   

 

Thanks a lot.

 

After removing the "message violation" i am getting "mf: erroneous reentrancy detected in `__mf_check'" . I have enabled "-fmudflap -fmudflapth -funwind-tables -fmudflapir" options in the Makefile.

 

Is there any way to dump the violations in a file? if i get violation my code gets halted but i want my application to run

QuoteReplyEditDelete

 

 

2010-09-08 11:30:09     Re: mudflap option for multithreaded application

Mike Frysinger (UNITED STATES)

Message: 93265   

 

you cant just throw more options at it.  single threading and multi threading are mutually exclusive.  once again, please read the documentation.

QuoteReplyEditDelete

Attachments

    Outcomes