2008-07-22 11:19:32 munmap of non-mmaped memory by process 159 (ipkg-cl) on stamp bf537
Oussema Harbi (TUNISIA)
Message: 59237
I compiled ipkg for the blackfin processor -using the tool chain- ,and installed it on a bf53 stamp board
-i just copied ipkg binary and library file liipkg.so - ,it works normally when updating packages lists ,or listing them or downlaoding them ,but when it comes to installing packages ,it downloads them to the /tmp directory ,and fails when extracting them to the rootfs -or when executing some scripts included with them ;the error message is :
munmap of non-mmaped memory by process 159 (ipkg-cl)
munmap of non-mmaped memory by process 159 (ipkg-cl)
Data access misaligned address violation
- Attempted misaligned data memory or data cache access.
Defered Exception context
CURRENT PROCESS:
COMM=ipkg-cl PID=164
TEXT = 0x03580040-0x0359e400 DATA = 0x0359e410-0x035a66f0
BSS = 0x035a66f0-0x035a6c90 USER-STACK = 0x035aaf68
return address: [0x0359920e]; contents of:
0x035991e0: e100 6574 307f e300 0ab9 67e7 e140 035a
0x035991f0: 300f e100 6570 e300 019b 3228 e140 035a
0x03599200: e100 6574 e300 0aaa 0c45 180a b9f0 [9228]
0x03599210: 0c45 183d e801 0000 3045 05b5 0010 e14a
SEQUENCER STATUS: Not tainted
SEQSTAT: 00002024 IPEND: 0030 SYSCFG: 0006
HWERRCAUSE: 0x0
EXCAUSE : 0x24
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x031e2000> /* unknown address */
RETX: <0x0359920e> [ ipkg-cl + 0x191ce ]
RETS: <0x03599208> [ ipkg-cl + 0x191c8 ]
PC : <0x0359920e> [ ipkg-cl + 0x191ce ]
DCPLB_FAULT_ADDR: <0xd043e268> /* unknown address */
ICPLB_FAULT_ADDR: <0x0359920e> [ ipkg-cl + 0x191ce ]
PROCESSOR STATE:
R0 : 0000080c R1 : 32d86ce3 R2 : 0000080c R3 : 031c4f40
R4 : 00000000 R5 : 00000008 R6 : 00000100 R7 : 035a9b54
P0 : 035aa134 P1 : 035aa0ac P2 : 031c4f40 P3 : 00000000
P4 : 00000000 P5 : d043e269 FP : 035a9b58 SP : 031e1f24
LB0: 03598651 LT0: 03598650 LC0: 00000000
LB1: 0358cd03 LT1: 0358ccfe LC1: 00000000
B0 : a9c4c15d L0 : 00000000 M0 : 035aab50 I0 : 00000000
B1 : 035aab50 L1 : 00000000 M1 : 035a9a10 I1 : 00000000
B2 : 035aaaf4 L2 : 00000000 M2 : 00000000 I2 : ec483d4a
B3 : 0359eb10 L3 : 00000000 M3 : 00000000 I3 : 6d1b4042
A0.w: 00000007 A0.x: 00000000 A1.w: 00000007 A1.x: 00000000
USP : 035a9b3c ASTAT: 02002002
Hardware Trace:
0 Target : <0x0000483c> { _trap_c + 0x0 }
Source : <0xffa0076c> { _exception_to_level5 + 0xb4 }
1 Target : <0xffa006b8> { _exception_to_level5 + 0x0 }
Source : <0xffa00614> { _ex_trap_c + 0x5c }
2 Target : <0xffa005b8> { _ex_trap_c + 0x0 }
Source : <0xffa0080c> { _trap + 0x28 }
3 Target : <0xffa007e4> { _trap + 0x0 }
Source : <0x0359920c> [ ipkg-cl + 0x191cc ]
4 Target : <0x03599208> [ ipkg-cl + 0x191c8 ]
Source : <0x0359a764> [ ipkg-cl + 0x1a724 ]
5 Target : <0x0359a758> [ ipkg-cl + 0x1a718 ]
Source : <0x03599204> [ ipkg-cl + 0x191c4 ]
6 Target : <0x035991fa> [ ipkg-cl + 0x191ba ]
Source : <0x0359959c> [ ipkg-cl + 0x1955c ]
7 Target : <0x0359958a> [ ipkg-cl + 0x1954a ]
Source : <0x03599564> [ ipkg-cl + 0x19524 ]
8 Target : <0x0359954e> [ ipkg-cl + 0x1950e ]
Source : <0x0359955c> [ ipkg-cl + 0x1951c ]
9 Target : <0x0359954e> [ ipkg-cl + 0x1950e ]
Source : <0x0359955c> [ ipkg-cl + 0x1951c ]
10 Target : <0x03599558> [ ipkg-cl + 0x19518 ]
Source : <0x0359954a> [ ipkg-cl + 0x1950a ]
11 Target : <0x0359952c> [ ipkg-cl + 0x194ec ]
Source : <0x035991f6> [ ipkg-cl + 0x191b6 ]
12 Target : <0x035991ea> [ ipkg-cl + 0x191aa ]
Source : <0x0359a764> [ ipkg-cl + 0x1a724 ]
13 Target : <0x0359a758> [ ipkg-cl + 0x1a718 ]
Source : <0x035991e6> [ ipkg-cl + 0x191a6 ]
14 Target : <0x035991c8> [ ipkg-cl + 0x19188 ]
Source : <0x0358ca18> [ ipkg-cl + 0xc9d8 ]
15 Target : <0x0358ca10> [ ipkg-cl + 0xc9d0 ]
Source : <0x0358ce80> [ ipkg-cl + 0xce40 ]
Stack from 031e1f04:
00000000 ffa00770 0016a56c 0016a56c 0016a568 035f1004 031c40fc ffa01d46
0359920e 00000030 00002024 00000000 031e2000 0359920e 0359920e 03599208
0000080c 02002002 0358cd03 03598651 0358ccfe 03598650 00000000 00000000
00000007 00000000 00000007 00000000 0359eb10 035aaaf4 035aab50 a9c4c15d
00000000 00000000 00000000 00000000 00000000 00000000 035a9a10 035aab50
6d1b4042 ec483d4a 00000000 00000000 035a9b3c 035a9b58 d043e269 00000000
Call Trace:
After googling on this error ,i understand that the ipkg is trying to free a non allocated memory ,and what i am asking is :is it possible to overcome this error without changing the ipkg source files ,or is it possible to include it on busybox ?
If yes please tell me how to procede.
Thank you in advance.
Oussema
QuoteReplyEditDelete
2008-07-22 21:58:26 Re: munmap of non-mmaped memory by process 159 (ipkg-cl) on stamp bf537
Mike Frysinger (UNITED STATES)
Message: 59248
the only real fix is to fix the source code. you could patch the binary, but that'd be a time sink.
integrating the code into busybox is possible, but probably wouldnt actually fix the problem you're experiencing.
QuoteReplyEditDelete
2008-07-23 06:55:25 Re: munmap of non-mmaped memory by process 159 (ipkg-cl) on stamp bf537
Oussema Harbi (TUNISIA)
Message: 59276
Thank you for the answer ,I asked David Rowetel who already integrated ipkg on busybox and he told me -almost -how to do it .
Cheers
Oussema