2008-06-26 06:43:21 Qt4.4.0 building webkit error
Leslie Li (CHINA)
Message: 57906
Hi all,
I'm tring to build qtembedded 4.4.0 to blackfin uclinux, and I have got GUI part works smoothly on my blackfin561 ezkit,
but when I try to build webkit, there has errors, that pthread_getattr_np function has not implemented.
I found that blackfin uclibc 0.9.29 use old version pthread lib, which has not pthread_getattr_np.
I download a patch for avr32linux, this patch implements the pthread_getattr_np function for webkit, I copy it to webkit source code, and compilation is fine, but when I run webkit example on ezkit, it crashes. I don't know whether this crash caused by this un-official patch or some other code in webkit source.
how can I solve this problem?
thanks & best regards,
Leslie
TranslateQuoteReplyEditDelete
2008-06-26 22:14:47 Re: Qt4.4.0 building webkit error
Leslie Li (CHINA)
Message: 57940
Here is the crash messages:
root:/lib> ./browser -qws
Data access misaligned address violation
- Attempted misaligned data memory or data cache access.
Defered Exception context
CURRENT PROCESS:
COMM=browser PID=148
TEXT = 0x00880000-0x008eb844 DATA = 0x00490844-0x0049628c
BSS = 0x0049628c-0x004e0000 USER-STACK = 0x004ffeb0
return address: [0x022b52fc]; contents of:
0x022b52d0: 503b 55c6 3207 5f44 916a 0c42 183c 0c7a
0x022b52e0: 1fee ae79 a052 a048 0802 17ea ac91 ae7a
0x022b52f0: c682 8bfa 0c05 9150 180c 0000 [9101] 9108
0x022b5300: 0801 13de 6c21 6c20 3215 6ffa 0c42 101c
SEQUENCER STATUS: Not tainted
SEQSTAT: 00000024 IPEND: 0030 SYSCFG: 0006
HWERRCAUSE: 0x0
EXCAUSE : 0x24
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x0087c000> /* unknown address */
RETX: <0x022b52fc> [ /lib/libQtWebKit.so.4.4.0 + 0x2b52fc ]
RETS: <0x022b52a2> [ /lib/libQtWebKit.so.4.4.0 + 0x2b52a2 ]
PC : <0x022b52fc> [ /lib/libQtWebKit.so.4.4.0 + 0x2b52fc ]
DCPLB_FAULT_ADDR: <0x00e128e8> [ browser + 0x28e8 ]
ICPLB_FAULT_ADDR: <0x022b52fc> [ /lib/libQtWebKit.so.4.4.0 + 0x2b52fc ]
PROCESSOR STATE:
R0 : 00000004 R1 : 80000000 R2 : 00000004 R3 : 00000000
R4 : 00d92ec8 R5 : 00000002 R6 : 000007ff R7 : 0000054b
P0 : 00a5c0b6 P1 : 00e128e8 P2 : 004fd7e0 P3 : 00a5c0be
P4 : 01dc0d4c P5 : 01dc2278 FP : 004fd7a8 SP : 0087bf24
LB0: 0152d965 LT0: 0152d958 LC0: 00000000
LB1: 022d10e7 LT1: 022d10cc LC1: 00000000
B0 : 00000001 L0 : 00000000 M0 : 00000000 I0 : 004fd8c0
B1 : ffffff9f L1 : 00000000 M1 : 00000000 I1 : 00000000
B2 : 00a5c0c2 L2 : 00000000 M2 : 00000000 I2 : ffffffbf
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 004fd7d4
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
USP : 004fd78c ASTAT: 02003004
Hardware Trace:
0 Target : <0x000048b4> { _trap_c + 0x0 }
Source : <0xffa00774> { _exception_to_level5 + 0xb4 }
1 Target : <0xffa006c0> { _exception_to_level5 + 0x0 }
Source : <0xffa0061c> { _ex_trap_c + 0x5c }
2 Target : <0xffa005c0> { _ex_trap_c + 0x0 }
Source : <0xffa00814> { _trap + 0x28 }
3 Target : <0xffa007ec> { _trap + 0x0 }
Source : <0x022b52fa> [ /lib/libQtWebKit.so.4.4.0 + 0x2b52fa ]
4 Target : <0x022b52de> [ /lib/libQtWebKit.so.4.4.0 + 0x2b52de ]
Source : <0x022b52ba> [ /lib/libQtWebKit.so.4.4.0 + 0x2b52ba ]
5 Target : <0x022b52a2> [ /lib/libQtWebKit.so.4.4.0 + 0x2b52a2 ]
Source : <0x022d1128> [ /lib/libQtWebKit.so.4.4.0 + 0x2d1128 ]
6 Target : <0x022d10fe> [ /lib/libQtWebKit.so.4.4.0 + 0x2d10fe ]
Source : <0x022d10ec> [ /lib/libQtWebKit.so.4.4.0 + 0x2d10ec ]
7 Target : <0x022d10ac> [ /lib/libQtWebKit.so.4.4.0 + 0x2d10ac ]
Source : <0x022b529e> [ /lib/libQtWebKit.so.4.4.0 + 0x2b529e ]
8 Target : <0x022b5280> [ /lib/libQtWebKit.so.4.4.0 + 0x2b5280 ]
Source : <0x022b4e6e> [ /lib/libQtWebKit.so.4.4.0 + 0x2b4e6e ]
9 Target : <0x022b4e50> [ /lib/libQtWebKit.so.4.4.0 + 0x2b4e50 ]
Source : <0x024d3750> [ /lib/libQtWebKit.so.4.4.0 + 0x4d3750 ]
10 Target : <0x024d373c> [ /lib/libQtWebKit.so.4.4.0 + 0x4d373c ]
Source : <0x02174540> [ /lib/libQtWebKit.so.4.4.0 + 0x174540 ]
11 Target : <0x02174538> [ /lib/libQtWebKit.so.4.4.0 + 0x174538 ]
Source : <0x0217c544> [ /lib/libQtWebKit.so.4.4.0 + 0x17c544 ]
12 Target : <0x0217c52c> [ /lib/libQtWebKit.so.4.4.0 + 0x17c52c ]
Source : <0x0217c524> [ /lib/libQtWebKit.so.4.4.0 + 0x17c524 ]
13 Target : <0x0217c4f6> [ /lib/libQtWebKit.so.4.4.0 + 0x17c4f6 ]
Source : <0x0217c4e8> [ /lib/libQtWebKit.so.4.4.0 + 0x17c4e8 ]
14 Target : <0x0217c4e4> [ /lib/libQtWebKit.so.4.4.0 + 0x17c4e4 ]
Source : <0x0217c596> [ /lib/libQtWebKit.so.4.4.0 + 0x17c596 ]
15 Target : <0x0217c594> [ /lib/libQtWebKit.so.4.4.0 + 0x17c594 ]
Source : <0x0217c49c> [ /lib/libQtWebKit.so.4.4.0 + 0x17c49c ]
Stack from 0087bf04:
00000000 ffa00778 0019e56c 0019e56c 0019e568 04000021 00000000 01e0caac
022b52fc 00000030 00000024 00000000 0087c000 022b52fc 022b52fc 022b52a2
00000004 02003004 022d10e7 0152d965 022d10cc 0152d958 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00a5c0c2 ffffff9f 00000001
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
004fd7d4 ffffffbf 00000000 004fd8c0 004fd78c 004fd7a8 01dc2278 01dc0d4c
Call Trace:
Bus error
TranslateQuoteReplyEditDelete
2008-06-26 22:40:45 Re: Qt4.4.0 building webkit error
Yi Li (CHINA)
Message: 57943
You can follow this doc to analyze the trace: http://docs.blackfin.uclinux.org/doku.php?id=debuging_applications.
Also please make sure the stack is not overflowed.
QuoteReplyEditDelete
2008-06-26 23:36:40 Re: Qt4.4.0 building webkit error
Leslie Li (CHINA)
Message: 57944
thank you Yi! I'll take a look at that.
best regards,
Leslie
TranslateQuoteReplyEditDelete
2008-06-27 04:45:45 Re: Qt4.4.0 building webkit error
Leslie Li (CHINA)
Message: 57951
I found that when I use bfin-linux-uclibc-ldd libQtWebkit.so, it will segmentation fault.
other libs, like libQtCore.so, will be fine with ldd.
why this happen?
TranslateQuoteReplyEditDelete
2008-06-27 12:28:49 Re: Qt4.4.0 building webkit error
Mike Frysinger (UNITED STATES)
Message: 57965
post the library as an attachment
QuoteReplyEditDelete
2008-06-27 13:45:12 Re: Qt4.4.0 building webkit error
Leslie Li (CHINA)
Message: 57969
here is the libQtWebkit.so.4.4.0 lib attached.
I paste pthread_getattr_np & pthread_attr_getstack from uclibc 0.9.29 onto kjs/collector.cpp, this is only modification I do on webkit source.
and the compile flags, I add -D__linux__ -DQT_NOMMU -DQ_NO_SEMAPHORE -DQT_QWS_NO_SHM -DQT_NO_QWS_MULTIPROCESS in linux-generic-g++/qmake.conf, and -D__UCLIBC__ in the Makefile in src/3rdparty/webkit/WebCore.
many thanks!
libQtWebKit.so.4.4.0.zip
TranslateQuoteReplyEditDelete
2008-06-27 15:19:33 Re: Qt4.4.0 building webkit error
Mike Frysinger (UNITED STATES)
Message: 57971
just ignore the crash ... it's nothing to do with the library you're looking at
seems we need to add sysroot/relocatable support to ldd ...
QuoteReplyEditDelete
2008-06-27 22:35:26 回复: Re: Qt4.4.0 building webkit error
Leslie Li (CHINA)
Message: 57977
is libQtGui.so in different type with libQtWebkit? is this the reason that webkit example crashes while running on board?