I have created a custom application which depends on a custom library, and both of them are currently working in a Debian system.
I have also created .bb files for the application and the library in order to build them with OpenEmbedded.

But when I run the application I get a segmentation fault before main() ... sometimes just after an _sysctl:

 _sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xafc87334, 32, (nil), 0}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

and sometimes after brk:
 _sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xaf9f79f4, 32, (nil), 0}) = 0
brk(0)                                         = 0x8052000
brk(0x8073000)                           = 0x8073000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


I have installed in the rootfs all the libraries needed and I don't know what else can I do.. I tried to debug with gdb, strace and ltrace with no result.
I am currently using a 2.6.16 kernel in an x86 platform.

Any suggestion?
Thanks in advance.
_______________________________________________
Oe mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/oe

Reply via email to