Recent

Author Topic: Lazreport PDF export causes GDB debugger to crash on Windows  (Read 3869 times)

snorkel

  • Hero Member
  • *****
  • Posts: 817
Lazreport PDF export causes GDB debugger to crash on Windows
« on: January 14, 2013, 07:46:23 pm »
I just noticed this.

In my app I have several lazreports, and I just added the PDF export component (which works great)  and when i run the program every single time GDB crashes and pops up dialog boxes.

Laz 1.0.4 32bit
Windows 7 64 bit

Latest versions of PowerPDF required to make the export component compile.

I noticed this in another program, but thought it was related to ODBC, but now I am pretty sure it's the PDF export component causing the problem.

Can anyone else confirm this?  To reproduce just drop the Lazreport PDF export on a existing form that has a report.
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

GIOhnny

  • Newbie
  • Posts: 5
Re: Lazreport PDF export causes GDB debugger to crash on Windows
« Reply #1 on: January 22, 2013, 11:48:34 pm »
Hello,

I have the same problem (Windows 7 x64 + Lazarus 1.0.4)

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name:   gdb.exe
  Application Version:   0.0.0.0
  Application Timestamp:   4c87a0eb
  Fault Module Name:   gdb.exe
  Fault Module Version:   0.0.0.0
  Fault Module Timestamp:   4c87a0eb
  Exception Code:   40000015
  Exception Offset:   000051e2
  OS Version:   6.1.7601.2.1.0.256.1
  Locale ID:   1033
  Additional Information 1:   7f1c
  Additional Information 2:   7f1c7779d8225a8e48f71ae8ff19ed84
  Additional Information 3:   4ce9
  Additional Information 4:   4ce92b5903192a5cf407459d718a486e

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt


and after:

The GDB command:
"-file-exec-and-symbols "
did not return any result.

But, if your run the EXE file the error will not appear.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9855
  • Debugger - SynEdit - and more
    • wiki
Re: Lazreport PDF export causes GDB debugger to crash on Windows
« Reply #2 on: January 23, 2013, 01:57:25 am »
GDB unfortunately crashes sometimes.

In your case it crashes when trying to open the exe. Most likely while reading the debug info.
One reason could be mixed stabs and dwarf. Or even a problem just with one of them.


When your exe is compiled, it is possible that each package (like lazreport and related) has it's own setting.

Go to each package and also to the project options:
- open the options, go to the the linking section: and verify what debug info is generated.

Set them all to be the same (all "dwarf2+sets" or all "stabs")

I advice to try dwarf2+sets first.

If you do not debug inside a package, then for that package you can switch them off entirely.


 

TinyPortal © 2005-2018