Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - SIGSEGV:Segmentation fault while debugging in QNX Neutrino target as a virtual machine: (5 Items)
   
SIGSEGV:Segmentation fault while debugging in QNX Neutrino target as a virtual machine  
Hi,

I am new to QNX. I have created a "Hello World" qnx executable project. I am debugging it on a target (qnx image loaded 
via VMWare player). IDE is connected to target via qconn. 

Running the program works. But when I am debugging, I am getting the below error.

Thread #1 unnamed (STOPPED) (Suspended : Signal : SIGSEGV:Segmentation fault)	

Debugger console has following information. Please help.

MsgNak received - resending
Remote target is little-endian
warning: Shared object "/home/uib55281/qnx700/target/qnx7/x86_64/lib/libc.so.4" could not be validated and will be 
ignored.
warning: Could not load shared library symbols for /usr/lib/ldqnx-64.so.2.
Do you need "set solib-search-path" or "set sysroot"?
warning: Host file /usr/lib/ldqnx-64.so.2 does not match target file <?>
0x000000010004f5d0 in ?? ()

Program received signal SIGSEGV, Segmentation fault.
0x0000000100052143 in ?? ()



Attachment: Image qnx_debug_error.jpg 324.8 KB
Re: SIGSEGV:Segmentation fault while debugging in QNX Neutrino target as a virtual machine  
Does your target reports that is x86_64 or x86?
Both your host is target have 7.0?

On 2019-07-30 8:19 a.m., Ganesha Mulleria wrote:
> Hi,
>
> I am new to QNX. I have created a "Hello World" qnx executable project. I am debugging it on a target (qnx image 
loaded via VMWare player). IDE is connected to target via qconn.
>
> Running the program works. But when I am debugging, I am getting the below error.
>
> Thread #1 unnamed (STOPPED) (Suspended : Signal : SIGSEGV:Segmentation fault)	
>
> Debugger console has following information. Please help.
>
> MsgNak received - resending
> Remote target is little-endian
> warning: Shared object "/home/uib55281/qnx700/target/qnx7/x86_64/lib/libc.so.4" could not be validated and will be 
ignored.
> warning: Could not load shared library symbols for /usr/lib/ldqnx-64.so.2.
> Do you need "set solib-search-path" or "set sysroot"?
> warning: Host file /usr/lib/ldqnx-64.so.2 does not match target file <?>
> 0x000000010004f5d0 in ?? ()
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000100052143 in ?? ()
>
>
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post119790
> To cancel your subscription to this discussion, please e-mail general-ide-unsubscribe@community.qnx.com


Re: SIGSEGV:Segmentation fault while debugging in QNX Neutrino target as a virtual machine  
My target is x86_64. (QNX SDP 7.0 x86-64 virtual machine for VMware)

Yes I have 7.0. 

Re: SIGSEGV:Segmentation fault while debugging in QNX Neutrino target as a virtual machine  
Target libc does not match host libc, its either mean its different 
architecture or different version
Did you install debug symbols for libc? In software center right click 
Install Debug symbols in Kernel & Libc package

On 2019-07-30 9:36 a.m., Ganesha Mulleria wrote:
> My target is x86_64. (QNX SDP 7.0 x86-64 virtual machine for VMware)
>
> Yes I have 7.0.
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post119792
> To cancel your subscription to this discussion, please e-mail general-ide-unsubscribe@community.qnx.com


Re: SIGSEGV:Segmentation fault while debugging in QNX Neutrino target as a virtual machine  
Thanks for the suggestion. I just installed kernel and libc package via software center.
It is working now. I can debug.
Thanks again.