2009-08-29 06:09:42     some Qt example crash...

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

2009-08-29 06:09:42     some Qt example crash...

Nikolay Chokoev (IRELAND)

Message: 79371   

 

Hi,

 

some of the Qt examples are running fine, but other of them crashed:

 

 

root:/usr/qt/examples/widgets/tetrix> ./tetrix -qws

Data access misaligned address violation

- Attempted misaligned data memory or data cache access.

Deferred Exception context

CURRENT PROCESS:

COMM=tetrix PID=225

CPU = 0

TEXT = 0x00298000-0x0029eb74        DATA = 0x002a0b74-0x002a191c

BSS = 0x002a191c-0x002c0000  USER-STACK = 0x002dfeb0

 

return address: [0x03247da0]; contents of:

0x03247d80:  8000  c08b  3800  3220  6c19  6c10  4522  5c92

0x03247d90:  5a9a  6c1a  0851  180c  0000  6c09  e127  00ff

0x03247da0: [954e] 6ff9  9909  0839  17b4  9706  2fdf  328a

0x03247db0:  6c0d  5acb  328b  34a2  0869  9e60  1804  3295

 

ADSP-BF527-0.1(Detected 0.2) 528(MHz CCLK) 132(MHz SCLK) (mpu off)

Linux version 2.6.28.10-ADI-2009R1-svn6753

Built with gcc version 4.1.2 (ADI svn)

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00060024  IPEND: 0030  SYSCFG: 0006

  EXCAUSE   : 0x24

  interrupts disabled

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

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

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

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

RETS: <0x03245fda> [ /usr/lib/libQtGui.so.4 + 0x245fda ]

PC  : <0x03247da0> [ /usr/lib/libQtGui.so.4 + 0x247da0 ]

DCPLB_FAULT_ADDR: <0x0259bcc4> [ tetrix + 0x3cc4 ]

ICPLB_FAULT_ADDR: <0x03247da0> [ /usr/lib/libQtGui.so.4 + 0x247da0 ]

 

PROCESSOR STATE:

R0 : 0259bebf    R1 : 0259bcc4    R2 : 0259bcc4    R3 : 0265c19a

R4 : aaaaaaab    R5 : 000001fa    R6 : 00000000    R7 : 000000ff

P0 : 0265c19a    P1 : 0259bcc5    P2 : 000001fb    P3 : 0259bcc4

P4 : 002d9698    P5 : 00000000    FP : 002d8698    SP : 0028bf24

LB0: 0229c965    LT0: 0229c958    LC0: 00000000

LB1: 03c270bf    LT1: 03c27094    LC1: 00000000

B0 : 0000000f    L0 : 00000000    M0 : 0259bcc4    I0 : 0259bebf

B1 : 0000022d    L1 : 00000000    M1 : 0000030a    I1 : 000007e0

B2 : 002df010    L2 : 00000000    M2 : 0000000a    I2 : 000001fc

B3 : 024fd872    L3 : 00000000    M3 : 00000000    I3 : 00000017

A0.w: 0162c859   A0.x: 00000000   A1.w: 00000859   A1.x: 00000000

USP : 002d8698  ASTAT: 02003024

 

Hardware Trace:

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

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

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

     Source : <0xffa003e6> { _bfin_return_from_exception + 0x6 } RTX

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

     Source : <0xffa0046e> { _ex_trap_c + 0x66 } JUMP.S

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

     Source : <0xffa0063e> { _trap + 0x2a } JUMP (P4)

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

     Source : <0x03247d9c> [ /usr/lib/libQtGui.so.4 + 0x247d9c ] 0xe127

   5 Target : <0x03247d9a> [ /usr/lib/libQtGui.so.4 + 0x247d9a ]

     Source : <0x03247d0e> [ /usr/lib/libQtGui.so.4 + 0x247d0e ] JUMP.S

   6 Target : <0x03247cb8> [ /usr/lib/libQtGui.so.4 + 0x247cb8 ]

     Source : <0x03245fd8> [ /usr/lib/libQtGui.so.4 + 0x245fd8 ] CALL (P1)

   7 Target : <0x03245fc2> [ /usr/lib/libQtGui.so.4 + 0x245fc2 ]

     Source : <0x03245f94> [ /usr/lib/libQtGui.so.4 + 0x245f94 ] IF !CC JUMP

   8 Target : <0x03245f80> [ /usr/lib/libQtGui.so.4 + 0x245f80 ]

     Source : <0x032dac9e> [ /usr/lib/libQtGui.so.4 + 0x2dac9e ] JUMP (P1)

   9 Target : <0x032dac5c> [ /usr/lib/libQtGui.so.4 + 0x2dac5c ]

     Source : <0x032dac54> [ /usr/lib/libQtGui.so.4 + 0x2dac54 ] IF CC JUMP

  10 Target : <0x032dac4c> [ /usr/lib/libQtGui.so.4 + 0x2dac4c ]

     Source : <0x032dac2e> [ /usr/lib/libQtGui.so.4 + 0x2dac2e ] IF CC JUMP

  11 Target : <0x032dac28> [ /usr/lib/libQtGui.so.4 + 0x2dac28 ]

     Source : <0x03c2760c> [ /lib/libgcc_s.so.1 + 0x760c ] RTS

  12 Target : <0x03c275d6> [ /lib/libgcc_s.so.1 + 0x75d6 ]

     Source : <0x03c275a4> [ /lib/libgcc_s.so.1 + 0x75a4 ] IF CC JUMP

  13 Target : <0x03c2758a> [ /lib/libgcc_s.so.1 + 0x758a ]

     Source : <0x03c26a40> [ /lib/libgcc_s.so.1 + 0x6a40 ] RTS

  14 Target : <0x03c26a1a> [ /lib/libgcc_s.so.1 + 0x6a1a ]

     Source : <0x03c269d2> [ /lib/libgcc_s.so.1 + 0x69d2 ] IF !CC JUMP

  15 Target : <0x03c269b0> [ /lib/libgcc_s.so.1 + 0x69b0 ]

     Source : <0x03c27586> [ /lib/libgcc_s.so.1 + 0x7586 ] CALL pcrel

Userspace Stack

Stack info:

SP: [0x002d8698] <0x002d8698> [ tetrix + 0x18698 ]

FP: (0x002d88c0)

Memory from 0x002d8690 to 002d9000

002d8690: 002d87d0 <032e89e0>[002d86e0]<03245fda> 00940638  002d9698  000001e0

00000000

002d86b0: 0257534c  025106c0  00000003  000000a9  00000017  000001fc  000000a9

00000017

002d86d0: 002d86df  002d9698  000001e0  00000000  002d87bc <032dd84c> 00940638 <

03c26de4>

002d86f0: 00000000  000001fc  000000a9  00000017  00000100  00937298  00010000

00000000

002d8710: 02575004  00000003  0000000b  002d8794 <03c26de4> 00937298  00000b13

002d875c

002d8730: 024b1620  002d8770  024ec100  00000080  002d875c  002d8794  00000003

00000000

002d8750: 0000000b  2a54a900  16264a95  00000003  00000000  00000000  402e0000

00000000

002d8770: 40752000  00000000  0000000b  2a54a900  00000003  00000000  00000000

ffffffff

002d8790: ffffffff  952a54a9  40a6264a  002d87bc <0322cf08> 00000000  002d87e4

024ec100

002d87b0: 002d87c4 <0320ad16> 02242c50  002d8844 <032dda12> 002d9698  002d9734

00000000

002d87d0: 002d8838  00937298  024f2ee0  024f2ee0  002d8810  002d8838  00000000

0000000b

002d87f0: 2a54a900  00000003  00000000  0000000b  2a54a900  16264a95  952a54a9

40a6264a

002d8810: 002d8830 <0322cf08> 00000000  024ec128  00000070  00000000  3fe00000

00000001

002d8830: 002d885c  002d885c  0090cb50  002d0000  025759fc  002d895c <03274c10>

002d9698

002d8850: 0251060c  00000000  002dedb8  00937298  002d9734 <00c5b960> 002d9698

002d88dc

002d8870: 002d8890 <0237baf2> 002d88a0 <0326c788> 00937298  00937298  024e28b1

002d88dc

002d8890: 002d88c4 <022b64da> 024b9280  024b9940  02510084  00000030  024b9270

00937298

002d88b0: 00937298  00000008 <03c6f348> 002d88e4 (002d88e4)<03c6f466> 024b926c

02510084

002d88d0: 002d88f4 <022b60f0> 024b9280  002d9734  024e28b0 (002d8914)<0237baf2>

00937298

002d88f0: 002d9764  002d8914 <0237baf2> 00937298  002d9734  002d8930  002d8928 <

03223838>

002d8910: 024923a0 (002d8928)<03223838> 002d8960 <03c274fe> 002d9764 (00000000)

00000000

002d8930: 00000000  00000000  00937298 <002d8964><0326c788> 002d9764  00937298

00000002

002d8950: 00000000  00937298  002d896c  002d994c <0342e3d0> 002d9734  00000000

00000000

002d8970: 00000000  00000000  00937298  024ec100  00000069  00000001  3ff00000

00000001

002d8990: 00000010  00000040  00000000  00000000  00000000  00000000  00000000

00000000

002d89b0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d89d0: 00000000  00000000  00000000  00000000  00000000  00000000  024ec100

00000001

002d89f0: 00000000  00000000  00000000  00000000  00000000  00000000  002d9d98

00000000

002d8a10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

002d9d84

002d8a30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8a50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8a70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8a90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8ab0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8ad0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8af0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8b10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8b30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8b50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00937298

002d8b70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8b90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8bb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8bd0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8bf0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8c10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8c30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8c50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8c70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8c90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8cb0: 00000000  00937298  00000000  00000000  00000000  00000000  0259240c

00000000

002d8cd0: 00000000  00000000  00000000  00000000  00000000  00000000  40360000

00000000

002d8cf0: 00000000  00000000  00000000  00000000  0258dec4  00000000  00000000

00000000

002d8d10: 00000000  00000000  00000000  00000000  40360000  00000000  00000000

00000000

002d8d30: 00000000  00000000  0258ddc4  00000000  00000000  00000000  00000000

00000000

002d8d50: 00000000  00000000  40360000  00000000  00000000  00000000  00000000

00000000

002d8d70: 0258dcc4  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8d90: 40360000  00000000  00000000  00000000  00000000  00000000  025858f0

00000000

002d8db0: 00000000  00000000  00000000  00000000  00000000  00000000  40360000

00000000

002d8dd0: 00000000  00000000  00000000  00000000  0258455c  00000000  00000000

00000000

002d8df0: 00000000  00000000  00000000  00000000  40360000  00000000  00000000

00000000

002d8e10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8e30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8e50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8e70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8e90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

002d8eb0: 00000000  00000000  00000000  40000000  00000000  40000000  00000000

4064a000

002d8ed0: 00000000  40330000  00000000  00000000  00000000  00000000  00000000

00000000

002d8ef0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

40652000

002d8f10: 00000000  40370000  00000000  00000000  00000000  00000000  00000000

40652000

002d8f30: 00000000  40370000  00000000  00000000  00000000  00000000  00000000

40652000

002d8f50: 00000000  40370000  00000000  00000000  00000000  00000000  00000000

40652000

002d8f70: 00000000  40370000  00000000  00000000  00000000  00000000  00000000

40652000

002d8f90: 00000000  40370000  00000000  00000000  00000000  00000000  00000000

40652000

002d8fb0: 00000000  40370000  00000000  00000000  00000000  00000000  00000000

40652000

002d8fd0: 00000000  40370000  00000000  00000000  00000000  00000000  00000000

00000000

002d8ff0: 00000000  00000000  00000000  00000000  00000000

Return addresses in stack:

    address : <0x032e89e0> [ /usr/lib/libQtGui.so.4 + 0x2e89e0 ]

    address : <0x03245fda> [ /usr/lib/libQtGui.so.4 + 0x245fda ]

    address : <0x03245fda> [ /usr/lib/libQtGui.so.4 + 0x245fda ]

    address : <0x03c26de4> [ /lib/libgcc_s.so.1 + 0x6de4 ]

    address : <0x03c26de4> [ /lib/libgcc_s.so.1 + 0x6de4 ]

    address : <0x0322cf08> [ /usr/lib/libQtGui.so.4 + 0x22cf08 ]

    address : <0x0320ad16> [ /usr/lib/libQtGui.so.4 + 0x20ad16 ]

    address : <0x032dda12> [ /usr/lib/libQtGui.so.4 + 0x2dda12 ]

    address : <0x0322cf08> [ /usr/lib/libQtGui.so.4 + 0x22cf08 ]

    address : <0x03274c10> [ /usr/lib/libQtGui.so.4 + 0x274c10 ]

    address : <0x00c5b960> [ /usr/lib/libQtCore.so.4 + 0x5b960 ]

    address : <0x0237baf2> [ /lib/libstdc++.so.6 + 0x7baf2 ]

    address : <0x0326c788> [ /usr/lib/libQtGui.so.4 + 0x26c788 ]

    address : <0x022b64da> [ /lib/libpthread.so.0 + 0x64da ]

    address : <0x03c6f348> [ /lib/libc.so.0 + 0x2f348 ]

   frame  1 : <0x03c6f466> [ /lib/libc.so.0 + 0x2f466 ]

    address : <0x022b60f0> [ /lib/libpthread.so.0 + 0x60f0 ]

   frame  2 : <0x0237baf2> [ /lib/libstdc++.so.6 + 0x7baf2 ]

    address : <0x0237baf2> [ /lib/libstdc++.so.6 + 0x7baf2 ]

    address : <0x03223838> [ /usr/lib/libQtGui.so.4 + 0x223838 ]

   frame  3 : <0x03223838> [ /usr/lib/libQtGui.so.4 + 0x223838 ]

    address : <0x03c274fe> [ /lib/libgcc_s.so.1 + 0x74fe ]

    address : <0x002d8964> [ tetrix + 0x18964 ]

    address : <0x0326c788> [ /usr/lib/libQtGui.so.4 + 0x26c788 ]

    address : <0x0342e3d0> [ /usr/lib/libQtGui.so.4 + 0x42e3d0 ]

Bus error

 

The hardware is a BF527-EZKIT based custom board.

 

What exactly does it means?

 

Is there any solution already?

 

 

 

Regards,

 

Nikolay

QuoteReplyEditDelete

 

 

2009-08-30 23:58:32     Re: some Qt example crash...

Sonic Zhang (CHINA)

Message: 79388   

 

The error information says:

 

Data access misaligned address violation

 

at

 

5 Target : <0x03247d9a> [ /usr/lib/libQtGui.so.4 + 0x247d9a ]  Source : <0x03247d0e> [ /usr/lib/libQtGui.so.4 + 0x247d0e ] JUMP.S

 

 

 

So, please debug the QtGui library to see why it access misaligned data.

QuoteReplyEditDelete

 

 

2009-09-16 11:31:31     Re: some Qt example crash...

Nikolay Chokoev (IRELAND)

Message: 80020   

 

I've run some experiments, as this worked before (with the ezkit '527)

 

When I build ucLinux for my board (but with "CONFIG_FB_BFIN_T350MCQB=y" (ezkit's LCD) ) it works, but when I build it for my driver it fails with:

 

Data access misaligned address violation

- Attempted misaligned data memory or data cache access.

Deferred Exception context

CURRENT PROCESS:

COMM=adiembdemo PID=280

CPU = 0

TEXT = 0x00400000-0x00452d50        DATA = 0x00250d50-0x0025f2c0

BSS = 0x0025f2c0-0x00280000  USER-STACK = 0x0029fea0

 

return address: [0x032438dc]; contents of:

0x032438b0:  862c  c081  9825  c683  5180  c40b  8000  c08b

0x032438c0:  3800  3220  6c19  6c10  4522  5c92  5a9a  6c1a

0x032438d0:  0851  180c  0000  6c09  e127  00ff [954e] 6ff9

0x032438e0:  9909  0839  17b4  9706  2fdf  328a  6c0d  5acb

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00060024  IPEND: 0030  SYSCFG: 0006

  EXCAUSE   : 0x24

  interrupts disabled

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

RETE: <0x00000000> { _do_one_initcall + 0xfffff000 }

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

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

RETS: <0x03241b2e> [ /usr/lib/libQtGui.so.4 + 0x241b2e ]

PC  : <0x032438dc> [ /usr/lib/libQtGui.so.4 + 0x2438dc ]

DCPLB_FAULT_ADDR: <0x005c00c4> [ adiembdemo + 0xc4 ]

ICPLB_FAULT_ADDR: <0x032438dc> [ /usr/lib/libQtGui.so.4 + 0x2438dc ]

 

PROCESSOR STATE:

R0 : 005c0124    R1 : 005c00c4    R2 : 005c00c4    R3 : 005d8060

R4 : aaaaaaab    R5 : 0000005f    R6 : 00000000    R7 : 000000ff

P0 : 005d8060    P1 : 005c00c5    P2 : 00000060    P3 : 005c00c4

P4 : 00000000    P5 : 00000000    FP : 0029f714    SP : 03e83f24

LB0: 014ff0b5    LT0: 014ff0a8    LC0: 00000000

LB1: 03c570b7    LT1: 03c5708c    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 005c00c4    I0 : 005c0124

B1 : 000007e0    L1 : 00000000    M1 : 00000014    I1 : 000007e0

B2 : 0000f81f    L2 : 00000000    M2 : 0000003f    I2 : 00000060

B3 : 00800080    L3 : 00000000    M3 : 0000003f    I3 : 00000020

A0.w: 01b00000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 0029f714  ASTAT: 02003024

 

Hardware Trace:

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

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

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

     Source : <0xffa003be> { _bfin_return_from_exception + 0x6 } RTX

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

     Source : <0xffa00446> { _ex_trap_c + 0x66 } JUMP.S

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

     Source : <0xffa00616> { _trap + 0x2a } JUMP (P4)

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

     Source : <0x032438d8> [ /usr/lib/libQtGui.so.4 + 0x2438d8 ] 0xe127

   5 Target : <0x032438d6> [ /usr/lib/libQtGui.so.4 + 0x2438d6 ]

     Source : <0x0324384a> [ /usr/lib/libQtGui.so.4 + 0x24384a ] JUMP.S

   6 Target : <0x032437f4> [ /usr/lib/libQtGui.so.4 + 0x2437f4 ]

     Source : <0x03241b2c> [ /usr/lib/libQtGui.so.4 + 0x241b2c ] CALL (P1)

   7 Target : <0x03241b16> [ /usr/lib/libQtGui.so.4 + 0x241b16 ]

     Source : <0x03241ae8> [ /usr/lib/libQtGui.so.4 + 0x241ae8 ] IF !CC JUMP

   8 Target : <0x03241ad4> [ /usr/lib/libQtGui.so.4 + 0x241ad4 ]

     Source : <0x032d5a4c> [ /usr/lib/libQtGui.so.4 + 0x2d5a4c ] JUMP (P1)

   9 Target : <0x032d5a10> [ /usr/lib/libQtGui.so.4 + 0x2d5a10 ]

     Source : <0x032d5a0a> [ /usr/lib/libQtGui.so.4 + 0x2d5a0a ] IF CC JUMP

  10 Target : <0x032d5a06> [ /usr/lib/libQtGui.so.4 + 0x2d5a06 ]

     Source : <0x032d59f0> [ /usr/lib/libQtGui.so.4 + 0x2d59f0 ] IF CC JUMP

  11 Target : <0x032d59e6> [ /usr/lib/libQtGui.so.4 + 0x2d59e6 ]

     Source : <0x03c57600> [ /lib/libgcc_s.so.1 + 0x7600 ] RTS

  12 Target : <0x03c575ca> [ /lib/libgcc_s.so.1 + 0x75ca ]

     Source : <0x03c57598> [ /lib/libgcc_s.so.1 + 0x7598 ] IF CC JUMP

  13 Target : <0x03c5757e> [ /lib/libgcc_s.so.1 + 0x757e ]

     Source : <0x03c56a38> [ /lib/libgcc_s.so.1 + 0x6a38 ] RTS

  14 Target : <0x03c56a10> [ /lib/libgcc_s.so.1 + 0x6a10 ]

     Source : <0x03c569ba> [ /lib/libgcc_s.so.1 + 0x69ba ] IF !CC JUMP

  15 Target : <0x03c56994> [ /lib/libgcc_s.so.1 + 0x6994 ]

     Source : <0x03c5757a> [ /lib/libgcc_s.so.1 + 0x757a ] CALL pcrel

Userspace Stack

Stack info:

SP: [0x0029f714] <0x0029f714> [ adiembdemo + 0x1f714 ]

FP: (0x0029f714)

Memory from 0x0029f710 to 002a0000

0029f710: 0029f744 [0029f75c]<03241b2e> 0233d720  00000000  000001e0  00000000

005c0db4

0029f730: 005c4320  0029f7e0  005c0db4  00000060  00000060  00000020  00000020

0029f75b

0029f750: 00000000  000001e0  00000000  0029f838 <032d7c30> 005c4320 <03c56ddc>

00000000

0029f770: 00000060  00000020  00000020  00000100  02334480  00010000  00000000

005c4288

0029f790: 00000003  0000000b  0029f810 <03c56ddc> 02334480  00000b13  0029f7d8

01571608

0029f7b0: 0029f7ec  005c0030  00000080  0029f7d8  0029f810  00000003  00000000

0000000b

0029f7d0: 2a54a900  16264a95  00000003  00000000  00000000  40100000  00000000

3ff00000

0029f7f0: 00000000  00000000  ffffffff  ffffffff  00000000  0000000b  2a54a900

16264a95

0029f810: 952a54a9  40a6264a  0029f838 <03228bd0> 00000003  0029f860  005c0030

0029f840

0029f830:<03206eaa> 00000006  0029f8c0 <032d7df6> 0029fab4  00591e38  00000003

0029f8b4

0029f850: 02334480  005c0d9c  005c0d9c  0029fab4  0029f8b4  00000000  0000000b

2a54a900

0029f870: 00000003  00000000  0000000b  2a54a900  16264a95  952a54a9  40a6264a

0029f8ac

0029f890:<03228bd0> 00000003 <02c5f70e> 011c9d28  00000000  3fe00000  00000001

0029f8d8

0029f8b0: 0029f8d8  0230a414  00290000  005c005c  0029f9d8 <03272364> 0029fab4

005c0ce0

0029f8d0: 00000003  0029fb1c  02334480  00591e38  00000000  0029fab4  11ededed

ededee00

0029f8f0: 00200000  00000000  40180000  00000000  0029f938 <03c56b14><03c56ddc>

0162e6dc

0029f910: 02334480  00000000  01571608  16254a95  2a54a900  00010000  00000000

0029f97c

0029f930: 00000003  0000000b  0029f9b0 <03c56ddc> 02334480  00000b13  0029f978

01571608

0029f950: 0029f98c  005c0030  00000080  0029f978  0029f9b0  00000003  00000000

0000000b

0029f970: 2a54a900  16264a95  00000003  00000000  ffffffff  0029f9b8 <03c5757e>

0000002e

0029f990: 00000000  0000000b  0029f9dc <03c574f6> 0000003c  0029fb28  00000000

0000003c

0029f9b0: 00000000  00000000  0029f9d8 <03228bd0> 0000002e  01571608  00000003

00000000

0029f9d0: 00000000  00000000  0029fb38 <00428ecc> 0025e788  0029fb28  00000003

00000023

0029f9f0: 00000004  00591e38  00200000  00591e78  3ff00000  0029fa84  0000007f

00000000

0029fa10: 00000000  00000000  404e0000  00000000  01571608  0044c688  0029fb1c

00010000

0029fa30: 00591e44  00591e78  00591e54  00000000  00000000  005c457c  00000000

00000000

0029fa50: 00000000  00000000  00000000  00000000  00000000  404e0000  0029fab8

00000003

0029fa70: 00000000  00000001  00007f7f  00000000  00000000  00000001  00007f7f

0000ffff

0029fa90: 03c50000  00000029  00000000  0000000b  2a54a900  00000003  00000000

0000000b

0029fab0: 2a54a900  00000000  40100000  00000000  3ff00000  0029fad8  00592f98

005c0030

0029fad0: 03c0ca88  00000000  00000000  00000000  00000028  0000002d  0029fb18 <

034a0740>

0029faf0: 005fbc54  00000029  00000000  02334480  005c41b0  00000003  011c21f0

00000000

0029fb10: 00000000  0029fb48  0029fb48  005c0ce0  005c418c  005c45d8  005c4540

00000004

0029fb30: 0025f114  00000000  0029fb9c <00425bf6> 01640ad8  0025e788  00000044

00591e20

0029fb50: 00000004  0025f114  00591e20  01640ac8  00000026  0000002a  00000004

0025f0cc

0029fb70: 0000002a  00000016  0230b578  00290000  0164a0fc  00000104  00000014

00000000

0029fb90: 00000000  0164847c  00000000  0029fd3c <00427182> 0029fd6c  01574f70

01640ac8

0029fbb0: 0029ff50  0029fdbc  0029fea4  01640ac8  00000000  0029fbe8 <012060f0>

0029fbd4

0029fbd0: 0163c858  00000030  0029fc04 <013a0b4a> 0151db28  0029fcd4  0000002c

0029fcf4

0029fbf0: 0025e788  000000a0  00000078  000000af  00000087  000000a0  00000078

0000009f

0029fc10: 00000077  0029fc48 <012064da> 01574898  01574f70  01620c50  00000030

01574888

0029fc30: 0162e6dc  0029fc8c  0029fcb4 <032b7a78> 01574898  01574f70  01620c44

0000000c

0029fc50: 01574888  0162e6dc <012060f0> 01574898  01620c48  01649e20  0029fc8c <

00773106>

0029fc70: 01574884  01620c44  0029fc9c  00000000  00000000  00000000  00000000

00000000

0029fc90: 00000000  00000000  00000000  0029fcf8 <0317dcc8> 016207f8  0029fcd4

01620c48

0029fcb0: 0029fcc4 <032b62e2><0317dcc0> 016207f8  02334480  0029fd20 <0317dcc8>

016207f8

0029fcd0: 0029fcfc  000000a0  00000078  000000af  016207d8  000000a0  01600fe0

00000800

0029fcf0: 00000078  0000009f  00000077  000000a0  00000078  0000009f  00000077

000000a0

0029fd10: 00000078  0000009f  00000077  0231d660  0029fd50 <03195b40> 02334480

01574f70

0029fd30: 0025e788  0029ff50  0029fdbc  0029fdc8 <0042557c> 0029fd6c  01574f70

0025e788

0029fd50: 0029ff50  0029fdbc  0029fea4  0029fd6c  0029fea4  00273208  00040500

0025b590

0029fd70: 0163c854  0025b674  00770000  0163c89c  01574f70  0025dae0  00000000

0025d6cc

0029fd90: 0025e788  0029fdbc <0044c23a> 0029fdbc <0044c23a> 0029ff9a  0029ff50

0029fdd8

0029fdb0:<03e02994> 0029ff3c  000002bc  02309434  01616918  00000800  0029fe64 <

00777bac>

0029fdd0: 0029ff3c  0029ff9a  0029ff50  015773d8  00000001  00000000  00000000

00000000

0029fdf0: 00000000  00000000  00000000  00000000  00000000  00000003  00400034

00000004

0029fe10: 00000020  00000005  00000007  00000006  00001000  00000007  03e00000

00000008

0029fe30: 00000000  00000009  00425274  00000000  00000000  0000000b  00000000

0000000c

0029fe50: 00000000  0000000d  00000000  0000000e  00000000  00000000 <004252a2>

00272178

0029fe70: 00425274  00272160  0029ff50  0029ff70 <00425278> 016153f0  00000002

0029ff70

0029fe90: 01615308  01615508  00272160  0029ff7c  00000002  0029ff9a  00000000

00000000

0029feb0:<0029ffac> 0029ffb3  0029ffc1  0029ffe4  00000000  00000010  00000000

00000006

0029fed0: 00001000  00000011  00000064  00000003  00400034  00000004  00000020

00000005

0029fef0: 00000007  00000007  03e00000  00000008  00000000  00000009  00425274

0000000b

0029ff10: 00000000  0000000c  00000000  0000000d  00000000  0000000e  00000000

00000017

0029ff30: 00000000  0000001f  0001ffef  00000000  00000000  00000000  00000000

00000000

0029ff50: 00020000  03e00000  00000000  0000701c  0027201c  0000b01c  00000450

00000000

0029ff70: 00020000  00400000  00000000  00052d50  00250d50  00056d50  0000e570

00000000

0029ff90: 00000000  00000000  2f2e0000  65696461  6564626d  2d006f6d  00737771

454d4f48

0029ffb0: 53002f3d  4c4c4548  69622f3d  68732f6e  54415000  622f3d48  2f3a6e69

2f727375

0029ffd0: 3a6e6962  6962732f  752f3a6e  732f7273  006e6962  4d524554  6e696c3d

2e007875

0029fff0: 6964612f  64626d65  006f6d65  00000000  00001173

Return addresses in stack:

   frame  1 : <0x03241b2e> [ /usr/lib/libQtGui.so.4 + 0x241b2e ]

   frame  2 : <0x032d7c30> [ /usr/lib/libQtGui.so.4 + 0x2d7c30 ]

    address : <0x03c56ddc> [ /lib/libgcc_s.so.1 + 0x6ddc ]

    address : <0x03c56ddc> [ /lib/libgcc_s.so.1 + 0x6ddc ]

    address : <0x03228bd0> [ /usr/lib/libQtGui.so.4 + 0x228bd0 ]

    address : <0x03206eaa> [ /usr/lib/libQtGui.so.4 + 0x206eaa ]

   frame  3 : <0x032d7df6> [ /usr/lib/libQtGui.so.4 + 0x2d7df6 ]

    address : <0x03228bd0> [ /usr/lib/libQtGui.so.4 + 0x228bd0 ]

    address : <0x02c5f70e> [ /usr/lib/libQtCore.so.4 + 0x5f70e ]

   frame  4 : <0x03272364> [ /usr/lib/libQtGui.so.4 + 0x272364 ]

    address : <0x03c56b14> [ /lib/libgcc_s.so.1 + 0x6b14 ]

    address : <0x03c56ddc> [ /lib/libgcc_s.so.1 + 0x6ddc ]

    address : <0x03c56ddc> [ /lib/libgcc_s.so.1 + 0x6ddc ]

    address : <0x03c5757e> [ /lib/libgcc_s.so.1 + 0x757e ]

    address : <0x03c574f6> [ /lib/libgcc_s.so.1 + 0x74f6 ]

    address : <0x03228bd0> [ /usr/lib/libQtGui.so.4 + 0x228bd0 ]

    address : <0x03228bd0> [ /usr/lib/libQtGui.so.4 + 0x228bd0 ]

    address : <0x034a0740> [ /usr/lib/libQtGui.so.4 + 0x4a0740 ]

   frame  6 : <0x00425bf6> [ /usr/bin/adiembdemo/adiembdemo + 0x25bf6 ]

   frame  7 : <0x00427182> [ /usr/bin/adiembdemo/adiembdemo + 0x27182 ]

    address : <0x012060f0> [ /lib/libpthread.so.0 + 0x60f0 ]

    address : <0x013a0b4a> [ /lib/libstdc++.so.6 + 0xa0b4a ]

    address : <0x012064da> [ /lib/libpthread.so.0 + 0x64da ]

    address : <0x032b7a78> [ /usr/lib/libQtGui.so.4 + 0x2b7a78 ]

    address : <0x012060f0> [ /lib/libpthread.so.0 + 0x60f0 ]

    address : <0x00773106> [ /lib/libc.so.0 + 0x33106 ]

    address : <0x0317dcc8> [ /usr/lib/libQtGui.so.4 + 0x17dcc8 ]

    address : <0x032b62e2> [ /usr/lib/libQtGui.so.4 + 0x2b62e2 ]

    address : <0x0317dcc0> [ /usr/lib/libQtGui.so.4 + 0x17dcc0 ]

    address : <0x0317dcc8> [ /usr/lib/libQtGui.so.4 + 0x17dcc8 ]

    address : <0x03195b40> [ /usr/lib/libQtGui.so.4 + 0x195b40 ]

   frame  8 : <0x0042557c> [ /usr/bin/adiembdemo/adiembdemo + 0x2557c ]

    address : <0x0044c23a> [ /usr/bin/adiembdemo/adiembdemo + 0x4c23a ]

    address : <0x0044c23a> [ /usr/bin/adiembdemo/adiembdemo + 0x4c23a ]

    address : <0x03e02994> [ /lib/ld-uClibc.so.0 + 0x2994 ]

   frame  9 : <0x00777bac> [ /lib/libc.so.0 + 0x37bac ]

   frame 10 : <0x004252a2> [ /usr/bin/adiembdemo/adiembdemo + 0x252a2 ]

    address : <0x00425278> [ /usr/bin/adiembdemo/adiembdemo + 0x25278 ]

    address : <0x0029ffac> [ adiembdemo + 0x1ffac ]

Bus error

 

As the diference between the builds is only in the LCD drive, that makes me thinking that the problem is somewhere there... but have no idea...

 

What could be the reason?

 

The LCD driver is based on the ezkit's LCD driver...

 

Regards,

 

Nikolay

QuoteReplyEditDelete

 

 

2009-09-16 14:37:57     Re: some Qt example crash...

Robin Getz (UNITED STATES)

Message: 80031   

 

Nikolay:

 

If you want us to review your driver - you need to post/attach it. Otherwise there isn't much we can do.

 

-Robin

QuoteReplyEditDelete

 

 

2009-09-16 14:52:25     Re: some Qt example crash...

Nikolay Chokoev (IRELAND)

Message: 80032   

 

Hi Robin,

 

can you do that, please. The code is not tidy up...

 

Any comments are wellcome.

 

Regards,

 

Nikolay

 

bfin-ra158z-fb.c

QuoteReplyEditDelete

 

 

2009-09-17 12:54:32     Re: some Qt example crash...

Nikolay Chokoev (IRELAND)

Message: 80086   

 

Hi,

 

these are two versions of the video driver file - one is working, the other is not.

 

The difference is only in DMA mode and the LCD timings and few settings. Cannot see something that may couse such a behaviour...

 

Any comments are wellcome.

 

Regards,

 

Nikolay

 

video.zip

QuoteReplyEditDelete

 

 

2009-09-21 07:10:05     Re: some Qt example crash...

Nikolay Chokoev (IRELAND)

Message: 80188   

 

I found where the problem is.

 

With:

    fbinfo->var.red.offset = 0;

    fbinfo->var.green.offset = 8;

    fbinfo->var.blue.offset = 16;

 

it's working, but with:

 

     fbinfo->var.red.offset = 11;

     fbinfo->var.green.offset = 5;

     fbinfo->var.blue.offset = 0;

 

it fails...

 

I'll need yours expert comments ...

 

Regards,

 

Nikolay

QuoteReplyEditDelete

 

 

2009-09-21 12:03:03     Re: some Qt example crash...

Michael Hennerich (GERMANY)

Message: 80199    Nikolay,

 

Looks like QT gets confused with your drivers COLOR formats - RGB565

versus RGB888

 

It sounds to me that you like to use RGB565...

 

Please fix your:

 

static int bfin_ra158z_fb_check_var(struct fb_var_screeninfo *var,

struct fb_info *info)

 

Function - it still tells that RGB888 is a valid format...

 

-Michael

QuoteReplyEditDelete

 

 

2009-09-22 04:49:47     Re: some Qt example crash...

Nikolay Chokoev (IRELAND)

Message: 80238   

 

Hi Michael,

 

Thank you for pointing that!

 

I've changed it to:

 

    case 16:

        var->red.offset = info->var.red.offset;

        var->green.offset = info->var.green.offset;

        var->blue.offset = info->var.blue.offset;

        var->red.length = info->var.red.length;

        var->green.length = info->var.green.length;

        var->blue.length = info->var.blue.length;

        var->transp.offset = 0;

        var->transp.length = 0;

        var->transp.msb_right = 0;

        var->red.msb_right = 0;

        var->green.msb_right = 0;

        var->blue.msb_right = 0;  

        break;

 

,but it still ffails with:

 

        fbinfo->var.red.offset = 11;

        fbinfo->var.green.offset = 5;

        fbinfo->var.blue.offset = 0;

 

Regards,

 

Nikolay

QuoteReplyEditDelete

 

 

2009-09-22 05:20:22     Re: some Qt example crash...

Michael Hennerich (GERMANY)

Message: 80242    Can you try to build QT with CONFIG_QT_DEPTH set only to 16?

 

Take a look at the Makefile...

 

-Michael

QuoteReplyEditDelete

 

 

2009-09-22 11:43:57     Re: some Qt example crash...

Nikolay Chokoev (IRELAND)

Message: 80254   

 

Building the Qt with depth 16 (only) doesn't help. Do you think that's inside the Qt? If so I can report a bug to the Qt ...

QuoteReplyEditDelete

 

 

2009-09-22 12:23:13     Re: some Qt example crash...

Nikolay Chokoev (IRELAND)

Message: 80255   

 

... it's strange, but with:

 

    fbinfo->var.red.offset = 0;

    fbinfo->var.green.offset = 8;

    fbinfo->var.blue.offset = 16;

 

the colours are corrupted only on the console. The Qt application is with perfect colours... (in 565 mode LCD driver)

QuoteReplyEditDelete

 

 

2009-09-22 12:23:15     Re: some Qt example crash...

Nikolay Chokoev (IRELAND)

Message: 80256   

 

... it's strange, but with:

 

    fbinfo->var.red.offset = 0;

    fbinfo->var.green.offset = 8;

    fbinfo->var.blue.offset = 16;

 

the colours are corrupted only on the console. The Qt application is with perfect colours... (in 565 mode LCD driver)

Attachments

Outcomes