Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-10

gdb crash with printdialog dialog

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hi all,

I noticed a problem with a simple application that contain only a printdialog (just the component in the form with no code). If I run the application => no problem
When I close the application the application crash and a dialog appear saying that gdb.exe as a problem and must be close.

After some search I noticed that the problem appear with network printer (furthermore there are connected at the moment). For the moment I'm not able to test connected printers. With local printers like "pdf creator" or "Microsoft XPS Document writer" (printers that are always connected) I have no problem. May be the problem can appear with local printer that are not present.

Anybody has the same problem?
A solution?
A bug?

Lazarus 0.9.30 (Latest official release) FPC 2.4.2 Win XP SP3 -- Regards Pierre

Reply by email

Martin
to Unknown author
Show quoted text 20 lines
Hi all, I noticed a problem with a simple application that contain only a printdialog (just the component in the form with no code). If I run the application => no problem When I close the application the application crash and a dialog appear saying that gdb.exe as a problem and must be close. After some search I noticed that the problem appear with network printer (furthermore there are connected at the moment). For the moment I'm not able to test connected printers. With local printers like "pdf creator" or "Microsoft XPS Document writer" (printers that are always connected) I have no problem. May be the problem can appear with local printer that are not present. Anybody has the same problem? A solution? A bug? -- Lazarus 0.9.30 (Latest official release) FPC 2.4.2 Win XP SP3 --

The issue (or maybe a similar issue) is apparently very old: http://bugs.freepascal.org/view.php?id=17921 (printer, but crashed immediate)
but appears to be an issue in GDB, that can not be fixed in Lazarus itself

Their has been another similar issue:
http://bugs.freepascal.org/view.php?id=19883 (crash after app terminates)

The latter can be solved by upgrading GDB:
Either get the latest mingw, or you can find them here: http://svn.freepascal.org/svn/lazarus/binaries/i386-win32/gdb/bin/

The svn link can be accessed in the browser. MinGW was recently updated, and is newer. But has not yet been tested.

However all GDB 7.3 appear to suffer from an old problem that *seems* to have been fixed in gdb versions from 7.0.50 to 7.2 => but it requires a very unlikely race condition, and even then does not always trigger.

Reply by email

Pierre Delore
to Martin

Hi Martin,

The latter can be solved by upgrading GDB: Either get the latest mingw, or you can find them here: http://svn.freepascal.org/svn/lazarus/binaries/i386-win32/gdb/bin/

I follow the link and I upgraded gdb (7.2 to 7.3) => Same problem

Pierre ----- Mail original ----- De: "Martin" ?: "Lazarus mailing list" Envoy?: Vendredi 28 Octobre 2011 20:22:08 Objet: Re: [Lazarus] gdb crash with printdialog dialog On 28/10/2011 18:23, wrote: > Hi all, > > I noticed a problem with a simple application that contain only a printdialog (just the component in the form with no code). > If I run the application => no problem > When I close the application the application crash and a dialog appear saying that gdb.exe as a problem and must be close. > > After some search I noticed that the problem appear with network printer (furthermore there are connected at the moment). For the moment I'm not able to test connected printers. > With local printers like "pdf creator" or "Microsoft XPS Document writer" (printers that are always connected) I have no problem. > May be the problem can appear with local printer that are not present. > > Anybody has the same problem? > A solution? > A bug? > > -- > Lazarus 0.9.30 (Latest official release) > FPC 2.4.2 > Win XP SP3 > -- > The issue (or maybe a similar issue) is apparently very old: http://bugs.freepascal.org/view.php?id=17921 (printer, but crashed immediate) but appears to be an issue in GDB, that can not be fixed in Lazarus itself Their has been another similar issue: http://bugs.freepascal.org/view.php?id=19883 (crash after app terminates) The latter can be solved by upgrading GDB: Either get the latest mingw, or you can find them here: http://svn.freepascal.org/svn/lazarus/binaries/i386-win32/gdb/bin/ The svn link can be accessed in the browser. MinGW was recently updated, and is newer. But has not yet been tested. However all GDB 7.3 appear to suffer from an old problem that *seems* to have been fixed in gdb versions from 7.0.50 to 7.2 => but it requires a very unlikely race condition, and even then does not always trigger. --

Reply by email

Martin
to Pierre Delore
Pierre Delore wrote 7 lines
Hi Martin, > The latter can be solved by upgrading GDB: > Either get the latest mingw, or you can find them here: > http://svn.freepascal.org/svn/lazarus/binaries/i386-win32/gdb/bin/ I follow the link and I upgraded gdb (7.2 to 7.3) => Same problem

In that case there is most likely no solution. At least from what you wrote, it does sound like it is a bug in GDB:

When I close the application the application crash and a dialog appear saying that gdb.exe as a problem and must be close.

You can forward your debug output, see
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Create_a_new_Report But it is not very likely to be of much help.

Reply by email

Pierre Delore
to Pierre Delore: I follow the link and I upgraded gdb (7.2 to 7.3) => Same problem Pierre ----- Mail…

Same problem with gdb 7.3.1 and 7.1

Pierre

----- Mail original -----
De: "Pierre Delore"
?: "Lazarus mailing list"
Envoy?: Vendredi 28 Octobre 2011 21:02:37
Objet: Re: [Lazarus] gdb crash with printdialog dialog

Hi Martin,

The latter can be solved by upgrading GDB: Either get the latest mingw, or you can find them here: http://svn.freepascal.org/svn/lazarus/binaries/i386-win32/gdb/bin/

I follow the link and I upgraded gdb (7.2 to 7.3) => Same problem

Pierre ----- Mail original ----- De: "Martin" ?: "Lazarus mailing list" Envoy?: Vendredi 28 Octobre 2011 20:22:08 Objet: Re: [Lazarus] gdb crash with printdialog dialog On 28/10/2011 18:23, wrote: > Hi all, > > I noticed a problem with a simple application that contain only a printdialog (just the component in the form with no code). > If I run the application => no problem > When I close the application the application crash and a dialog appear saying that gdb.exe as a problem and must be close. > > After some search I noticed that the problem appear with network printer (furthermore there are connected at the moment). For the moment I'm not able to test connected printers. > With local printers like "pdf creator" or "Microsoft XPS Document writer" (printers that are always connected) I have no problem. > May be the problem can appear with local printer that are not present. > > Anybody has the same problem? > A solution? > A bug? > > -- > Lazarus 0.9.30 (Latest official release) > FPC 2.4.2 > Win XP SP3 > -- > The issue (or maybe a similar issue) is apparently very old: http://bugs.freepascal.org/view.php?id=17921 (printer, but crashed immediate) but appears to be an issue in GDB, that can not be fixed in Lazarus itself Their has been another similar issue: http://bugs.freepascal.org/view.php?id=19883 (crash after app terminates) The latter can be solved by upgrading GDB: Either get the latest mingw, or you can find them here: http://svn.freepascal.org/svn/lazarus/binaries/i386-win32/gdb/bin/ The svn link can be accessed in the browser. MinGW was recently updated, and is newer. But has not yet been tested. However all GDB 7.3 appear to suffer from an old problem that *seems* to have been fixed in gdb versions from 7.0.50 to 7.2 => but it requires a very unlikely race condition, and even then does not always trigger. --

Reply by email

Martin
to Pierre Delore
I don't think any of the older ones will do any good. But if at all then
7.0 or 7.0.50   ..But as I said, I don't think they will.

If gdb only crashes when the app closes, then you can still debug your app. Yes sure inconvenient, that gdb crashes. assign a key to the IDE's "Reset Debugger", in case you have trouble with further debugging....

Pierre Delore wrote 85 lines
Same problem with gdb 7.3.1 and 7.1 Pierre ----- Mail original ----- De: "Pierre Delore" ?: "Lazarus mailing list" Envoy?: Vendredi 28 Octobre 2011 21:02:37 Objet: Re: [Lazarus] gdb crash with printdialog dialog Hi Martin, > The latter can be solved by upgrading GDB: > Either get the latest mingw, or you can find them here: > http://svn.freepascal.org/svn/lazarus/binaries/i386-win32/gdb/bin/ I follow the link and I upgraded gdb (7.2 to 7.3) => Same problem -- Pierre ----- Mail original ----- De: "Martin" ?: "Lazarus mailing list" Envoy?: Vendredi 28 Octobre 2011 20:22:08 Objet: Re: [Lazarus] gdb crash with printdialog dialog On 28/10/2011 18:23, wrote: > Hi all, > > I noticed a problem with a simple application that contain only a printdialog (just the component in the form with no code). > If I run the application => no problem > When I close the application the application crash and a dialog appear saying that gdb.exe as a problem and must be close. > > After some search I noticed that the problem appear with network printer (furthermore there are connected at the moment). For the moment I'm not able to test connected printers. > With local printers like "pdf creator" or "Microsoft XPS Document writer" (printers that are always connected) I have no problem. > May be the problem can appear with local printer that are not present. > > Anybody has the same problem? > A solution? > A bug? > > -- > Lazarus 0.9.30 (Latest official release) > FPC 2.4.2 > Win XP SP3 > -- > The issue (or maybe a similar issue) is apparently very old: http://bugs.freepascal.org/view.php?id=17921 (printer, but crashed immediate) but appears to be an issue in GDB, that can not be fixed in Lazarus itself Their has been another similar issue: http://bugs.freepascal.org/view.php?id=19883 (crash after app terminates) The latter can be solved by upgrading GDB: Either get the latest mingw, or you can find them here: http://svn.freepascal.org/svn/lazarus/binaries/i386-win32/gdb/bin/ The svn link can be accessed in the browser. MinGW was recently updated, and is newer. But has not yet been tested. However all GDB 7.3 appear to suffer from an old problem that *seems* to have been fixed in gdb versions from 7.0.50 to 7.2 => but it requires a very unlikely race condition, and even then does not always trigger. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Pierre Delore
to Martin

Hi Martin,

Thanks for your answers. It seem that there are no fix for the moment. In order to avoid the problem I will set the "pdf creator" printer as the default printer. This will allow me to develop the printer part of my application.

Thanks.

Pierre

----- Mail original -----
De: "Martin"
?: "Lazarus mailing list"
Envoy?: Vendredi 28 Octobre 2011 22:45:42
Objet: Re: [Lazarus] gdb crash with printdialog dialog

I don't think any of the older ones will do any good. But if at all then
7.0 or 7.0.50   ..But as I said, I don't think they will.

If gdb only crashes when the app closes, then you can still debug your app. Yes sure inconvenient, that gdb crashes. assign a key to the IDE's "Reset Debugger", in case you have trouble with further debugging....

Pierre Delore wrote 85 lines
Same problem with gdb 7.3.1 and 7.1 Pierre ----- Mail original ----- De: "Pierre Delore" ?: "Lazarus mailing list" Envoy?: Vendredi 28 Octobre 2011 21:02:37 Objet: Re: [Lazarus] gdb crash with printdialog dialog Hi Martin, > The latter can be solved by upgrading GDB: > Either get the latest mingw, or you can find them here: > http://svn.freepascal.org/svn/lazarus/binaries/i386-win32/gdb/bin/ I follow the link and I upgraded gdb (7.2 to 7.3) => Same problem -- Pierre ----- Mail original ----- De: "Martin" ?: "Lazarus mailing list" Envoy?: Vendredi 28 Octobre 2011 20:22:08 Objet: Re: [Lazarus] gdb crash with printdialog dialog On 28/10/2011 18:23, wrote: > Hi all, > > I noticed a problem with a simple application that contain only a printdialog (just the component in the form with no code). > If I run the application => no problem > When I close the application the application crash and a dialog appear saying that gdb.exe as a problem and must be close. > > After some search I noticed that the problem appear with network printer (furthermore there are connected at the moment). For the moment I'm not able to test connected printers. > With local printers like "pdf creator" or "Microsoft XPS Document writer" (printers that are always connected) I have no problem. > May be the problem can appear with local printer that are not present. > > Anybody has the same problem? > A solution? > A bug? > > -- > Lazarus 0.9.30 (Latest official release) > FPC 2.4.2 > Win XP SP3 > -- > The issue (or maybe a similar issue) is apparently very old: http://bugs.freepascal.org/view.php?id=17921 (printer, but crashed immediate) but appears to be an issue in GDB, that can not be fixed in Lazarus itself Their has been another similar issue: http://bugs.freepascal.org/view.php?id=19883 (crash after app terminates) The latter can be solved by upgrading GDB: Either get the latest mingw, or you can find them here: http://svn.freepascal.org/svn/lazarus/binaries/i386-win32/gdb/bin/ The svn link can be accessed in the browser. MinGW was recently updated, and is newer. But has not yet been tested. However all GDB 7.3 appear to suffer from an old problem that *seems* to have been fixed in gdb versions from 7.0.50 to 7.2 => but it requires a very unlikely race condition, and even then does not always trigger. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email