Re: ld.so crash second attempt

2015-11-05 Thread Peter Hajdu
On 03/11/15 at 01:46P, Philip Guenther wrote: > On Sun, 25 Oct 2015, Peter Hajdu wrote: > > I try to give it one more attempt with a bit more description about the > > bug. > > > > After calling dlclose in _dl_notify_unload_shlib_ group reference counts >

ld.so crash second attempt

2015-10-25 Thread Peter Hajdu
in the memory and crashes during load. This patch unloads all unused objects instead of following the closed object's child and grpref list. Best regards, Peter Hajdu Index: dlfcn.c === RCS file: /cvs/src/libexec/ld.so/dlfcn.c,v

ld.so crash fix

2015-10-21 Thread Peter Hajdu
more code duplication that I will deal with providing my diff is ok. You can use the following repo to reproduce the bug. https://github.com/peterhajdu/ld_openbsd_bug Thank you very much in advance, Peter Hajdu Index: dlfcn.c === RCS

ld.so does not use already loaded objects if full path is used

2015-10-16 Thread Peter Hajdu
Hi, I found something that seems to be a bug in ld.so. If I load a shared library with full path with dlopen, it does not check if the library is already loaded. I was hoping someone can have a look at it too, I might have missed something. This is my first patch, I hope I did not make too