Bug#794488: Re: Bug#794488: Piglit tests in Mesa crash, if radeonsi_dri.so is linked with libelf1 (libelfg0 works)

2015-08-07 Thread Mark Wielaard
On Thu, Aug 06, 2015 at 05:14:25PM +0200, Kai Wasserbäch wrote: Could you compile the following with: gcc -g -lelf -o elfrel elfrel.c this does not work for several reasons: 1. I certainly need -std=c99 for the inline initialisation of the counter in the for() statement. Ah, yes, this

Bug#794488: Re: Bug#794488: Piglit tests in Mesa crash, if radeonsi_dri.so is linked with libelf1 (libelfg0 works)

2015-08-06 Thread Kai Wasserbäch
Dear Mark, Mark Wielaard wrote on 06.08.2015 00:29: On Wed, 2015-08-05 at 17:55 +0200, Kai Wasserbäch wrote: So, if I've understood you correctly, you want an ELF dump of a Mesa build linked against libelfg0 and one linked against libelf1. You can find the generated files in the attached Tar

Bug#794488: Re: Bug#794488: Piglit tests in Mesa crash, if radeonsi_dri.so is linked with libelf1 (libelfg0 works)

2015-08-05 Thread Mark Wielaard
On Wed, 2015-08-05 at 11:13 +0900, Michel Dänzer wrote: Note that the ELF object is actually created in LLVM. Do you happen to know whether that also uses libelf to generate the file? I am assuming there is some bug in the relocation section parsing and that the generated ELF images are

Bug#794488: Re: Bug#794488: Piglit tests in Mesa crash, if radeonsi_dri.so is linked with libelf1 (libelfg0 works)

2015-08-05 Thread Michel Dänzer
On 05.08.2015 18:55, Mark Wielaard wrote: On Wed, 2015-08-05 at 11:13 +0900, Michel Dänzer wrote: Note that the ELF object is actually created in LLVM. Do you happen to know whether that also uses libelf to generate the file? AFAICT LLVM doesn't use libelf, presumably it has its own ELF

Bug#794488: Re: Bug#794488: Piglit tests in Mesa crash, if radeonsi_dri.so is linked with libelf1 (libelfg0 works)

2015-08-05 Thread Kai Wasserbäch
Michel Dänzer wrote on 05.08.2015 12:08: On 05.08.2015 18:55, Mark Wielaard wrote: On Wed, 2015-08-05 at 11:13 +0900, Michel Dänzer wrote: Note that the ELF object is actually created in LLVM. Do you happen to know whether that also uses libelf to generate the file? AFAICT LLVM doesn't

Bug#794488: Re: Bug#794488: Piglit tests in Mesa crash, if radeonsi_dri.so is linked with libelf1 (libelfg0 works)

2015-08-05 Thread Mark Wielaard
On Wed, 2015-08-05 at 17:55 +0200, Kai Wasserbäch wrote: So, if I've understood you correctly, you want an ELF dump of a Mesa build linked against libelfg0 and one linked against libelf1. You can find the generated files in the attached Tar archive. Please note, that the run with libelf1 only

Bug#794488: Re: Bug#794488: Piglit tests in Mesa crash, if radeonsi_dri.so is linked with libelf1 (libelfg0 works)

2015-08-04 Thread Michel Dänzer
On 04.08.2015 05:34, Kai Wasserbäch wrote: Dear Mark, Mark Wielaard wrote on 03.08.2015 21:47: Could you point me to the source code that does the libelf calls to create the ELF file? Maybe reading the source helps to figure out what might go wrong. The stacktrace from the test doesn't