* [gentoo-soc] Weekly Report: Porting relibc Relibc
@ 2020-07-05 22:06 Ahmed Soliman
2020-07-06 1:11 ` Benda Xu
2020-07-06 6:22 ` Luca Barbato
0 siblings, 2 replies; 6+ messages in thread
From: Ahmed Soliman @ 2020-07-05 22:06 UTC (permalink / raw
To: gentoo-soc; +Cc: Luca Barbato
Hello,
I wrote a blog post about my work during this week for gsoc, you can
find it as well as the pull request with the patches that are
described in the post
Post:
https://oddcoder.com/What-if-debugger-couldnt-help/
Pull request:
https://gitlab.redox-os.org/redox-os/relibc/-/merge_requests/290
Demo:
https://asciinema.org/a/hcjaz8VVvBP550Pi5YWW64FOJ
Thanks
Ahmed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-soc] Weekly Report: Porting relibc Relibc
2020-07-05 22:06 [gentoo-soc] Weekly Report: Porting relibc Relibc Ahmed Soliman
@ 2020-07-06 1:11 ` Benda Xu
2020-07-06 6:22 ` Luca Barbato
1 sibling, 0 replies; 6+ messages in thread
From: Benda Xu @ 2020-07-06 1:11 UTC (permalink / raw
To: gentoo-soc
Hi Ahmed,
Ahmed Soliman <ahmedsoliman0x666@gmail.com> writes:
> I wrote a blog post about my work during this week for gsoc, you can
> find it as well as the pull request with the patches that are
> described in the post
>
> Post:
> https://oddcoder.com/What-if-debugger-couldnt-help/
>
> Pull request:
> https://gitlab.redox-os.org/redox-os/relibc/-/merge_requests/290
>
> Demo:
> https://asciinema.org/a/hcjaz8VVvBP550Pi5YWW64FOJ
Please give more details about what you have done to the mailing list
besides the blog post link.
Benda
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-soc] Weekly Report: Porting relibc Relibc
2020-07-05 22:06 [gentoo-soc] Weekly Report: Porting relibc Relibc Ahmed Soliman
2020-07-06 1:11 ` Benda Xu
@ 2020-07-06 6:22 ` Luca Barbato
2020-07-06 7:45 ` Ahmed Soliman
1 sibling, 1 reply; 6+ messages in thread
From: Luca Barbato @ 2020-07-06 6:22 UTC (permalink / raw
To: gentoo-soc
On 06/07/2020 00:06, Ahmed Soliman wrote:
> Hello,
>
Hi, when gdb is having problems, rr might help you. I guess you know it
already but just in case :)
Thank you for your nice blogpost.
lu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-soc] Weekly Report: Porting relibc Relibc
2020-07-06 6:22 ` Luca Barbato
@ 2020-07-06 7:45 ` Ahmed Soliman
2020-07-06 8:55 ` Luca Barbato
0 siblings, 1 reply; 6+ messages in thread
From: Ahmed Soliman @ 2020-07-06 7:45 UTC (permalink / raw
To: gentoo-soc, Benda Xu, Luca Barbato
Hi,
I will try to add a short description here, However, the post should
be describing most of the technical issues that I kept track of.
So i was working on compiling gcc under gentoo and having it linked
against relibc. there were plugins for LTO that are part of gcc but
used via ld. The plugins are shared object styles, so in order for
them to work I needed a working dlopen, dlclose and dlsym. which was
not yet implemented in relibc. I implemented all 3, There were
challenges where relibc and rust stdlib are not referentially
transparent. And that caused problems where there was a relibc copy
statically linked against ld.so for internal use and one that is
dynamically linked against an arbitrary a.out for external use and
although both are the same binary wise, they cannot be used
interchangeably for some reason. It was hard figuring out.
That is also why I mentioned that gdb wasn't useful, not because it
wasn't working (in fact I added support for it in a previous patch
set) but because of the nature of the bug I faced, It was not
something that one can pinpoint quickly when using a debugger.
Thanks,
Ahmed.
On Mon, 6 Jul 2020 at 08:22, Luca Barbato <lu_zero@gentoo.org> wrote:
>
> On 06/07/2020 00:06, Ahmed Soliman wrote:
> > Hello,
> >
>
> Hi, when gdb is having problems, rr might help you. I guess you know it
> already but just in case :)
>
> Thank you for your nice blogpost.
>
> lu
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-soc] Weekly Report: Porting relibc Relibc
2020-07-06 7:45 ` Ahmed Soliman
@ 2020-07-06 8:55 ` Luca Barbato
2020-07-06 9:41 ` Ahmed Soliman
0 siblings, 1 reply; 6+ messages in thread
From: Luca Barbato @ 2020-07-06 8:55 UTC (permalink / raw
To: gentoo-soc
On 06/07/2020 09:45, Ahmed Soliman wrote:
>
> That is also why I mentioned that gdb wasn't useful, not because it
> wasn't working (in fact I added support for it in a previous patch
> set) but because of the nature of the bug I faced, It was not
> something that one can pinpoint quickly when using a debugger.
Thus why I suggested using rr, it usually helps when tracking issues
hard to pinpoint using the normal gdb. :)
lu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-soc] Weekly Report: Porting relibc Relibc
2020-07-06 8:55 ` Luca Barbato
@ 2020-07-06 9:41 ` Ahmed Soliman
0 siblings, 0 replies; 6+ messages in thread
From: Ahmed Soliman @ 2020-07-06 9:41 UTC (permalink / raw
To: gentoo-soc
Oh I see thank you, for some reason I thought rr might be the nickname
of someone on IRC who might help with issues arising in GDB.
Thanks for pointing out the tool!
Ahmed.
On Mon, 6 Jul 2020 at 10:55, Luca Barbato <lu_zero@gentoo.org> wrote:
>
> On 06/07/2020 09:45, Ahmed Soliman wrote:
> >
> > That is also why I mentioned that gdb wasn't useful, not because it
> > wasn't working (in fact I added support for it in a previous patch
> > set) but because of the nature of the bug I faced, It was not
> > something that one can pinpoint quickly when using a debugger.
>
> Thus why I suggested using rr, it usually helps when tracking issues
> hard to pinpoint using the normal gdb. :)
>
> lu
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-07-06 9:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-05 22:06 [gentoo-soc] Weekly Report: Porting relibc Relibc Ahmed Soliman
2020-07-06 1:11 ` Benda Xu
2020-07-06 6:22 ` Luca Barbato
2020-07-06 7:45 ` Ahmed Soliman
2020-07-06 8:55 ` Luca Barbato
2020-07-06 9:41 ` Ahmed Soliman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox