Re: [hatari-devel] Improved internal timers performances in cycInt.c |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Improved internal timers performances in cycInt.c
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Mon, 6 Dec 2021 14:39:46 +0100
- Authentication-results: strato.com; dkim=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1638797986; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=AN/qdJs07MTvXzXdbeiDTJCSGGASL5M6a4pwftXmVcQ=; b=PlAyMwTTzOGbbBuIm6c/JrCA8renjqPQgvDgtVSl/Ynn9QGRzwMZwaT+V/SMEO30D3 snW36p92djUuRZ09xiyfxryvwecRYcdmUWi4mzTn181vFC4Xl8x43HWRx3p5AlR2q2No 15dVi3fuqqIyIrtA/I6qa56JQGTurwJ7I0YFW9/xS+zuqoOanwyw0EJBYnL9+KvXF7uP Ds5NeLp3t4FJhMyK1jNolForK8KAw0lc6wwTJrjdvnXeh/RNb4SMc6/crDKTbHY+P48R aI3d5We21y3Jx64wtiZ6YIXKoWJtnrni2G9AonTYDBAi7GjQqXQkevyBzDJl7vhe8AEk s36g==
> gdb intercepts the signal, afaik, and breaks into the debugger. Resend
> SIGINT to Hatari by entering at the gdb prompt:
>
> signal 2
That did the trick, thank you.
hread 1 "hatari" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x000055555595f6c9 in CycInt_Process_stop (stop_cond=<optimized out>)
at /home/us/hatari/hatari/src/includes/cycInt.h:131
#2 m68k_run_2_020 () at /home/us/hatari/hatari/src/cpu/newcpu.c:7267
#3 0x0000555555957272 in m68k_go (may_quit=may_quit@entry=1)
at /home/us/hatari/hatari/src/cpu/newcpu.c:7600
#4 0x00005555558fa0bb in M68000_Start ()
at /home/us/hatari/hatari/src/m68000.c:299
#5 0x00005555558b1944 in main (argc=-12112, argv=<optimized out>)
at /home/us/hatari/hatari/src/main.c:964
>
> Then Hatari should get the SIGINT (Ctrl+C). See if you get a segmentation
> violation then.
>
> Regards
> Christian
>
> Gesendet: Montag, 06. Dezember 2021 um 13:59 Uhr
> Von: "Uwe Seimet" <Uwe.Seimet@xxxxxxxxx>
> An: hatari-devel@xxxxxxxxxxxxxxxxxxx
> Betreff: Re: [hatari-devel] Improved internal timers performances in
> cycInt.c
> Looks as if I only send my latest reply to you, not to the list. All in
> all,
> in gdb I don't get a segmentation fault. I also get it with kill SIGINT,
> but when I do this in gdb, gdb just stops hatari and sys that SIGINT was
> received.
>
> > Le 06/12/2021 à 13:26, Uwe Seimet a écrit :
> > > I just double-checked: The problem is caused by commit 12495caf. With
> > > commit 7c701c53 (the one before) I don't get a segmentation fault.
> > >
> >
> > ok ; but as Christian wrote, do you have a gdb backtrace when SEGV
> > occurs instead of the one with SIGINT ?
> >
> > >> Uwe Seimet schrieb:
> > >>
> > >>> Thread 1 "hatari" received signal SIGINT, Interrupt.
> > >>
> > >> Wait, isn't SIGINT the *expected* reaction to Ctrl+C? If so, then you
> > >> did not capture the actual crash / segmentation fault (SIGSEGV)
> there.
> > >>
> > >> Regards
> > >> Christian
> > >> --
> > >> Christian Zietz - CHZ-Soft - czietz@xxxxxxx
> > >> WWW: https://www.chzsoft.de/
> > >> PGP/GnuPG-Key-ID: 0x52CB97F66DA025CA / 0x6DA025CA
> > >>
> > >>
> > >
> > >
> >
>
>