public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application
@ 2013-07-03  7:45 velteyn at gmail dot com
  2013-07-03  7:48 ` [Bug win32/15716] " velteyn at gmail dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: velteyn at gmail dot com @ 2013-07-03  7:45 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15716

            Bug ID: 15716
           Summary: Continuos false SEGMENTATION FAULTS debugging win32
                    application
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: critical
          Priority: P2
         Component: win32
          Assignee: unassigned at sourceware dot org
          Reporter: velteyn at gmail dot com

Created attachment 7105
  --> http://sourceware.org/bugzilla/attachment.cgi?id=7105&action=edit
SIGSEV on ntdll

Hello all, I have this to report.

I compiled this GNU application
http://springrts.com/wiki/Building_Spring_on_Windows

And I followed all the steps described for a MINGW32 + gdb 7.5 on windows XP
pro sp3 compilation.

The application works perfectly alone, I launch it and works fine.

When I run it with GDB I obtain in order:

SIGSEGV Segmentation Fault into  "ntdll!RtlpWaitForCriticalSection() at
0x7c929af2" 


If I then play , program starts but after a map start I obtain another
SEGMENTATION FAULT into

KERNEL32!GetModuleFileNameA()

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug win32/15716] Continuos false SEGMENTATION FAULTS debugging win32 application
  2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
@ 2013-07-03  7:48 ` velteyn at gmail dot com
  2013-07-03 10:45 ` palves at redhat dot com
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: velteyn at gmail dot com @ 2013-07-03  7:48 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15716

--- Comment #1 from Edoardo <velteyn at gmail dot com> ---
Created attachment 7106
  --> http://sourceware.org/bugzilla/attachment.cgi?id=7106&action=edit
KERNEL32

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug win32/15716] Continuos false SEGMENTATION FAULTS debugging win32 application
  2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
  2013-07-03  7:48 ` [Bug win32/15716] " velteyn at gmail dot com
@ 2013-07-03 10:45 ` palves at redhat dot com
  2013-07-03 11:28 ` velteyn at gmail dot com
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: palves at redhat dot com @ 2013-07-03 10:45 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15716

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |palves at redhat dot com

--- Comment #2 from Pedro Alves <palves at redhat dot com> ---
You sure Spring itself isn't expecting those segfaults, with __try __except
-like code?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug win32/15716] Continuos false SEGMENTATION FAULTS debugging win32 application
  2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
  2013-07-03  7:48 ` [Bug win32/15716] " velteyn at gmail dot com
  2013-07-03 10:45 ` palves at redhat dot com
@ 2013-07-03 11:28 ` velteyn at gmail dot com
  2013-07-03 11:37 ` palves at redhat dot com
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: velteyn at gmail dot com @ 2013-07-03 11:28 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15716

--- Comment #3 from Edoardo <velteyn at gmail dot com> ---
I think no because I'm getting those errors on ntdll and on kernel32 dll...
Really far from spring.exe, the program than crashes out !!

I can provide the exe , but it's very big ... How can we do ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug win32/15716] Continuos false SEGMENTATION FAULTS debugging win32 application
  2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
                   ` (2 preceding siblings ...)
  2013-07-03 11:28 ` velteyn at gmail dot com
@ 2013-07-03 11:37 ` palves at redhat dot com
  2013-07-03 12:16 ` velteyn at gmail dot com
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: palves at redhat dot com @ 2013-07-03 11:37 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15716

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #4 from Pedro Alves <palves at redhat dot com> ---
That does not mean it isn't expecting them.  It may well have __try/__except
around win32 calls, and those may well crash inside those dlls.  Without a
debugger around, you wouldn't see the crashes, as the program would handle
them.

Sorry, I don't personally plan on investigating this further.  You could try
gdb 7.6.  Maybe the issue has been fixed already.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug win32/15716] Continuos false SEGMENTATION FAULTS debugging win32 application
  2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
                   ` (3 preceding siblings ...)
  2013-07-03 11:37 ` palves at redhat dot com
@ 2013-07-03 12:16 ` velteyn at gmail dot com
  2013-07-04  9:55 ` velteyn at gmail dot com
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: velteyn at gmail dot com @ 2013-07-03 12:16 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15716

--- Comment #5 from Edoardo <velteyn at gmail dot com> ---
Ok, I personally think that this is a gdb problem.. but I cannot insist further
, I'll switch to Visual Studio.

Than you for the patience :)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug win32/15716] Continuos false SEGMENTATION FAULTS debugging win32 application
  2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
                   ` (4 preceding siblings ...)
  2013-07-03 12:16 ` velteyn at gmail dot com
@ 2013-07-04  9:55 ` velteyn at gmail dot com
  2013-07-04  9:59 ` palves at redhat dot com
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: velteyn at gmail dot com @ 2013-07-04  9:55 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15716

--- Comment #6 from Edoardo <velteyn at gmail dot com> ---
I thought about what you said !! In the case you were right than the question
is :
is there a option to let gdb ignore  SIGSEGVs such that   __try/__except
program handle for  me ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug win32/15716] Continuos false SEGMENTATION FAULTS debugging win32 application
  2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
                   ` (5 preceding siblings ...)
  2013-07-04  9:55 ` velteyn at gmail dot com
@ 2013-07-04  9:59 ` palves at redhat dot com
  2013-07-10 13:54 ` velteyn at gmail dot com
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: palves at redhat dot com @ 2013-07-04  9:59 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15716

--- Comment #7 from Pedro Alves <palves at redhat dot com> ---
(gdb) apropos SIGSEGV
handle -- Specify how to handle a signal

(gdb) help handle
Specify how to handle a signal.
Args are signals and actions to apply to those signals.
Symbolic signals (e.g. SIGSEGV) are recommended but numeric signals
from 1-15 are allowed for compatibility with old versions of GDB.
Numeric ranges may be specified with the form LOW-HIGH (e.g. 1-5).
The special arg "all" is recognized to mean all signals except those
used by the debugger, typically SIGTRAP and SIGINT.
Recognized actions include "stop", "nostop", "print", "noprint",
"pass", "nopass", "ignore", or "noignore".
Stop means reenter debugger if this signal happens (implies print).
Print means print a message if this signal happens.
Pass means let program see this signal; otherwise program doesn't know.
Ignore is a synonym for nopass and noignore is a synonym for pass.
Pass and Stop may be combined.

(gdb) handle SIGSEGV pass nostop

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug win32/15716] Continuos false SEGMENTATION FAULTS debugging win32 application
  2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
                   ` (6 preceding siblings ...)
  2013-07-04  9:59 ` palves at redhat dot com
@ 2013-07-10 13:54 ` velteyn at gmail dot com
  2013-07-24 16:11 ` palves at redhat dot com
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: velteyn at gmail dot com @ 2013-07-10 13:54 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15716

--- Comment #8 from Edoardo <velteyn at gmail dot com> ---
OK I have many many evidences of my theory . I past 5 days to try and try GDB.

I cannot even attach to the task !!!

Into this thread you can find my experience and many files attach on that forum
 with evidences that GDB have many problems on windows !!!

Also my last compile with another gcc not changed the result !!

here is my forum posts on spring devel website 

http://springrts.com/phpbb/viewtopic.php?f=12&t=30677

many screen-shots there

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug win32/15716] Continuos false SEGMENTATION FAULTS debugging win32 application
  2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
                   ` (7 preceding siblings ...)
  2013-07-10 13:54 ` velteyn at gmail dot com
@ 2013-07-24 16:11 ` palves at redhat dot com
  2013-07-25  7:13 ` velteyn at gmail dot com
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: palves at redhat dot com @ 2013-07-24 16:11 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15716

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #9 from Pedro Alves <palves at redhat dot com> ---
>From that thread, it all sounds like your mingw environment is messed up.

Setting to WAITING until you finish triage over there.  Please update us on the
results.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug win32/15716] Continuos false SEGMENTATION FAULTS debugging win32 application
  2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
                   ` (8 preceding siblings ...)
  2013-07-24 16:11 ` palves at redhat dot com
@ 2013-07-25  7:13 ` velteyn at gmail dot com
  2013-07-25 11:03 ` palves at redhat dot com
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: velteyn at gmail dot com @ 2013-07-25  7:13 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15716

--- Comment #10 from Edoardo <velteyn at gmail dot com> ---
This is wat I did !

I restart all the procedure on a WINDOWS 7 x64 and a MInGW fresh install !
The computer was another one and windows 7 was Installed a week ago.

I had less problems with mingw libs but SIGSEGV was near the corner again.
Alwais on that windows ntdll.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug win32/15716] Continuos false SEGMENTATION FAULTS debugging win32 application
  2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
                   ` (9 preceding siblings ...)
  2013-07-25  7:13 ` velteyn at gmail dot com
@ 2013-07-25 11:03 ` palves at redhat dot com
  2021-10-29  7:43 ` loonyivy at gmail dot com
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: palves at redhat dot com @ 2013-07-25 11:03 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15716

--- Comment #11 from Pedro Alves <palves at redhat dot com> ---
Sorry, I don't know what to suggest to help you.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug win32/15716] Continuos false SEGMENTATION FAULTS debugging win32 application
  2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
                   ` (10 preceding siblings ...)
  2013-07-25 11:03 ` palves at redhat dot com
@ 2021-10-29  7:43 ` loonyivy at gmail dot com
  2021-10-29  8:21 ` velteyn at gmail dot com
  2023-02-11 17:52 ` tromey at sourceware dot org
  13 siblings, 0 replies; 15+ messages in thread
From: loonyivy at gmail dot com @ 2021-10-29  7:43 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=15716

Minta Shores <loonyivy at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |loonyivy at gmail dot com

--- Comment #12 from Minta Shores <loonyivy at gmail dot com> ---
(In reply to Edoardo from comment #8)
> OK I have many many evidences of my theory . I past 5 days to try and try
> GDB.
> 
> I cannot even attach to the task !!!
> 
> Into this thread you can find my experience and many files attach on that
> forum  with evidences that GDB have many problems on windows !!!
> 
> Also my last compile with another gcc not changed the result !!
> 
> here is my forum posts on spring devel website 
> 
> http://springrts.com/phpbb/viewtopic.php?f=12&t=30677
> https://slopegame3d.com
> many screen-shots there

That works.  interrupt -a also appears to work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug win32/15716] Continuos false SEGMENTATION FAULTS debugging win32 application
  2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
                   ` (11 preceding siblings ...)
  2021-10-29  7:43 ` loonyivy at gmail dot com
@ 2021-10-29  8:21 ` velteyn at gmail dot com
  2023-02-11 17:52 ` tromey at sourceware dot org
  13 siblings, 0 replies; 15+ messages in thread
From: velteyn at gmail dot com @ 2021-10-29  8:21 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=15716

--- Comment #13 from Edoardo <velteyn at gmail dot com> ---
A very late response ! One could die waiting :D

Il giorno ven 29 ott 2021 alle ore 09:43 loonyivy at gmail dot com <
sourceware-bugzilla@sourceware.org> ha scritto:

> https://sourceware.org/bugzilla/show_bug.cgi?id=15716
>
> Minta Shores <loonyivy at gmail dot com> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |loonyivy at gmail dot com
>
> --- Comment #12 from Minta Shores <loonyivy at gmail dot com> ---
> (In reply to Edoardo from comment #8)
> > OK I have many many evidences of my theory . I past 5 days to try and try
> > GDB.
> >
> > I cannot even attach to the task !!!
> >
> > Into this thread you can find my experience and many files attach on that
> > forum  with evidences that GDB have many problems on windows !!!
> >
> > Also my last compile with another gcc not changed the result !!
> >
> > here is my forum posts on spring devel website
> >
> > http://springrts.com/phpbb/viewtopic.php?f=12&t=30677
> > https://slopegame3d.com
> > many screen-shots there
>
> That works.  interrupt -a also appears to work.
>
> --
> You are receiving this mail because:
> You reported the bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug win32/15716] Continuos false SEGMENTATION FAULTS debugging win32 application
  2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
                   ` (12 preceding siblings ...)
  2021-10-29  8:21 ` velteyn at gmail dot com
@ 2023-02-11 17:52 ` tromey at sourceware dot org
  13 siblings, 0 replies; 15+ messages in thread
From: tromey at sourceware dot org @ 2023-02-11 17:52 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=15716

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |NOTABUG
                 CC|                            |tromey at sourceware dot org
             Status|WAITING                     |RESOLVED

--- Comment #14 from Tom Tromey <tromey at sourceware dot org> ---
I don't think there's anything left to do here.
Please reopen with more info if you disagree.  Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-02-11 17:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-03  7:45 [Bug win32/15716] New: Continuos false SEGMENTATION FAULTS debugging win32 application velteyn at gmail dot com
2013-07-03  7:48 ` [Bug win32/15716] " velteyn at gmail dot com
2013-07-03 10:45 ` palves at redhat dot com
2013-07-03 11:28 ` velteyn at gmail dot com
2013-07-03 11:37 ` palves at redhat dot com
2013-07-03 12:16 ` velteyn at gmail dot com
2013-07-04  9:55 ` velteyn at gmail dot com
2013-07-04  9:59 ` palves at redhat dot com
2013-07-10 13:54 ` velteyn at gmail dot com
2013-07-24 16:11 ` palves at redhat dot com
2013-07-25  7:13 ` velteyn at gmail dot com
2013-07-25 11:03 ` palves at redhat dot com
2021-10-29  7:43 ` loonyivy at gmail dot com
2021-10-29  8:21 ` velteyn at gmail dot com
2023-02-11 17:52 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).