This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c/2179: segv on declaration of large arrays when using -pthread option



>Number:         2179
>Category:       c
>Synopsis:       segv on declaration of large arrays when using -pthread option
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 05 05:36:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Michael Lynn
>Release:        gcc 2.95.2 19991024 : possibly others
>Organization:
>Environment:
alpha freebsd 4.2...also know to have same or very similar bug on intel freebsd 4.2
>Description:
gcc seg-faults on nothing but the declaration of a large
this only happens then using the -pthread option and no
code other than the array declaration is needed to reproduce
the bug...the example code will crash it on my alpha
running freebsd 4.2...it is know to also crash on intel
platforms of the same os...i have made the array the smallest
number of elements needed to segv on my platform, if you
cat reproduce change the array to have 200,000 elements
>How-To-Repeat:
ok, declare an array of type long int, with about 200,000
elements in it...on my alpha it dies on exactly 130923, but
it will definatly do the same on intel at least with 200,000
...then compile with the -pthread option and poof, segv
>Fix:
none that i know of...
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]