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

Crash in 6l while linking an output of "6g -u" #1698

Closed
gopherbot opened this issue Apr 14, 2011 · 2 comments
Closed

Crash in 6l while linking an output of "6g -u" #1698

gopherbot opened this issue Apr 14, 2011 · 2 comments

Comments

@gopherbot
Copy link
Contributor

by robert.swiecki:

What steps will reproduce the problem?
1. Link a .6 file - 6l SIGSEGV.PC.0x4016ec.CODE.1.ADDR.\(nil\).INSTR.mov_rsi\,_\[rax\].6

What is the expected output?
6.out

What do you see instead?
Crash (SIGSEGV)

Which compiler are you using (5g, 6g, 8g, gccgo)?
6l

Which operating system are you using?
Linux/amd64

Which revision are you using?  (hg identify)
c5c62aeb6267 tip

Please provide any additional information below.
$ gdb /usr/local/google/src/go/bin/6l
(gdb) r SIGSEGV.PC.0x4016ec.CODE.1.ADDR.\(nil\).INSTR.mov_rsi\,_\[rax\].6
Program received signal SIGSEGV, Segmentation fault.
0x00000000004016ec in genasmsym (put=0x41b6a0 <putsymb>) at
/usr/local/google/src/go/src/cmd/6l/asm.c:1152
1152                    put(nil, a->asym->name, 'a', -a->aoffset, 0, 0, a->gotype);
(gdb) bt
#0  0x00000000004016ec in genasmsym (put=0x41b6a0 <putsymb>) at
/usr/local/google/src/go/src/cmd/6l/asm.c:1152
#1  0x000000000041586a in p9main (argc=1, argv=0x7fffffffe0c0) at
/usr/local/google/src/go/src/cmd/6l/obj.c:267
#2  0x000000000041d339 in main (argc=0, argv=0x7d16) at
/usr/local/google/src/go/src/lib9/main.c:35

(gdb) p *a
$3 = {asym = 0x0, link = 0x0, aoffset = 0, type = 115, gotype = 0x0}

Attachments:

  1. SIGSEGV.PC.0x4016ec.CODE.1.ADDR.(nil).INSTR.mov_rsi,_[rax].6 (1516 bytes)
@gopherbot
Copy link
Contributor Author

Comment 1 by robert.swiecki:

This is an arbitrarily created .6 file - so no bigger problems here, except improving
stability of 6l

@rsc
Copy link
Contributor

rsc commented Apr 14, 2011

Comment 2:

This issue was closed by revision bd43a2d.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
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

2 participants