[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#569571: [armel] elf_machine_rel(): misaligned memory access



Sascha Silbe a écrit :
> Package: libc6
> Version: 2.10.2-2
> Severity: important
> 
> 
> I don't understand ELF / linker stuff well enough to be sure who is to blame here, so filing against libc6 as the misaligned access is happening in ports/sysdeps/arm/dl-machine.h and a comment in elf/dynamic-link.h (line 49ff) suggests that _not_ having this occur has been an explicit goal of the code.
> 
> When trying to load the xapian python module, a misaligned memory access happens in elf_machine_rel():
> 
> (sugar-jhbuild)sascha.silbe@flatty:/media/tmp1/sugar-jhbuild/source/sugar-datastore$ gdb $(which python)
> GNU gdb (GDB) 7.0.1-debian
> Copyright (C) 2009 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "arm-linux-gnueabi".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /usr/bin/python...Reading symbols from /usr/lib/debug/usr/bin/python2.5...done.
> (no debugging symbols found)...done.
> (gdb) directory /home/sascha.silbe/src/deb/eglibc-2.10.2/elf 
> Source directories searched: /home/sascha.silbe/src/deb/eglibc-2.10.2/elf:$cdir:$cwd
> (gdb) run -c 'import xapian'
> Starting program: /usr/bin/python -c 'import xapian'
> [Thread debugging using libthread_db enabled]
> 
> Program received signal SIGBUS, Bus error.
> elf_machine_rel (scope=<value optimized out>, reloc_mode=<value optimized out>, consider_profiling=<value optimized out>) at ../ports/sysdeps/arm/dl-machine.h:429
> 429                 *reloc_addr += value;

The problem is most probably a non word aligned relocation in the
program you are trying to run or one of its library. You can list them
with objdump -R file.

In you case it seems to be /usr/lib/python2.5/site-packages/_xapian.so.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net



Reply to: