Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack exhaustion in 6g (recursive execution of mppow10flt #941

Closed
gopherbot opened this issue Jul 20, 2010 · 2 comments
Closed

Stack exhaustion in 6g (recursive execution of mppow10flt #941

gopherbot opened this issue Jul 20, 2010 · 2 comments

Comments

@gopherbot
Copy link
Contributor

by robert.swiecki:

What steps will reproduce the problem?
1. Run '6l crash1.go'

What is the expected output?
Error message, preferably no crash

What do you see instead?
Crash (SIGSEGV)

What is your $GOOS?  $GOARCH?
linux/amd64

Which revision are you using?  (hg identify)
80fd480b0892+ tip

Please provide any additional information below.
$ gdb /usr/local/google/src/go/6g


(gdb) r crash1.go 
Program received signal SIGSEGV, Segmentation fault.
0x0000000000420c8b in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
225     mppow10flt(a, p>>1);


#0  0x0000000000420c8b in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
#1  0x0000000000420c90 in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
#2  0x0000000000420c90 in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
#3  0x0000000000420c90 in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
#4  0x0000000000420c90 in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
#5  0x0000000000420c90 in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
#6  0x0000000000420c90 in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
#7  0x0000000000420c90 in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
#8  0x0000000000420c90 in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
#9  0x0000000000420c90 in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
#10 0x0000000000420c90 in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
#11 0x0000000000420c90 in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
#12 0x0000000000420c90 in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
#13 0x0000000000420c90 in mppow10flt (a=0x7fffffffd7d0, p=-1) at
/usr/local/google/src/go/src/cmd/gc/mparith1.c:225
etc.. etc..

Attachments:

  1. crash1.go (882 bytes)
@adg
Copy link
Contributor

adg commented Jul 21, 2010

Comment 1:

Labels changed: added compilerbug, security.

Owner changed to r...@golang.org.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Jul 21, 2010

Comment 2:

This issue was closed by revision 0decedf.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants