Skip to content

NULL-ptr (read) in ../ld/go.c:571 #963

@gopherbot

Description

@gopherbot

by robert.swiecki:

What steps will reproduce the problem?
1. Run '6l SIGSEGV.PC.0x406ed0.CODE.1.ADDR.0x12.INSTR.movzx_eax,_byte_[rax+0x12].6'

What is the expected output?
Error emssage or 6.out file

What do you see instead?
Crash (SIGSEGV)

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

Which revision are you using?  (hg identify)
6916b48fbc0d+ tip

Please provide any additional information below.
$ gdb /usr/local/google/src/go/6l
(gdb) r SIGSEGV.PC.0x406ed0.CODE.1.ADDR.0x12.INSTR.movzx_eax,_byte_[rax+0x12].6
Program received signal SIGSEGV, Segmentation fault.
0x0000000000406ed0 in sweeplist (first=0x632470, last=0x633620) at ../ld/go.c:571
571                             reachable = p->from.sym->reachable;

(gdb) x/i $pc
=> 0x406ed0 <sweeplist+74>:     movzx  eax,BYTE PTR [rax+0x12]
(gdb) x/i $rax+0x12
   0x12:        Cannot access memory at address 0x12
(gdb) bt
#0  0x0000000000406ed0 in sweeplist (first=0x632470, last=0x633620) at ../ld/go.c:571
#1  0x000000000040700d in deadcode () at ../ld/go.c:623
#2  0x000000000040d1c3 in p9main (argc=1, argv=0x7fffffffe130) at
/usr/local/google/src/go/src/cmd/6l/obj.c:329
#3  0x00000000004186b0 in main (argc=2, argv=0x7fffffffe128) at
/usr/local/google/src/go/src/lib9/main.c:35

Attachments:

  1. SIGSEGV.PC.0x406ed0.CODE.1.ADDR.0x12.INSTR.movzx_eax,byte[rax+0x12].6 (59075 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions