all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Running rr from gud?
@ 2021-10-24 20:44 Skip Montanaro
  2021-10-24 21:35 ` Joost Kremers
  0 siblings, 1 reply; 7+ messages in thread
From: Skip Montanaro @ 2021-10-24 20:44 UTC (permalink / raw)
  To: Help GNU Emacs

I recently encountered a reference to rr:

https://rr-project.org/

I saw nothing in the package list related to GUD support for rr. It
looks like it's basically gdb with some added special sauce, so adding
support shouldn't be terribly hard. I've never fiddled with gud
front-ends before and was hoping someone already had.

Off to read about gud customization...

Skip



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Running rr from gud?
  2021-10-24 20:44 Running rr from gud? Skip Montanaro
@ 2021-10-24 21:35 ` Joost Kremers
  2021-10-24 22:44   ` Skip Montanaro
  0 siblings, 1 reply; 7+ messages in thread
From: Joost Kremers @ 2021-10-24 21:35 UTC (permalink / raw)
  To: Skip Montanaro; +Cc: help-gnu-emacs


On Sun, Oct 24 2021, Skip Montanaro wrote:
> I recently encountered a reference to rr:
>
> https://rr-project.org/
>
> I saw nothing in the package list related to GUD support for rr. It
> looks like it's basically gdb with some added special sauce, so adding
> support shouldn't be terribly hard. I've never fiddled with gud
> front-ends before and was hoping someone already had.

Under "rr features", there's a link "IDE integration" that takes you to this
page:

https://github.com/rr-debugger/rr/wiki/Using-rr-in-an-IDE

Emacs GUD/gdm-mi is mentioned under "known to work".

-- 
Joost Kremers
Life has its moments



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Running rr from gud?
  2021-10-24 21:35 ` Joost Kremers
@ 2021-10-24 22:44   ` Skip Montanaro
  2021-10-25  0:13     ` Emanuel Berg via Users list for the GNU Emacs text editor
  2021-10-25  7:48     ` tomas
  0 siblings, 2 replies; 7+ messages in thread
From: Skip Montanaro @ 2021-10-24 22:44 UTC (permalink / raw)
  To: Joost Kremers; +Cc: Help GNU Emacs

> Under "rr features", there's a link "IDE integration" that takes you to this
> page:
>
> https://github.com/rr-debugger/rr/wiki/Using-rr-in-an-IDE
>
> Emacs GUD/gdm-mi is mentioned under "known to work".

Thanks. Poked around for a couple minutes. Getting an error:

[FATAL /build/rr-S0CLEN/rr-5.3.0/src/PerfCounters.cc:310:start_counter()
errno: EACCES] Permission denied to use 'perf_event_open'; are perf
events enabled? Try 'perf record'.

which seems more Linux- than Emacs-related. I'll keep messing around.

Skip



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Running rr from gud?
  2021-10-24 22:44   ` Skip Montanaro
@ 2021-10-25  0:13     ` Emanuel Berg via Users list for the GNU Emacs text editor
  2021-10-25  2:08       ` Skip Montanaro
  2021-10-25  7:48     ` tomas
  1 sibling, 1 reply; 7+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-10-25  0:13 UTC (permalink / raw)
  To: help-gnu-emacs

Skip Montanaro wrote:

>> Under "rr features", there's a link "IDE integration" that
>> takes you to this page:
>>
>> https://github.com/rr-debugger/rr/wiki/Using-rr-in-an-IDE
>>
>> Emacs GUD/gdm-mi is mentioned under "known to work".
>
> Thanks. Poked around for a couple minutes. Getting an error:
>
> [FATAL
> /build/rr-S0CLEN/rr-5.3.0/src/PerfCounters.cc:310:start_counter()
> errno: EACCES] Permission denied to use 'perf_event_open';
> are perf events enabled? Try 'perf record'.
>
> which seems more Linux- than Emacs-related. I'll keep
> messing around.

If you don't mind ... what is this thread about?

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Running rr from gud?
  2021-10-25  0:13     ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2021-10-25  2:08       ` Skip Montanaro
  0 siblings, 0 replies; 7+ messages in thread
From: Skip Montanaro @ 2021-10-25  2:08 UTC (permalink / raw)
  To: Emanuel Berg, Help GNU Emacs

>
> If you don't mind ... what is this thread about?
>

rr is a deterministic debugger. More details here:

https://rr-project.org/

I'm interested in it because there is a serious effort afoot to remove
Python's global interpreter lock (GIL). Its presence keeps more than one
Python-level from executing bytecode at the same time. The flip side is
that the GIL can hide mistakes related to concurrent data access. Once the
GIL is gone, some/many/most of those mistakes will be revealed. The
non-deterministic nature of multi-threaded execution makes it more
difficult to debug such code. rr looks like it might help, so I'm
considering it as a gdb adjunct/replacement, and since I debug C code in
Emacs I'd like to use rr in that environment.

Sorry for the long-winded explanation.

Skip


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Running rr from gud?
  2021-10-24 22:44   ` Skip Montanaro
  2021-10-25  0:13     ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2021-10-25  7:48     ` tomas
  2021-10-25 12:53       ` Skip Montanaro
  1 sibling, 1 reply; 7+ messages in thread
From: tomas @ 2021-10-25  7:48 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]

On Sun, Oct 24, 2021 at 05:44:40PM -0500, Skip Montanaro wrote:
> > Under "rr features", there's a link "IDE integration" that takes you to this
> > page:
> >
> > https://github.com/rr-debugger/rr/wiki/Using-rr-in-an-IDE
> >
> > Emacs GUD/gdm-mi is mentioned under "known to work".
> 
> Thanks. Poked around for a couple minutes. Getting an error:
> 
> [FATAL /build/rr-S0CLEN/rr-5.3.0/src/PerfCounters.cc:310:start_counter()
> errno: EACCES] Permission denied to use 'perf_event_open'; are perf
> events enabled? Try 'perf record'.
> 
> which seems more Linux- than Emacs-related. I'll keep messing around.

What's the setting of your /proc/sys/kernel/perf_event_paranoid?

Perhaps lowering it a bit might give better results.

DISCLAIMER: I haven't much experience with that, much less an
idea what that might do to your box's security. The whole story
is somewhere here [1]. Don't do that on your Internet facing
server, less if it's running Apache. And so on ;-)

Cheers

[1] https://www.kernel.org/doc/html/latest/admin-guide/perf-security.html#unprivileged-users

 - t

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Running rr from gud?
  2021-10-25  7:48     ` tomas
@ 2021-10-25 12:53       ` Skip Montanaro
  0 siblings, 0 replies; 7+ messages in thread
From: Skip Montanaro @ 2021-10-25 12:53 UTC (permalink / raw)
  To: tomas; +Cc: Help GNU Emacs

> What's the setting of your /proc/sys/kernel/perf_event_paranoid?
>
> Perhaps lowering it a bit might give better results.

Thanks for the pointer. It was set to 4. According to the man page
anything >= 2 is for user space tracing. I set it to 1 and that
particular issue went away.

Skip



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-10-25 12:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-24 20:44 Running rr from gud? Skip Montanaro
2021-10-24 21:35 ` Joost Kremers
2021-10-24 22:44   ` Skip Montanaro
2021-10-25  0:13     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-25  2:08       ` Skip Montanaro
2021-10-25  7:48     ` tomas
2021-10-25 12:53       ` Skip Montanaro

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.