[ooo-build] problem with signals in ddd

Michal Spisiak michal.spisiak at gmail.com
Tue May 18 10:59:30 PDT 2010


On Tue, May 18, 2010 at 7:25 AM, eric b <eric.bachard at free.fr> wrote:

>
> Le 18 mai 10 à 00:48, Michal Spisiak a écrit :
>
> Hi,
>
>
> Hi Michal,
>
>
> recently, I installed Display Data Debugger, because working in console gdb
> got to be quite tedious as I want to look at various values simultaneously.
>
>
>
> Well, this is just a question of habits, but I understand you prefer
> something more graphical.
>

Not really, I'm quite used to gdb now, it's just that it really takes more
time to check all the values in it, comparing to any graphical debugger,
where you can have it always at hand.


>
>
> But I got problem with SIGSEGV signal at the start:
>
> Program received signal SIGSEGV, Segmentation fault.
>
> Window::GetExtendedStyle (this=0xbffff904) at
> /home/miko/ooo-build/build/ooo320-m12/vcl/source/window/window2.cxx:1711
>
>
> Without use DDD, I have no idea, but I guess
> either mpWindowImpl->mnExtendedStyle is undefined or something like that.
>
> Did you try to put a breakpoint just before, to check
> whether mpWindowImpl->mnExtendedStyle  is defined or not (or has correct
> value)?
>
> As first step, I'd suggest to
>
> - set a breakpoint just before the crash and check the content of "this" (
> maybe some NULL value inside)
>

You were right, it's a null pointer. Is there any way to deal with it?


> - protec a bit, something like :
>
> if ( mpWindowImpl->mnExtendedStyle )
> return mpWindowImpl->mnExtendedStyle
>  else
> return (neutral /safe value to be found in the WinBits possible values)
>
> And then see whether return a neutral or safe value can lead to a crash
> later, or fixes it (what I doubt).
>
> In this case, better analyze more deeply, but that's strange to see DDD not
> work while gdb rocks (at least at this point), and I'd vote for some DDD
> issue.
>
>

To Cedric:

Last time I didn't source ooenv from DDD, but it was all the same when I did
it this time. I've got master ooo320-m12, is it that big deal? I don't want
to play with it if it's not needed.

I know gdb in TUI mode, but it doesn't help me much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/ooo-build/attachments/20100518/1cf2ed57/attachment.htm>


More information about the ooo-build mailing list