Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Sep 2013 15:23:55 +0100
From:      Matthew Seaman <matthew@freebsd.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: When statically linked Abort trap: 6 (core dumped)
Message-ID:  <522DD9FB.1050205@freebsd.org>
In-Reply-To: <1378729305.77647.YahooMailNeo@web161906.mail.bf1.yahoo.com>
References:  <1378729305.77647.YahooMailNeo@web161906.mail.bf1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?522DD9FB.1050205>