Bug#212048: When glibc is compiled with newer binutils static C++ programs will segfault
Hello
first: it really seems to be a binutils problem
It's regarding this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=212048
but doesn't depends on debian, i have binutils, gcc and glibc from cvs
#include <syslog.h>
#include <iostream>
using namespace std;
int func()
{
syslog(LOG_INFO,"","");
}
int main(int argc, char **argv)
{
try {
throw(10);
}
catch(...) {
cout<<"Smells like a 10"<<endl;
}
}
This code works statically compiled with:
glibc as of 2003-07-02T11:06:49-0700 and nptl 0.52 compiled with
binutils 2003-06-18T09:00:00-0700
_but_ it segfaults with:
glibc as of 2003-07-02T11:06:49-0700 and nptl 0.52 compiled with
binutils 2003-06-18T13:00:00-0700
The diff is here: http://leb.ath.cx/~ijuz/files/ahu/diff_noCVS
I tried it multiple times and i don't think that it's a glibc problem,
but i don't know because a newer glibc won't compile with older
binutils.
The problem is still in recent binutils and recent glibc.
Christian Leber
Reply to: