Segmentation faut on mips device
ANDREY ROZE
roseandrew at me.com
Wed Jan 8 02:30:27 EST 2014
I managed to compile the gdb debugger for the target architecture and run under gdb
That's what he gave me :
This GDB was configured as "mips-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/> ...
Reading symbols from / bin / ssh...done.
(gdb) run
Starting program: / bin / ssh
Program received signal SIGSEGV, Segmentation fault.
0x555887e0 in?? ()
I also tried to run ssh with -vvv. With the same result.
I also did an experiment . Replaced the source code to the stub ssh.c "hellow world", the program also issued a segmentation fault.
I'm not sure but it may be a bug associated with the correct configuration at compile time.
I tried to configure with default settings , but there were errors . I had to add two flag -fPIC-shared. Finally make looks like:
make LDFLAGS = "-shared-L.-Lopenbsd-compat /-fstack-protector-all" CFLAGS = "-fPIC-g-O2-Wall-Wpointer-arith-Wuninitialized-Wsign-compare-Wformat-security-Wno-pointer -sign-Wno-unused-result-fno-strict-aliasing-D_FORTIFY_SOURCE = 2 -fno-builtin-memset-fstack-protector-all
On 05 янв. 2014 г., at 14:19, Darren Tucker <dtucker at zip.com.au> wrote:
> On Sun, Jan 5, 2014 at 8:10 PM, ANDREY ROZE <roseandrew at me.com> wrote:
>> I unfortunately I am unable to run under gdb debugger as it must also be compiled. Please help solve this problem, for me it is a major obstacle .
>
> First suggest: run whichever program crashes with full debugging on
> ("ssh -vvv" for the client, "sshd -ddde" for the server) and post
> those. This might give a hint as to approximately where and what it's
> doing when it's crashing, which might be enough for someone to guess
> what's going on. Failing that, you might need to build a debugger for
> your target platform.
>
> --
> Darren Tucker (dtucker at zip.com.au)
> GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
> Good judgement comes with experience. Unfortunately, the experience
> usually comes from bad judgement.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1732 bytes
Desc: not available
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20140107/1d503a09/attachment.bin>
More information about the openssh-unix-dev
mailing list