[PATCH] sha3sum: New applet, v2
Baruch Siach
baruch at tkos.co.il
Sun Jan 6 20:11:27 UTC 2013
Hi Lauri,
On Sun, Jan 06, 2013 at 10:04:36PM +0200, Lauri Kasanen wrote:
> > The content of the r28 register is:
> >
> > (gdb) info registers
> > ...
> > r28 0x10173010 269955088
> >
> > The process' /proc/[pid]/maps file shows:
> >
> > 1014d000-10173000 rwxp 00000000 00:00 0 [heap]
> >
> > which means that we're trying to read just beyond the process allocated
> > heap.
> >
> > From the disassembly code I infer that the crash happens before the call
> > to
> > bb_bswap_64 at address 0x10050b80.
>
> Thanks.
>
> Can you also enable CONFIG_PESSIMIZE (disable gcc's optimization) and
> post the backtrace? I wonder if somehow it gets called with wrong
> arguments (end of string, but wrong size for example), those were
> optimized out in the first backtrace.
Disabling optimization may make the bug disappear, as the compiler doesn't use
legitimate optimization opportunities.
I'll try a pessimized build when I'm back at work on Tuesday.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
More information about the busybox
mailing list