linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Segmentation fault while dynamic linking
@ 2001-06-26  9:32 Michael Habermann
  2001-06-26 17:12 ` Matthew Locke
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Habermann @ 2001-06-26  9:32 UTC (permalink / raw)
  To: linuxppc-embedded


The simple program below produces a segmentation fault when dynamically
linked. When linked with '--static', it works fine.

What can be the problem?

The Segmentation Fault occurs at a lot of programs like busyboxes 'ls' and
unfortnately also at gdbserver.

My configuration: Kernel 2.4.4, glibc 2.2.2, bash 2.05, FADS, MPC855T


#include <stdio.h>
#include <time.h>
int main(int argc, char** argv){
   time_t tm;

   time(&tm);
   printf("This line is displayed\n");
   localtime(&tm);  //produces Segmentation fault
   printf("This one not\n");

   return 0;
}


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-06-28 16:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-26  9:32 Segmentation fault while dynamic linking Michael Habermann
2001-06-26 17:12 ` Matthew Locke
2001-06-27  1:17   ` Michael Habermann
2001-06-27  3:26     ` Matthew Locke
2001-06-27 11:42       ` Michael Habermann
2001-06-27 17:08         ` Matthew Locke
2001-06-28  2:57           ` Michael Habermann
2001-06-28  6:46             ` Justin (Gus) Hurwitz
2001-06-28 16:20               ` Matthew Locke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).