When statically linked Abort trap: 6 (core dumped)
Matthew Seaman
matthew at freebsd.org
Mon Sep 9 14:24:08 UTC 2013
On 09/09/13 13:21, Unga wrote:
> This is FreeBSD 9.1 on i386.
>
> My program works well without any issue when all libraries are dynamically linked.
>
> But when some libraries are statically link and run it develops:
> Abort trap: 6 (core dumped)
>
> How I compile and link:
> cc myprog.c -Wall -O \
> -L. -ls1 -ls2 \
> -lz -lm -lmd -lpthread \
> -o myprog
>
>
> libs1.a and libs2.a are static libs.
>
> Any idea why?
Not the foggiest, and we aren't going to be able to tell you anything
sensible without a lot more detailed debugging information. I mean,
between us we know a lot, but we are by no means omniscient.
How about getting a back trace from the core file your program has produced?
Cheers,
Matthew
More information about the freebsd-questions
mailing list