public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7148: Seg fault with static class member
@ 2002-09-14 14:14 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-09-14 14:14 UTC (permalink / raw)
  To: allen, gcc-bugs, gcc-prs, nobody

Synopsis: Seg fault with static class member

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Sat Sep 14 14:14:32 2002
State-Changed-Why:
    the program is ill formed. you are linking ab.o into both
    the main executable and the shared library. this breaks
    the one definition rule

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7148


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

* c++/7148: Seg fault with static class member
@ 2002-06-27 20:19 allen
  0 siblings, 0 replies; 2+ messages in thread
From: allen @ 2002-06-27 20:19 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7148
>Category:       c++
>Synopsis:       Seg fault with static class member
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 27 16:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Allen Skees
>Release:        gcc version 3.0.1
>Organization:
>Environment:
Reading specs from /usr/local/pkg/gcc/3.0.1/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.0.1/specs
Configured with: ../configure --enable-threads=posix --prefix=/ic/os/i686-redhat6.2/gcc-3.0.1 --disable-shared
Thread model: posix
gcc version 3.0.1


Linux cache4 2.4.10 #1 SMP Thu Oct 4 11:38:48 EDT 2001 i686 unknown
>Description:
The program seg faults on exit.  It certainly looks like the static class member is being destructed twice.  
>How-To-Repeat:
unzip and untar the test included.  Execute "make" at the top level.  Run the resulting "test" executable.  It will seg fault on exit.
>Fix:
If you make the static class member (static A a;) of B non-static (A a;), then the program executes successfully.  It looks like the mutiple definitions of the static member are corrupting each other.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-gzip-compressed; name="core_test.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="core_test.tar.gz"

H4sICKGYGz0AA2NvcmVfdGVzdC50YXIA7Vhtb9s2EPbX8lcc8jLYbuVSL5YAux1gG9gWwMMGbMA+
dIUhS3RCRKEMSc4KFPZv35F6cRQ79QYoSrvxgcU38e5Ik0c+pyBO2CJjafa282yg1KHecIg5pZ5b
5q7KC3SwA3U907ap16Gm6WEGw+cb0h6bNPMTgI6f3jKWPt0vZPdtDKdtBNX6/+zfshWPWPM2qEm/
uP6uuV9/y5Prb9tDqwO0+aEc4n++/rMf5pMff4P3YFz5y0XEl4TMZli9fv0ajBX7FLB1xmORgvGH
H0WYithI+bUwgvhu7Scsb9mITcpCFPj1akbmlcr5AJ9cLRhRqR/1jOB33HKEyHQE+Yu3+OSlQRrD
nc/FIC5f+ctBTF5ddGezHhgxyP16pAdcdHPbPTSybx6RV0FY9Buj2C0DpY8csXvYl5BLVAGXg2C9
LoeAaW4HjAAu3hESRMwXKJvcgZGsoI9j6e8ww4lkfCG9KlWDPhyJkiSEvNT67/1f/Z84yeZtSP93
HedJ/zddr/B/6jieq/zf8bT/t4FzLoJoEzJ4l2Yhjwc33xNStZ2hn9yc1erKT7CNcJG7YFcW/OQ6
eAPBjZ/0+7Jy3yOfCcBywQXPur0xluUek8Kytn2x7a7xCHv/L07DZ7Dx7/mfjQxQ8782cLD+z0AD
T/E/W7bl579t2XhPmM7QNfX53wYq/tcY7SsI3lxSPUxKeqeo2gMWl+JlIWVjqPG+WueHhK4hFtYf
+C9Htr5CHPi/vPIbtnGC/5nmkFb8z6XS/23ZXft/CzjnKxGyFUymi5/IOZa4YHmFHKOGQeSnKUyQ
3a03y4gHI2R2k24PMPssE4AUTxHB/lJk8INJP47z5nWCPHHVPZtAdsPT95efQCZ/irM3IBlkT7YW
xbSnZLb44G9XV1/q2f1zRQAhi1jG4MNHSAvVmCi2ig1kOy7nNa3Na9rtSbs1s9PSat2gYrhK6+6Y
1O6kGG7CjAcwAT8fDxcRLgSZfkdKDq0IddFtCkspmbBskwhZ3lYzuMLOi19EwOpTqZqLP7M+qeot
Dk+NqU7di4l9UcfuUMlWzeSciZCv9JH7leLI+a8u4CY/BJyM/6n7IP7HuwAvBMvV538bOBbbP47/
yX3MQyD7CP5RcK/D+W8Xx/hf0x8BT/k/9Sr+Z3mOjP8diw61/7eBA1+fwHQ0QhZSUo3qWoel9PdF
jMWxDqH+K3jq/m8yBjzt/1b1/YdalvR/x9X+3wr28d/8qh4C5vX87n/48V4zeg0NDQ0NjW8dfwPM
dC4hACgAAA==


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

end of thread, other threads:[~2002-09-14 21:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-14 14:14 c++/7148: Seg fault with static class member nathan
  -- strict thread matches above, loose matches on Subject: below --
2002-06-27 20:19 allen

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