> > I tried running under gdb but it didn't stop at SIGSEGV (it did stop
>earlier during the safe_read SEGV).
>
>From your question, since the crash does not reproduce in some
>scenarios, it may be so that it's timing sensitive. If I'm
>understanding correctly, when run under gdb the crash indeed happens,
>just that gdb does not stop at the SIGSEGV?
>
Yes that is correct.
>
>Does the crash happen with a client or just plain DR?
This happens with drcachesim + my changes for #5199
>Does it enter DR's main_signal_handler on the SIGSEGV? If it does, you
>can try looking at the siginfo there.
I will check this. I wasn't sure where DR's sigsegv handler was.
>For such crashes, I usually resort to printf debugging. I start by
>adding manual logs at dispatch enter and exit, to first figure out if
>the crash is in DR or the code cache.
I see. Could you tell me which functions these would be? I might need
some fumbling around to locate these.
>Since log files won't be available in release mode, you could try
>modifying the source code to selectively convert some useful LOGs to
>dr_printf.
I'll try this.
>
>
>Maybe Derek might know of a more systematic way to debug in this
>situation.
>
>Abhinav
>
>On Wednesday, May 11, 2022 at 3:49:21 AM UTC-4
prasu...@gmail.com
>wrote:
>>I am seeing a segfault that only occurs in release mode (not every
>>time but pretty frequently). To debug the crash I ran it in debug mode
>>but couldn't reproduce the issue.
>>
>>I tried running under gdb but it didn't stop at SIGSEGV (it did stop
>>earlier during the safe_read SEGV). Also when I to break into the
>>program using 'CTRL-C' in gdb (after the initial stuff was done) the
>>program immediately terminated. This doesn't happen when I run the
>>program itself under gdb.
>>
>>Any suggestions on how to go about this debug?
>
>--
>You received this message because you are subscribed to a topic in the
>Google Groups "DynamoRIO Users" group.
>To unsubscribe from this topic, visit
>
https://groups.google.com/d/topic/dynamorio-users/qlgKXJb4K4E/unsubscribe.
>To unsubscribe from this group and all its topics, send an email to
>
dynamorio-use...@googlegroups.com.
>To view this discussion on the web visit
>
https://groups.google.com/d/msgid/dynamorio-users/21fb7a76-6a71-4a15-8658-9b8f89b09a44n%40googlegroups.com
><
https://groups.google.com/d/msgid/dynamorio-users/21fb7a76-6a71-4a15-8658-9b8f89b09a44n%40googlegroups.com?utm_medium=email&utm_source=footer>.