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

Bug#487396: Missing link error on ARM



On 6/24/08, Matthias Klose <doko@cs.tu-berlin.de> wrote:
> Is this arm only, or armel as well?

armel too.

I have /proc/cpu/alignment set to 5 and it's doing an unaligned word access

under gdb (and gcc -g):

Program received signal SIGBUS, Bus error.
0x400d2cd0 in std::string::assign () from /usr/lib/libstdc++.so.6
(gdb) bt
#0  0x400d2cd0 in std::string::assign () from /usr/lib/libstdc++.so.6
#1  0x00008680 in std::string::operator= (this=0xbe8947af, __s=0x872c "")
    at main1.cpp:18
#2  0x000085b0 in main (argc=1, argv=0xbe894914) at main1.cpp:30
(gdb)

Set to the usual value of 1 (give garbage values):

Program received signal SIGSEGV, Segmentation fault.
0x400d2cec in std::string::assign () from /usr/lib/libstdc++.so.6
(gdb) bt
#0  0x400d2cec in std::string::assign () from /usr/lib/libstdc++.so.6
#1  0x00008680 in std::string::operator= (this=0xbec237af, __s=0x872c "")
    at main1.cpp:18
#2  0x000085b0 in main (argc=1, argv=0xbec23914) at main1.cpp:30
(gdb)

or 3 (fixup):

Program received signal SIGSEGV, Segmentation fault.
0x400d2cec in std::string::assign () from /usr/lib/libstdc++.so.6
(gdb) bt
#0  0x400d2cec in std::string::assign () from /usr/lib/libstdc++.so.6
#1  0x00008680 in std::string::operator= (this=0xbe9ce7af, __s=0x872c "")
    at main1.cpp:18
#2  0x000085b0 in main (argc=1, argv=0xbe9ce914) at main1.cpp:30
(gdb)

Hope this helps



Reply to: