Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Segfault with Faster MDCT patch and -fPIC

Re: Segfault with Faster MDCT patch and -fPIC

From: RafaŽl Carrť <rafael.carre_at_gmail.com>
Date: Mon, 20 Sep 2010 11:44:24 +0200

On Mon, 20 Sep 2010 11:00:01 +0200
Slawomir Testowy <slawomir.testowy_at_gmail.com> wrote:

> >> (gdb) bt
> >> #0 †0x0003b3a0 in pass (z_arg=<value optimized out>,
> >> † † STEP_arg=<value optimized out>, n_arg=<value optimized out>)
> >> † † at fft-ffmpeg.c:243

0x3b3a0 ...

> (gdb) disass $pc-32 $pc+32
> A syntax error in expression, near `$pc+32'.

Try disass $pc-32,$pc+32

> (gdb) disass $pc-32
> Dump of assembler code for function pass:
> 0x0003b238 <+0>: push {r4, r5, r6, r7, r8, r9, r10,
> r11, lr} 0x0003b23c <+4>: lsl r1, r1, #2
> 0x0003b240 <+8>: sub sp, sp, #44 ; 0x2c
> 0x0003b244 <+12>: ldr r10, [pc, #1252] ;
> 0x3b730 <pass+1272> 0x0003b248 <+16>: str r1, [sp, #16]
> 0x0003b24c <+20>: ldr r3, [pc, #1248] ;
> 0x3b734 <pass+1276> 0x0003b250 <+24>: lsl r1, r2, #4
> 0x0003b254 <+28>: add r10, pc, r10
> 0x0003b258 <+32>: str r1, [sp, #20]
> 0x0003b25c <+36>: ldr r12, [sp, #20]
> 0x0003b260 <+40>: ldr r1, [r10, r3]
> 0x0003b264 <+44>: ldr r3, [sp, #16]
> 0x0003b268 <+48>: add r0, r0, r12
> 0x0003b26c <+52>: add r1, r3, r1
> 0x0003b270 <+56>: ldm r0, {r5, r6}
> 0x0003b274 <+60>: lsl r11, r2, #3
> 0x0003b278 <+64>: add r0, r0, r11
> 0x0003b27c <+68>: ldm r0, {r7, r8}
> 0x0003b280 <+72>: lsl r2, r2, #5
> 0x0003b284 <+76>: rsb r2, r11, r2
> 0x0003b288 <+80>: str r2, [sp, #24]
> 0x0003b28c <+84>: ldr r12, [sp, #24]
> 0x0003b290 <+88>: rsb r3, r8, r6
> 0x0003b294 <+92>: rsb r2, r5, r7
> 0x0003b298 <+96>: rsb r0, r12, r0
> 0x0003b29c <+100>: add r4, r7, r5
> 0x0003b2a0 <+104>: add r6, r6, r8
> 0x0003b2a4 <+108>: ldm r0, {r9, r10}
> 0x0003b2a8 <+112>: add r9, r4, r9
> 0x0003b2ac <+116>: add r10, r6, r10
> 0x0003b2b0 <+120>: sub r4, r9, r4, lsl #1
> 0x0003b2b4 <+124>: sub r6, r10, r6, lsl #1
> 0x0003b2b8 <+128>: stm r0, {r9, r10}
> 0x0003b2bc <+132>: add r0, r11, r0
> 0x0003b2c0 <+136>: ldm r0, {r9, r10}
> 0x0003b2c4 <+140>: add r9, r3, r9
> 0x0003b2c8 <+144>: add r10, r2, r10
> 0x0003b2cc <+148>: sub r7, r9, r3, lsl #1
> 0x0003b2d0 <+152>: sub r8, r10, r2, lsl #1
> 0x0003b2d4 <+156>: stm r0, {r9, r10}
> 0x0003b2d8 <+160>: add r0, r11, r0
> 0x0003b2dc <+164>: stm r0, {r4, r6}
> 0x0003b2e0 <+168>: add r0, r11, r0
> 0x0003b2e4 <+172>: stm r0, {r7, r8}
> 0x0003b2e8 <+176>: rsb r0, r12, r0
> 0x0003b2ec <+180>: add r0, r0, #8
> 0x0003b2f0 <+184>: ldm r1, {r4, r12}
> 0x0003b2f4 <+188>: ldr r2, [sp, #20]
> 0x0003b2f8 <+192>: add r0, r2, r0
> 0x0003b2fc <+196>: ldm r0, {r9, r10}
> 0x0003b300 <+200>: smull r3, r8, r12, r9
> 0x0003b304 <+204>: rsb r6, r9, #0
> 0x0003b308 <+208>: smlal r3, r8, r4, r10
> 0x0003b30c <+212>: smull r3, r6, r4, r6
> 0x0003b310 <+216>: smlal r3, r6, r12, r10
> 0x0003b314 <+220>: add r0, r11, r0

... is not shown here, can you run the commands on the same crash?

-- 
RafaŽl Carrť
Received on 2010-09-20

Page was last modified "Jan 10 2012" The Rockbox Crew
aaa