* Core Dump From Sendmail 8.6.4 When Linked With Shared Libraries
@ 1993-12-16 18:52 Jon Forrest
1993-12-16 22:27 ` Peter Mayo [CGL]
0 siblings, 1 reply; 2+ messages in thread
From: Jon Forrest @ 1993-12-16 18:52 UTC (permalink / raw)
I've found that if I run sendmail 8.6.4 that's been linked with
shared libraries then sendmail immediately dumps core when it
starts. The same object files, when linked statically, work fine.
The core dump seems to occur before any sendmail code actually
runs.
Does anybody have any idea why this is happening?
Jon
--
Anything you read here is my opinion and in no way represents the Univ. of Cal.
Jon Forrest WB6EDM forrest@cs.berkeley.edu 510-643-6764
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Core Dump From Sendmail 8.6.4 When Linked With Shared Libraries
1993-12-16 18:52 Core Dump From Sendmail 8.6.4 When Linked With Shared Libraries Jon Forrest
@ 1993-12-16 22:27 ` Peter Mayo [CGL]
0 siblings, 0 replies; 2+ messages in thread
From: Peter Mayo [CGL] @ 1993-12-16 22:27 UTC (permalink / raw)
From man cc:
NOTES
The standard library, /usr/ccs/lib/libc.a or /usr/shlib/libc.so, is loaded
by using the -lc loader option and not a full path name. The wrong one
could be loaded if there are files with the name libc.{so,a} string in the
directories specified with the -L loader option or in the default direc-
tories searched by the loader.
The compile line:
cc -L/usr/lib hello.c
will produce an a.out that seg. faults before entering user code, even
for the classic ``hello world'' program.
This is because ld at run time grabs /usr/lib/libc.a before
it even tries /usr/shlib/libc.so .
all of
cc -L/usr/lib -non_shared hello.c
cc hello.c
cc -L/usr/shlib -L/usr/lib hello.c
gcc -L/usr/shlib -L/usr/lib hello.c
gcc -L/usr/lib -static hello.c
gcc hello.c
work as expected and produce runnable code.
cc -L/usr/lib hello.c
gcc -L/usr/lib hello.c
produce executable that seg fault in the morecore called before main.
--
Peter B.G. Mayo <pbgmayo@watcgl.UWaterloo.Ca>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1993-12-16 22:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-12-16 18:52 Core Dump From Sendmail 8.6.4 When Linked With Shared Libraries Jon Forrest
1993-12-16 22:27 ` Peter Mayo [CGL]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox