linux-um archives
 help / color / mirror / Atom feed
From: "Peter Teoh" <htmldeveloper@gmail.com>
To: Samuel Korpi <strontianite@gmail.com>
Cc: uml-devel <user-mode-linux-devel@lists.sourceforge.net>
Subject: Re: [uml-devel] How to avoid stopping at gdb's "Program received signal SIGSEGV, Segmentation fault"?
Date: Thu, 6 Nov 2008 23:38:56 +0800	[thread overview]
Message-ID: <804dabb00811060738r4517f07fs758ee997995a48ce@mail.gmail.com> (raw)
In-Reply-To: <dfed62190811060520i6e51b844l4600222304bab23@mail.gmail.com>

On Thu, Nov 6, 2008 at 9:20 PM, Samuel Korpi <strontianite@gmail.com> wrote:
> On Thu, Nov 6, 2008 at 12:45 PM, Peter Teoh <htmldeveloper@gmail.com> wrote:
>> When I run gdb ./linux (my UML-compiled kernel):
>>
>> (gdb) run ubda=/mnt/hd1/download/FedoraCore5-x86-root_fs mem=128M
>> The program being debugged has been started already.
>> Start it from the beginning? (y or n) y
>> Starting program: /mnt/hd0/download/linux-2.6-latest/uml/linux
>> ubda=/mnt/hd1/download/FedoraCore5-x86-root_fs mem=128M
>> Locating the bottom of the address space ...
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x080664ff in page_ok (page=<value optimized out>) at
>> /mnt/hd0/download/linux-2.6-latest/arch/um/os-Linux/sys-i386/task_size.c:31
>> 31                      n = *address;
>>
>> The flow keep stopping at the following message:
>>
>> Program received signal SIGTRAP, Trace/breakpoint trap.
>>
>> And I have to "next" many many times....the execution flow continue as
>> per normal.   But I would like to ignore the breakpoint trap, how?
>>
>
> Try giving the following commands to gdb before starting UML:
>
> handle SIGSEGV pass nostop noprint
> handle SIGUSR1 pass nostop noprint
>
> Hope it helps,
>
> Samuel Korpi
>

thanks....that worked!!!


-- 
Regards,
Peter Teoh

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

      reply	other threads:[~2008-11-06 15:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-06 10:45 [uml-devel] How to avoid stopping at gdb's "Program received signal SIGSEGV, Segmentation fault"? Peter Teoh
2008-11-06 13:20 ` Samuel Korpi
2008-11-06 15:38   ` Peter Teoh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=804dabb00811060738r4517f07fs758ee997995a48ce@mail.gmail.com \
    --to=htmldeveloper@gmail.com \
    --cc=strontianite@gmail.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox