Hi Santhosh,
On Mar 5, 9:25 am, Santhosh <
santhosh.ragha...@gmail.com> wrote:
> Hi,
>
> Yes I tried opkg update & then followed by opkg install gdb. but here
> gdb was getting failed.
>
> ok I will try installing the gdb manually as suggested by Max & see
> whether I am able to back trace the problem.
>
> A standalone application is working but when the same is included in a
> multi threaded application it is resulting in segmentation faults. Can
> it be because of different compiler options used in different
> application.
>
Is your application top secret, or can you show us the code?
Did you ever try running it on an x86 PC? Does it show the same
problems?
It should be quite easy to get gdb running on a PC and debug the core
dump.
> Moreover, I want to know whether usage of STRIP symbols of application
> could cause any runtime issue. Because the objdump of the application
> shows in many functions with declaration as "undefined instruction
> with some address". But if I dont strip the application then I could
> see this undefined instruction disappering in many function.
Usually strip does not do anything bad, but you can just run the app
un-stripped and see what happens.
>
> I am not using any specific processor commands it is just C code.
>
> Is there any other ways of debugging this Segmentation fault.
As I said above source code might help to make a code review.
... given enough eyeballs all bugs are shallow ...
Regards,
Robert
--
Robert Berger
Embedded Software Specialist
Reliable Embedded Systems
Consulting Training Engineering
Tel.:
(+30) 697 593 3428
Fax.:
(+30) 210 684 7881
URL:
http://www.reliableembeddedsystems.com