[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: portmap segfault



On Thursday 31 May 2007, seb@frankengul.org wrote:
> On Thu, May 31, 2007 at 06:04:10PM +0200, seb@frankengul.org wrote:
> > 
> > The main difference between the two is the -pie option at the link.
> > If I remove this when linking the portmap is ok.
> > 
> > Seems that collect2 or ld produced something really bad when given this option.
> > 
> > 	Seb
> > 
> In fact, any program linked using the -pie core dumps.
> 
> I tried the hello world program :
> ---------------
> seb$ cat hello.c
> #include <stdio.h>
> 
> int main( void ) {
>         printf("hello world !\n");
>         return 0;
> }
> seb$ gcc -fpie hello.c -o hello
> seb$ ./hello
> hello world !
> seb$ gcc -pie -fpie hello.c -o hello
> seb$ ./hello
> Segmentation fault
> seb$
> ---------------
> 
> I going to submit this problem to the bug tracker.
> I'm not really sure it is related to portmap or binutils. 

"nscd" crashes for me the same way as "portmap".
I haven't checked yet, but maybe it's using -pie as well ?

Helge



Reply to: