[ooo-build] problem with signals in ddd

eric b eric.bachard at free.fr
Mon May 17 23:25:56 PDT 2010


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.


> 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)
- 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.


> Current language:  auto
> The current source language is "auto; currently c++".
>

> Strange is, that in fact DDD does the same as I do normally through  
> console with gdb, but it stops on the signal. I checked signal  
> handling, but everything apart from Interrupt and Breakpoint trap  
> has set pass.
>

Strange.


> I'll be grateful for any clues.
>


Not me, sorry ( I'm simple gdb user ).


> By the way, I'm working on OOo as a part of GSoC so, big HELLO to  
> everyone whom I didn't have the chance to talk to yet.
>


Great to reading you on this list :)


Regards,
Eric Bachard

-- 
qɔᴉɹə
Education Project:
http://wiki.services.openoffice.org/wiki/Education_Project
Projet OOo4Kids : http://wiki.ooo4kids.org/index.php/Main_Page
L'association EducOOo : http://www.educoo.org
Blog : http://eric.bachard.free.fr/news





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/ooo-build/attachments/20100518/6dbadb6e/attachment.html>


More information about the ooo-build mailing list