Skip to content

[Go] SIGABRT when running go test, using tensorflow 1.4 compiled form source #14546

Closed

Description

@galeone

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow): no
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Archlinux
  • TensorFlow installed from (source or binary): source
  • TensorFlow version (use command below): 1.4.0
  • Python version: 3.6
  • Bazel version (if compiling from source): Build label: 0.7.0- (@Non-Git)
  • GCC/Compiler version (if compiling from source): gcc-6
  • CUDA/cuDNN version: CUDA 9 / cuDNN 7
  • GPU model and memory: Dual Nvidia 1080 Ti
  • Exact command to reproduce:
go test github.com/tensorflow/tensorflow/tensorflow/go

Describe the problem

I have build tensorflow with CUDA support. Since Go requires the C library, I built libtensorflow.so and libtensorflow_framework.so, with:

bazel build //tensorflow:libtensorflow_framework.so
bazel build //tensorflow:libtensorflow.so

I updated LD_LIBRARY_PATH accordingly:

TENSORFLOW_LIBLIB="${HOME}/sources/tensorflow/bazel-bin/tensorflow/"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/cuda/lib64:/opt/cuda/extras/CUPTI/lib64:${TENSORFLOW_LIBLIB}"
export LIBRARY_PATH="${TENSORFLOW_LIBLIB}:${LIBRARY_PATH}"

I can now go get tensorflow without problems, I can hence compile it and use the -ltensorflow linker flag.

When I run go test on the tensorflow package, the following error (tensorflow/core/framework/tensor.cc:822] Unexpected type: 23 ) is thrown and causes SIGABRT.

Source code / logs

go test github.com/tensorflow/tensorflow/tensorflow/go                                                                                                                                                                                                    
2017-11-14 12:12:06.299645: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 AVX512F FMA                                                                        
2017-11-14 12:12:06.303492: F tensorflow/core/framework/tensor.cc:822] Unexpected type: 23                                                                                                                                                                                     
SIGABRT: abort                                                                                                                                                                                                                                                                 
PC=0x7f1d39a098a0 m=6 sigcode=18446744073709551610                        
signal arrived during cgo execution                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                               goroutine 40 [syscall, locked to thread]:                                                                                                                                                                                                                                      
runtime.cgocall(0x656af0, 0xc4200519c8, 0xc4200519f0)
        /usr/lib/go/src/runtime/cgocall.go:132 +0xe4 fp=0xc420051998 sp=0xc420051958 pc=0x4054c4                                                                                                                                                                        
github.com/tensorflow/tensorflow/tensorflow/go._Cfunc_TF_SetAttrTensor(0x7f1cf000a9a0, 0x7f1cf000b5a0, 0x7f1cf000b6b0, 0x7f1cf000cc00)                                                                                                                                         
        github.com/tensorflow/tensorflow/tensorflow/go/_test/_obj_test/_cgo_gotypes.go:890 +0x45 fp=0xc4200519c8 sp=0xc420051998 pc=0x52ce85                                                                                                                                   
github.com/tensorflow/tensorflow/tensorflow/go.setAttr.func18(0x7f1cf000a9a0, 0x7f1cf000b5a0, 0x7f1cf000b6b0, 0x7f1cf000cc00)                                                                                                                                                  
        /home/pgaleone/go/src/github.com/tensorflow/tensorflow/tensorflow/go/graph.go:273 +0xec fp=0xc420051a00 sp=0xc4200519c8 pc=0x53907c
github.com/tensorflow/tensorflow/tensorflow/go.setAttr(0x7f1cf000a9a0, 0xc42000e0c0, 0x6ef59e, 0x5, 0x6b6560, 0xc4200f6460, 0x0, 0x0)
        /home/pgaleone/go/src/github.com/tensorflow/tensorflow/tensorflow/go/graph.go:273 +0x11b9 fp=0xc420051c00 sp=0xc420051a00 pc=0x52fab9                                                                                                                                  
github.com/tensorflow/tensorflow/tensorflow/go.(*Graph).AddOperation(0xc42000e080, 0x6ef404, 0x5, 0xc42050c4e0, 0x6, 0x0, 0x0, 0x0, 0xc42008af00, 0x4b388b, ...)                                                                                                               
        /home/pgaleone/go/src/github.com/tensorflow/tensorflow/tensorflow/go/graph.go:176 +0x4a0 fp=0xc420051d60 sp=0xc420051c00 pc=0x52e700                                                                                                                                   
github.com/tensorflow/tensorflow/tensorflow/go.Const(0xc42000e080, 0xc42050c4e0, 0x6, 0x682c40, 0xc4200f62e0, 0xc42050c4e0, 0x6, 0x4d48ed, 0x7ab068)
        /home/pgaleone/go/src/github.com/tensorflow/tensorflow/tensorflow/go/util_test.go:38 +0x221 fp=0xc420051e38 sp=0xc420051d60 pc=0x52a0a1
github.com/tensorflow/tensorflow/tensorflow/go.TestOutputDataTypeAndShape.func1(0xc420110780)                                                                                                                                                                                  
        /home/pgaleone/go/src/github.com/tensorflow/tensorflow/tensorflow/go/operation_test.go:137 +0x11e fp=0xc420051fa8 sp=0xc420051e38 pc=0x53650e                                                                                                                          
testing.tRunner(0xc420110780, 0xc4200f6420)                                                                                                                                                                                                                                    
        /usr/lib/go/src/testing/testing.go:746 +0xd0 fp=0xc420051fd0 sp=0xc420051fa8 pc=0x4d4990
runtime.goexit()                                                                                                                                                                                                                                                               
        /usr/lib/go/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc420051fd8 sp=0xc420051fd0 pc=0x45f981                                                                                                                                                                              
created by testing.(*T).Run                                                                                                                                                                                                                                                    
        /usr/lib/go/src/testing/testing.go:789 +0x2de                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                               
goroutine 1 [chan receive]:                                                                                                                                                                                                                                                    
testing.(*T).Run(0xc420110000, 0x6f567b, 0x1a, 0x702ab0, 0x47b301)             
        /usr/lib/go/src/testing/testing.go:790 +0x2fc                                                                                                                                                                                                                          
testing.runTests.func1(0xc420110000)                                           
        /usr/lib/go/src/testing/testing.go:1004 +0x64                          
testing.tRunner(0xc420110000, 0xc420061de0)                                    
        /usr/lib/go/src/testing/testing.go:746 +0xd0
testing.runTests(0xc4200f6240, 0xa413c0, 0x11, 0x11, 0xc420061e78)
        /usr/lib/go/src/testing/testing.go:1002 +0x2d8
testing.(*M).Run(0xc420061f18, 0xc420061f70)
        /usr/lib/go/src/testing/testing.go:921 +0x111                                                         
main.main()                                                                            
        github.com/tensorflow/tensorflow/tensorflow/go/_test/_testmain.go:82 +0xdb

goroutine 36 [chan receive]:         
testing.(*T).Run(0xc4201103c0, 0xc4200145e0, 0x13, 0xc4200f6420, 0x2)                                                                                                                                                                                                          
        /usr/lib/go/src/testing/testing.go:790 +0x2fc                                                                                                                                                                                                                          
github.com/tensorflow/tensorflow/tensorflow/go.TestOutputDataTypeAndShape(0xc4201103c0)                                                                                                                                                                                        
        /home/pgaleone/go/src/github.com/tensorflow/tensorflow/tensorflow/go/operation_test.go:136 +0x56e                                                                                                                                                                      
testing.tRunner(0xc4201103c0, 0x702ab0)                                                                                                                                                                                                                                        
        /usr/lib/go/src/testing/testing.go:746 +0xd0
created by testing.(*T).Run
        /usr/lib/go/src/testing/testing.go:789 +0x2de

rax    0x0
rbx    0x6
rcx    0x7f1d39a098a0
rdx    0x0
rdi    0x2
rsi    0x7f1cf67fb7b0
rbp    0x7f1cf67fba00
rsp    0x7f1cf67fb7b0
r8     0x0
r9     0x7f1cf67fb7b0
r10    0x8
r11    0x246
r12    0x7f1cf000c210
r13    0x17
r14    0x7f1cf000b5a0
r15    0x7f1cf67fbc40
rip    0x7f1d39a098a0
rflags 0x246
cs     0x33
fs     0x0
gs     0x0
FAIL    github.com/tensorflow/tensorflow/tensorflow/go  0.059s

Activity

  1. ProTip commented on Nov 16, 2017

    @ProTip

    @galeone I'm running up against this as well. Have you found any workarounds?

  2. galeone commented on Nov 16, 2017

    @galeone
    Author

    I didn't have time to dig into the code, therefore no. But since C++ tests are passing, I guess that they have changed something in the C++ implementation without reflecting the changes in the tensorflow tests (maybe some operation that fist was accepting a float32 now needs a float64). I'm pretty sure that other packages that depend on the go package could still work. Tomorrow I'm going to try if tfgo can still be built and run. I keep you up-to-date

  3. galeone commented on Nov 17, 2017

    @galeone
    Author

    Update: I checked if tfgo can be compiled and it can run its tests: it does. Therefore the problem is in the tensorflow go tests

  4. galeone commented on Nov 17, 2017

    @galeone
    Author

    Ok, I found where the error is. It looks like that the Uint64 type is somehow unsupported when creating a 2D tensor using the Const operation (in the C library).

    The error line is: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/go/operation_test.go#L126

    If you comment these lines of code

    		{ // Matrix of Uint64
    			[][]uint64{
    				{1, 2, 3},
    				{4, 5, 6},
    			},
    			[]int64{2, 3},
    			Uint64,
    		},

    go test works without raising SIGABRT.

    Also, the error is about a "type 23", but from what I can see here (https://godoc.org/github.com/tensorflow/tensorflow/tensorflow/go#DataType ) there are only 22 data types available.

  5. asimshankar commented on Nov 28, 2017

    @asimshankar
    Contributor

    Apologies for the late reply, I was out.

    DataType 23 corresponds to TF_UINT64:

    support for which was added pretty recently (after TensorFlow 1.4 was cut) in commit 3bafe0a (see also #14331)

    So the test at head will not work with the C library from the 1.4 branch.
    You'll either need to run tests from the 1.4 branch or build the C library from head.

    Please feel free to re-open if I misunderstood and you still see the problem at head (or when the Go code and C library versions are inconsistent)

  6. galeone commented on Nov 28, 2017

    @galeone
    Author

    That was easier than I thought, so the fix is:

    cd $GOPATH/src/github.com/tensorflow/tensorflow/tensorflow/go
    git checkout r1.4
    go test

    Perfect. Thank you!

  7. galeone commented on Apr 7, 2018

    @galeone
    Author

    I'm facing again this same exact issue.
    It looks like the problem with the Unexpected type: 23 has been fixed only in tensorflow 1.4, but it is still present in every other release (I've tested with 1.5, 1.6 and 1.7 and is present).

    Proof:

    1.5

    (cv) [pgaleone@persefone go]$ git checkout r1.5
    Switched to branch 'r1.5'
    Your branch is up to date with 'origin/r1.5'.
    (cv) [pgaleone@persefone go]$ go test
    2018-04-07 08:37:06.625482: F tensorflow/core/framework/tensor.cc:822] Unexpected type: 23
    SIGABRT: abort
    PC=0x7f82afedd860 m=8 sigcode=18446744073709551610
    
    goroutine 0 [idle]:
    runtime: unknown pc 0x7f82afedd860
    stack: frame={sp:0x7f82937f5880, fp:0x0} stack=[0x7f8292ff61d0,0x7f82937f5dd0)
    00007f82937f5780:  0000000000000000  0000006e0000005b 
    00007f82937f5790:  0000000000000000  000000770000007c 
    00007f82937f57a0:  000000000000001b  00007f827c000020 
    00007f82937f57b0:  0000000000000014  fffffffffffffef8 
    00007f82937f57c0:  00007f827c00822d  0000000000000003 
    00007f82937f57d0:  00007f827c006940  00007f82aff2b47a 
    00007f82937f57e0:  00007f827c0052b0  00007f827c0052c1 
    00007f82937f57f0:  000000000000000d  00007f82aff5cdc2 
    00007f82937f5800:  00007f82b025b350  0000000000000001 
    00007f82937f5810:  0000000000000000  00000000000000ac 
    00007f82937f5820:  00007f82b025b350  00007f82aff5de29 
    00007f82937f5830:  0000000000000001  ffffffff00000008 
    00007f82937f5840:  01000000004d1d96  0000000000000011 
    00007f82937f5850:  0000000000000008  0000000000000008 
    00007f82937f5860:  00000000000006b8  00000000000006b8 
    00007f82937f5870:  00007f82937f5900  0000000000000000 
    00007f82937f5880: <0000000000000000  0000000000000000 
    00007f82937f5890:  0800000000000000  0000000008000000 
    00007f82937f58a0:  08000000ae000000  0000000011000000 
    00007f82937f58b0:  0000000000000802  000000000076074b 
    00007f82937f58c0:  0000000000000003  a56bbb4077756a00 
    00007f82937f58d0:  0000000000000000  00007f82937f5ae0 
    00007f82937f58e0:  00007f82937f5a50  00007f82937f5a70 
    00007f82937f58f0:  0000000000098b4a  00007f82937f5a20 
    00007f82937f5900:  fffffffe7fffffff  ffffffffffffffff 
    00007f82937f5910:  ffffffffffffffff  ffffffffffffffff 
    00007f82937f5920:  ffffffffffffffff  ffffffffffffffff 
    00007f82937f5930:  ffffffffffffffff  ffffffffffffffff 
    00007f82937f5940:  ffffffffffffffff  ffffffffffffffff 
    00007f82937f5950:  ffffffffffffffff  ffffffffffffffff 
    00007f82937f5960:  ffffffffffffffff  ffffffffffffffff 
    00007f82937f5970:  ffffffffffffffff  ffffffffffffffff 
    runtime: unknown pc 0x7f82afedd860
    stack: frame={sp:0x7f82937f5880, fp:0x0} stack=[0x7f8292ff61d0,0x7f82937f5dd0)
    00007f82937f5780:  0000000000000000  0000006e0000005b 
    00007f82937f5790:  0000000000000000  000000770000007c 
    00007f82937f57a0:  000000000000001b  00007f827c000020 
    00007f82937f57b0:  0000000000000014  fffffffffffffef8 
    00007f82937f57c0:  00007f827c00822d  0000000000000003 
    00007f82937f57d0:  00007f827c006940  00007f82aff2b47a 
    00007f82937f57e0:  00007f827c0052b0  00007f827c0052c1 
    00007f82937f57f0:  000000000000000d  00007f82aff5cdc2 
    00007f82937f5800:  00007f82b025b350  0000000000000001 
    00007f82937f5810:  0000000000000000  00000000000000ac 
    00007f82937f5820:  00007f82b025b350  00007f82aff5de29 
    00007f82937f5830:  0000000000000001  ffffffff00000008 
    00007f82937f5840:  01000000004d1d96  0000000000000011 
    00007f82937f5850:  0000000000000008  0000000000000008 
    00007f82937f5860:  00000000000006b8  00000000000006b8 
    00007f82937f5870:  00007f82937f5900  0000000000000000 
    00007f82937f5880: <0000000000000000  0000000000000000 
    00007f82937f5890:  0800000000000000  0000000008000000 
    00007f82937f58a0:  08000000ae000000  0000000011000000 
    00007f82937f58b0:  0000000000000802  000000000076074b 
    00007f82937f58c0:  0000000000000003  a56bbb4077756a00 
    00007f82937f58d0:  0000000000000000  00007f82937f5ae0 
    00007f82937f58e0:  00007f82937f5a50  00007f82937f5a70 
    00007f82937f58f0:  0000000000098b4a  00007f82937f5a20 
    00007f82937f5900:  fffffffe7fffffff  ffffffffffffffff 
    00007f82937f5910:  ffffffffffffffff  ffffffffffffffff 
    00007f82937f5920:  ffffffffffffffff  ffffffffffffffff 
    00007f82937f5930:  ffffffffffffffff  ffffffffffffffff 
    00007f82937f5940:  ffffffffffffffff  ffffffffffffffff 
    00007f82937f5950:  ffffffffffffffff  ffffffffffffffff 
    00007f82937f5960:  ffffffffffffffff  ffffffffffffffff 
    00007f82937f5970:  ffffffffffffffff  ffffffffffffffff 
    
    goroutine 30 [syscall]:
    runtime.cgocall(0x6524d0, 0xc42005b8d0, 0xc42005b8d8)
    	/usr/lib/go/src/runtime/cgocall.go:128 +0x64 fp=0xc42005b8a0 sp=0xc42005b868 pc=0x405454
    github.com/tensorflow/tensorflow/tensorflow/go._Cfunc_TF_SetAttrTensor(0x7f827c0043b0, 0x7f827c005190, 0x7f827c005280, 0x7f827c006650)
    	_cgo_gotypes.go:921 +0x45 fp=0xc42005b8d0 sp=0xc42005b8a0 pc=0x522ac5
    github.com/tensorflow/tensorflow/tensorflow/go.setAttr.func18(0x7f827c0043b0, 0x7f827c005190, 0x7f827c005280, 0x7f827c006650)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/graph.go:306 +0xce fp=0xc42005b908 sp=0xc42005b8d0 pc=0x52e4ae
    github.com/tensorflow/tensorflow/tensorflow/go.setAttr(0x7f827c0043b0, 0xc42000e0c0, 0x6ed34c, 0x5, 0x6b21a0, 0xc420112500, 0x0, 0x0)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/graph.go:306 +0x1006 fp=0xc42005bad8 sp=0xc42005b908 pc=0x5255f6
    github.com/tensorflow/tensorflow/tensorflow/go.(*Graph).AddOperation(0xc42000e080, 0x6ed1a3, 0x5, 0xc42001a7e8, 0x6, 0x0, 0x0, 0x0, 0xc42005bcb0, 0xc420047cf0, ...)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/graph.go:209 +0x49d fp=0xc42005bc30 sp=0xc42005bad8 pc=0x52443d
    github.com/tensorflow/tensorflow/tensorflow/go.Const(0xc42000e080, 0xc42001a7e8, 0x6, 0x67d160, 0xc420112340, 0xc42001a7e8, 0x6, 0x7ad090, 0x7ad0d0)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/util_test.go:38 +0x247 fp=0xc42005be40 sp=0xc42005bc30 pc=0x51fb77
    github.com/tensorflow/tensorflow/tensorflow/go.TestOutputDataTypeAndShape.func1(0xc420128780)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/operation_test.go:137 +0x111 fp=0xc42005bfa8 sp=0xc42005be40 pc=0x52bbc1
    testing.tRunner(0xc420128780, 0xc4201124c0)
    	/usr/lib/go/src/testing/testing.go:777 +0xd0 fp=0xc42005bfd0 sp=0xc42005bfa8 pc=0x4ce240
    runtime.goexit()
    	/usr/lib/go/src/runtime/asm_amd64.s:2361 +0x1 fp=0xc42005bfd8 sp=0xc42005bfd0 pc=0x45cf41
    created by testing.(*T).Run
    	/usr/lib/go/src/testing/testing.go:824 +0x2e0
    
    goroutine 1 [chan receive]:
    testing.(*T).Run(0xc4201283c0, 0x6f3637, 0x1a, 0x7013f0, 0x477b01)
    	/usr/lib/go/src/testing/testing.go:825 +0x301
    testing.runTests.func1(0xc420128000)
    	/usr/lib/go/src/testing/testing.go:1063 +0x64
    testing.tRunner(0xc420128000, 0xc42006bdf8)
    	/usr/lib/go/src/testing/testing.go:777 +0xd0
    testing.runTests(0xc420112260, 0xa49460, 0x11, 0x11, 0x413b29)
    	/usr/lib/go/src/testing/testing.go:1061 +0x2c4
    testing.(*M).Run(0xc420126000, 0x0)
    	/usr/lib/go/src/testing/testing.go:978 +0x171
    main.main()
    	_testmain.go:82 +0x151
    
    goroutine 26 [chan receive]:
    testing.(*T).Run(0xc420128780, 0xc420018420, 0x13, 0xc4201124c0, 0x2)
    	/usr/lib/go/src/testing/testing.go:825 +0x301
    github.com/tensorflow/tensorflow/tensorflow/go.TestOutputDataTypeAndShape(0xc4201283c0)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/operation_test.go:136 +0x552
    testing.tRunner(0xc4201283c0, 0x7013f0)
    	/usr/lib/go/src/testing/testing.go:777 +0xd0
    created by testing.(*T).Run
    	/usr/lib/go/src/testing/testing.go:824 +0x2e0
    
    rax    0x0
    rbx    0x6
    rcx    0x7f82afedd860
    rdx    0x0
    rdi    0x2
    rsi    0x7f82937f5880
    rbp    0x7f82937f5ad0
    rsp    0x7f82937f5880
    r8     0x0
    r9     0x7f82937f5880
    r10    0x8
    r11    0x246
    r12    0x7f82937f5d10
    r13    0x5
    r14    0x7f827c005190
    r15    0x7f82937f5d10
    rip    0x7f82afedd860
    rflags 0x246
    cs     0x33
    fs     0x0
    gs     0x0
    exit status 2
    FAIL	github.com/tensorflow/tensorflow/tensorflow/go	0.081s
    

    1.6

    (cv) [pgaleone@persefone go]$ git checkout r1.6
    Switched to branch 'r1.6'
    Your branch is up to date with 'origin/r1.6'.
    (cv) [pgaleone@persefone go]$ go test
    2018-04-07 08:37:33.608147: F tensorflow/core/framework/tensor.cc:822] Unexpected type: 23
    SIGABRT: abort
    PC=0x7f884c725860 m=7 sigcode=18446744073709551610
    
    goroutine 0 [idle]:
    runtime: unknown pc 0x7f884c725860
    stack: frame={sp:0x7f88307f7880, fp:0x0} stack=[0x7f882fff81d0,0x7f88307f7dd0)
    00007f88307f7780:  0000000000000000  0000006e0000005b 
    00007f88307f7790:  0000000000000000  000000770000007c 
    00007f88307f77a0:  000000000000001b  00007f8828000020 
    00007f88307f77b0:  0000000000000014  fffffffffffffef8 
    00007f88307f77c0:  00007f882800a19d  0000000000000003 
    00007f88307f77d0:  00007f88280088b0  00007f884c77347a 
    00007f88307f77e0:  00007f8828007220  00007f8828007231 
    00007f88307f77f0:  000000000000000d  00007f884c7a4dc2 
    00007f88307f7800:  00007f884caa3350  0000000000000001 
    00007f88307f7810:  0000000000000000  00000000000000ac 
    00007f88307f7820:  00007f884caa3350  00007f884c7a5e29 
    00007f88307f7830:  0000000000000001  ffffffff00000008 
    00007f88307f7840:  01000000004d2166  0000000000000011 
    00007f88307f7850:  0000000000000008  0000000000000008 
    00007f88307f7860:  00000000000006b8  00000000000006b8 
    00007f88307f7870:  00007f88307f7900  0000000000000000 
    00007f88307f7880: <0000000000000000  0000000000000000 
    00007f88307f7890:  0800000000000000  0000000008000000 
    00007f88307f78a0:  08000000ae000000  0000000011000000 
    00007f88307f78b0:  0000000000000802  000000000076074b 
    00007f88307f78c0:  0000000000000003  61e47ad4235a2e00 
    00007f88307f78d0:  0000000000000000  00007f88307f7ae0 
    00007f88307f78e0:  00007f88307f7a50  00007f88307f7a70 
    00007f88307f78f0:  0000000000094793  00007f88307f7a20 
    00007f88307f7900:  fffffffe7fffffff  ffffffffffffffff 
    00007f88307f7910:  ffffffffffffffff  ffffffffffffffff 
    00007f88307f7920:  ffffffffffffffff  ffffffffffffffff 
    00007f88307f7930:  ffffffffffffffff  ffffffffffffffff 
    00007f88307f7940:  ffffffffffffffff  ffffffffffffffff 
    00007f88307f7950:  ffffffffffffffff  ffffffffffffffff 
    00007f88307f7960:  ffffffffffffffff  ffffffffffffffff 
    00007f88307f7970:  ffffffffffffffff  ffffffffffffffff 
    runtime: unknown pc 0x7f884c725860
    stack: frame={sp:0x7f88307f7880, fp:0x0} stack=[0x7f882fff81d0,0x7f88307f7dd0)
    00007f88307f7780:  0000000000000000  0000006e0000005b 
    00007f88307f7790:  0000000000000000  000000770000007c 
    00007f88307f77a0:  000000000000001b  00007f8828000020 
    00007f88307f77b0:  0000000000000014  fffffffffffffef8 
    00007f88307f77c0:  00007f882800a19d  0000000000000003 
    00007f88307f77d0:  00007f88280088b0  00007f884c77347a 
    00007f88307f77e0:  00007f8828007220  00007f8828007231 
    00007f88307f77f0:  000000000000000d  00007f884c7a4dc2 
    00007f88307f7800:  00007f884caa3350  0000000000000001 
    00007f88307f7810:  0000000000000000  00000000000000ac 
    00007f88307f7820:  00007f884caa3350  00007f884c7a5e29 
    00007f88307f7830:  0000000000000001  ffffffff00000008 
    00007f88307f7840:  01000000004d2166  0000000000000011 
    00007f88307f7850:  0000000000000008  0000000000000008 
    00007f88307f7860:  00000000000006b8  00000000000006b8 
    00007f88307f7870:  00007f88307f7900  0000000000000000 
    00007f88307f7880: <0000000000000000  0000000000000000 
    00007f88307f7890:  0800000000000000  0000000008000000 
    00007f88307f78a0:  08000000ae000000  0000000011000000 
    00007f88307f78b0:  0000000000000802  000000000076074b 
    00007f88307f78c0:  0000000000000003  61e47ad4235a2e00 
    00007f88307f78d0:  0000000000000000  00007f88307f7ae0 
    00007f88307f78e0:  00007f88307f7a50  00007f88307f7a70 
    00007f88307f78f0:  0000000000094793  00007f88307f7a20 
    00007f88307f7900:  fffffffe7fffffff  ffffffffffffffff 
    00007f88307f7910:  ffffffffffffffff  ffffffffffffffff 
    00007f88307f7920:  ffffffffffffffff  ffffffffffffffff 
    00007f88307f7930:  ffffffffffffffff  ffffffffffffffff 
    00007f88307f7940:  ffffffffffffffff  ffffffffffffffff 
    00007f88307f7950:  ffffffffffffffff  ffffffffffffffff 
    00007f88307f7960:  ffffffffffffffff  ffffffffffffffff 
    00007f88307f7970:  ffffffffffffffff  ffffffffffffffff 
    
    goroutine 30 [syscall]:
    runtime.cgocall(0x653f10, 0xc420057898, 0xc4200578a0)
    	/usr/lib/go/src/runtime/cgocall.go:128 +0x64 fp=0xc420057868 sp=0xc420057830 pc=0x405824
    github.com/tensorflow/tensorflow/tensorflow/go._Cfunc_TF_SetAttrTensor(0x7f8828006320, 0x7f8828007100, 0x7f88280071f0, 0x7f88280085c0)
    	_cgo_gotypes.go:1024 +0x45 fp=0xc420057898 sp=0xc420057868 pc=0x523695
    github.com/tensorflow/tensorflow/tensorflow/go.setAttr.func18(0x7f8828006320, 0x7f8828007100, 0x7f88280071f0, 0x7f88280085c0)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/graph.go:313 +0xce fp=0xc4200578d0 sp=0xc420057898 pc=0x52f98e
    github.com/tensorflow/tensorflow/tensorflow/go.setAttr(0x7f8828006320, 0xc4200a60b8, 0x6ef1cc, 0x5, 0x6b3f40, 0xc4201284e0, 0x0, 0x0)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/graph.go:313 +0x1006 fp=0xc420057aa0 sp=0xc4200578d0 pc=0x526226
    github.com/tensorflow/tensorflow/tensorflow/go.(*Graph).AddOperation(0xc4200a6080, 0x6ef023, 0x5, 0xc42001a408, 0x6, 0x0, 0x0, 0x0, 0xc420057c98, 0x0, ...)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/graph.go:216 +0x4fb fp=0xc420057c00 sp=0xc420057aa0 pc=0x52506b
    github.com/tensorflow/tensorflow/tensorflow/go.Const(0xc4200a6080, 0xc42001a408, 0x6, 0x67ee40, 0xc420128320, 0xc42001a408, 0x6, 0x7af1f0, 0x7af230)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/util_test.go:38 +0x271 fp=0xc420057e40 sp=0xc420057c00 pc=0x5201e1
    github.com/tensorflow/tensorflow/tensorflow/go.TestOutputDataTypeAndShape.func1(0xc420140780)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/operation_test.go:137 +0x111 fp=0xc420057fa8 sp=0xc420057e40 pc=0x52cff1
    testing.tRunner(0xc420140780, 0xc4201284a0)
    	/usr/lib/go/src/testing/testing.go:777 +0xd0 fp=0xc420057fd0 sp=0xc420057fa8 pc=0x4ce610
    runtime.goexit()
    	/usr/lib/go/src/runtime/asm_amd64.s:2361 +0x1 fp=0xc420057fd8 sp=0xc420057fd0 pc=0x45d311
    created by testing.(*T).Run
    	/usr/lib/go/src/testing/testing.go:824 +0x2e0
    
    goroutine 1 [chan receive]:
    testing.(*T).Run(0xc4201403c0, 0x6f54ea, 0x1a, 0x703348, 0x477f01)
    	/usr/lib/go/src/testing/testing.go:825 +0x301
    testing.runTests.func1(0xc420140000)
    	/usr/lib/go/src/testing/testing.go:1063 +0x64
    testing.tRunner(0xc420140000, 0xc42006bdf8)
    	/usr/lib/go/src/testing/testing.go:777 +0xd0
    testing.runTests(0xc420128220, 0xa4c4c0, 0x12, 0x12, 0x413ef9)
    	/usr/lib/go/src/testing/testing.go:1061 +0x2c4
    testing.(*M).Run(0xc42013e000, 0x0)
    	/usr/lib/go/src/testing/testing.go:978 +0x171
    main.main()
    	_testmain.go:84 +0x151
    
    goroutine 26 [chan receive]:
    testing.(*T).Run(0xc420140780, 0xc4200d22c0, 0x13, 0xc4201284a0, 0x2)
    	/usr/lib/go/src/testing/testing.go:825 +0x301
    github.com/tensorflow/tensorflow/tensorflow/go.TestOutputDataTypeAndShape(0xc4201403c0)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/operation_test.go:136 +0x552
    testing.tRunner(0xc4201403c0, 0x703348)
    	/usr/lib/go/src/testing/testing.go:777 +0xd0
    created by testing.(*T).Run
    	/usr/lib/go/src/testing/testing.go:824 +0x2e0
    
    rax    0x0
    rbx    0x6
    rcx    0x7f884c725860
    rdx    0x0
    rdi    0x2
    rsi    0x7f88307f7880
    rbp    0x7f88307f7ad0
    rsp    0x7f88307f7880
    r8     0x0
    r9     0x7f88307f7880
    r10    0x8
    r11    0x246
    r12    0x7f88307f7d10
    r13    0x5
    r14    0x7f8828007100
    r15    0x7f88307f7d10
    rip    0x7f884c725860
    rflags 0x246
    cs     0x33
    fs     0x0
    gs     0x0
    exit status 2
    FAIL	github.com/tensorflow/tensorflow/tensorflow/go	0.082s
    

    1.7

    (cv) [pgaleone@persefone go]$ git checkout r1.7
    Switched to branch 'r1.7'
    Your branch is up to date with 'origin/r1.7'.
    (cv) [pgaleone@persefone go]$ go test
    2018-04-07 08:38:02.846973: F tensorflow/core/framework/tensor.cc:822] Unexpected type: 23
    SIGABRT: abort
    PC=0x7f88599b1860 m=7 sigcode=18446744073709551610
    
    goroutine 0 [idle]:
    runtime: unknown pc 0x7f88599b1860
    stack: frame={sp:0x7f88417f9880, fp:0x0} stack=[0x7f8840ffa1d0,0x7f88417f9dd0)
    00007f88417f9780:  0000000000000000  0000006e0000005b 
    00007f88417f9790:  0000000000000000  000000770000007c 
    00007f88417f97a0:  000000000000001b  00007f8838000020 
    00007f88417f97b0:  0000000000000014  fffffffffffffef8 
    00007f88417f97c0:  00007f8838009d4d  0000000000000003 
    00007f88417f97d0:  00007f8838008460  00007f88599ff47a 
    00007f88417f97e0:  00007f8838006dd0  00007f8838006de1 
    00007f88417f97f0:  000000000000000d  00007f8859a30dc2 
    00007f88417f9800:  00007f8859d2f350  0000000000000001 
    00007f88417f9810:  0000000000000000  00000000000000ac 
    00007f88417f9820:  00007f8859d2f350  00007f8859a31e29 
    00007f88417f9830:  0000000000000001  ffffffff00000008 
    00007f88417f9840:  01000000004d2166  0000000000000011 
    00007f88417f9850:  0000000000000008  0000000000000008 
    00007f88417f9860:  00000000000006b8  00000000000006b8 
    00007f88417f9870:  00007f88417f9900  0000000000000000 
    00007f88417f9880: <0000000000000000  0000000000000000 
    00007f88417f9890:  0800000000000000  0000000008000000 
    00007f88417f98a0:  08000000ae000000  0000000011000000 
    00007f88417f98b0:  0000000000000802  000000000076074b 
    00007f88417f98c0:  0000000000000003  6b320cc32e502500 
    00007f88417f98d0:  0000000000000000  00007f88417f9ae0 
    00007f88417f98e0:  00007f88417f9a50  00007f88417f9a70 
    00007f88417f98f0:  00000000000cec7d  00007f88417f9a20 
    00007f88417f9900:  fffffffe7fffffff  ffffffffffffffff 
    00007f88417f9910:  ffffffffffffffff  ffffffffffffffff 
    00007f88417f9920:  ffffffffffffffff  ffffffffffffffff 
    00007f88417f9930:  ffffffffffffffff  ffffffffffffffff 
    00007f88417f9940:  ffffffffffffffff  ffffffffffffffff 
    00007f88417f9950:  ffffffffffffffff  ffffffffffffffff 
    00007f88417f9960:  ffffffffffffffff  ffffffffffffffff 
    00007f88417f9970:  ffffffffffffffff  ffffffffffffffff 
    runtime: unknown pc 0x7f88599b1860
    stack: frame={sp:0x7f88417f9880, fp:0x0} stack=[0x7f8840ffa1d0,0x7f88417f9dd0)
    00007f88417f9780:  0000000000000000  0000006e0000005b 
    00007f88417f9790:  0000000000000000  000000770000007c 
    00007f88417f97a0:  000000000000001b  00007f8838000020 
    00007f88417f97b0:  0000000000000014  fffffffffffffef8 
    00007f88417f97c0:  00007f8838009d4d  0000000000000003 
    00007f88417f97d0:  00007f8838008460  00007f88599ff47a 
    00007f88417f97e0:  00007f8838006dd0  00007f8838006de1 
    00007f88417f97f0:  000000000000000d  00007f8859a30dc2 
    00007f88417f9800:  00007f8859d2f350  0000000000000001 
    00007f88417f9810:  0000000000000000  00000000000000ac 
    00007f88417f9820:  00007f8859d2f350  00007f8859a31e29 
    00007f88417f9830:  0000000000000001  ffffffff00000008 
    00007f88417f9840:  01000000004d2166  0000000000000011 
    00007f88417f9850:  0000000000000008  0000000000000008 
    00007f88417f9860:  00000000000006b8  00000000000006b8 
    00007f88417f9870:  00007f88417f9900  0000000000000000 
    00007f88417f9880: <0000000000000000  0000000000000000 
    00007f88417f9890:  0800000000000000  0000000008000000 
    00007f88417f98a0:  08000000ae000000  0000000011000000 
    00007f88417f98b0:  0000000000000802  000000000076074b 
    00007f88417f98c0:  0000000000000003  6b320cc32e502500 
    00007f88417f98d0:  0000000000000000  00007f88417f9ae0 
    00007f88417f98e0:  00007f88417f9a50  00007f88417f9a70 
    00007f88417f98f0:  00000000000cec7d  00007f88417f9a20 
    00007f88417f9900:  fffffffe7fffffff  ffffffffffffffff 
    00007f88417f9910:  ffffffffffffffff  ffffffffffffffff 
    00007f88417f9920:  ffffffffffffffff  ffffffffffffffff 
    00007f88417f9930:  ffffffffffffffff  ffffffffffffffff 
    00007f88417f9940:  ffffffffffffffff  ffffffffffffffff 
    00007f88417f9950:  ffffffffffffffff  ffffffffffffffff 
    00007f88417f9960:  ffffffffffffffff  ffffffffffffffff 
    00007f88417f9970:  ffffffffffffffff  ffffffffffffffff 
    
    goroutine 24 [syscall]:
    runtime.cgocall(0x653f10, 0xc42005b898, 0xc42005b8a0)
    	/usr/lib/go/src/runtime/cgocall.go:128 +0x64 fp=0xc42005b868 sp=0xc42005b830 pc=0x405824
    github.com/tensorflow/tensorflow/tensorflow/go._Cfunc_TF_SetAttrTensor(0x7f8838005ed0, 0x7f8838006cb0, 0x7f8838006da0, 0x7f8838008170)
    	_cgo_gotypes.go:1024 +0x45 fp=0xc42005b898 sp=0xc42005b868 pc=0x523695
    github.com/tensorflow/tensorflow/tensorflow/go.setAttr.func18(0x7f8838005ed0, 0x7f8838006cb0, 0x7f8838006da0, 0x7f8838008170)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/graph.go:313 +0xce fp=0xc42005b8d0 sp=0xc42005b898 pc=0x52f98e
    github.com/tensorflow/tensorflow/tensorflow/go.setAttr(0x7f8838005ed0, 0xc42000e0c0, 0x6ef1cc, 0x5, 0x6b3f40, 0xc420104500, 0x0, 0x0)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/graph.go:313 +0x1006 fp=0xc42005baa0 sp=0xc42005b8d0 pc=0x526226
    github.com/tensorflow/tensorflow/tensorflow/go.(*Graph).AddOperation(0xc42000e080, 0x6ef023, 0x5, 0xc42001a808, 0x6, 0x0, 0x0, 0x0, 0xc42005bc98, 0x0, ...)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/graph.go:216 +0x4fb fp=0xc42005bc00 sp=0xc42005baa0 pc=0x52506b
    github.com/tensorflow/tensorflow/tensorflow/go.Const(0xc42000e080, 0xc42001a808, 0x6, 0x67ee40, 0xc420104340, 0xc42001a808, 0x6, 0x7af1f0, 0x7af230)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/util_test.go:38 +0x271 fp=0xc42005be40 sp=0xc42005bc00 pc=0x5201e1
    github.com/tensorflow/tensorflow/tensorflow/go.TestOutputDataTypeAndShape.func1(0xc42011a780)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/operation_test.go:137 +0x111 fp=0xc42005bfa8 sp=0xc42005be40 pc=0x52cff1
    testing.tRunner(0xc42011a780, 0xc4201044c0)
    	/usr/lib/go/src/testing/testing.go:777 +0xd0 fp=0xc42005bfd0 sp=0xc42005bfa8 pc=0x4ce610
    runtime.goexit()
    	/usr/lib/go/src/runtime/asm_amd64.s:2361 +0x1 fp=0xc42005bfd8 sp=0xc42005bfd0 pc=0x45d311
    created by testing.(*T).Run
    	/usr/lib/go/src/testing/testing.go:824 +0x2e0
    
    goroutine 1 [chan receive]:
    testing.(*T).Run(0xc42011a3c0, 0x6f54ea, 0x1a, 0x703348, 0x477f01)
    	/usr/lib/go/src/testing/testing.go:825 +0x301
    testing.runTests.func1(0xc42011a000)
    	/usr/lib/go/src/testing/testing.go:1063 +0x64
    testing.tRunner(0xc42011a000, 0xc42006bdf8)
    	/usr/lib/go/src/testing/testing.go:777 +0xd0
    testing.runTests(0xc420104260, 0xa4c4c0, 0x12, 0x12, 0x413ef9)
    	/usr/lib/go/src/testing/testing.go:1061 +0x2c4
    testing.(*M).Run(0xc420118000, 0x0)
    	/usr/lib/go/src/testing/testing.go:978 +0x171
    main.main()
    	_testmain.go:84 +0x151
    
    goroutine 20 [chan receive]:
    testing.(*T).Run(0xc42011a780, 0xc420018420, 0x13, 0xc4201044c0, 0x2)
    	/usr/lib/go/src/testing/testing.go:825 +0x301
    github.com/tensorflow/tensorflow/tensorflow/go.TestOutputDataTypeAndShape(0xc42011a3c0)
    	/home/pgaleone/projects/go/src/github.com/tensorflow/tensorflow/tensorflow/go/operation_test.go:136 +0x552
    testing.tRunner(0xc42011a3c0, 0x703348)
    	/usr/lib/go/src/testing/testing.go:777 +0xd0
    created by testing.(*T).Run
    	/usr/lib/go/src/testing/testing.go:824 +0x2e0
    
    rax    0x0
    rbx    0x6
    rcx    0x7f88599b1860
    rdx    0x0
    rdi    0x2
    rsi    0x7f88417f9880
    rbp    0x7f88417f9ad0
    rsp    0x7f88417f9880
    r8     0x0
    r9     0x7f88417f9880
    r10    0x8
    r11    0x246
    r12    0x7f88417f9d10
    r13    0x5
    r14    0x7f8838006cb0
    r15    0x7f88417f9d10
    rip    0x7f88599b1860
    rflags 0x246
    cs     0x33
    fs     0x0
    gs     0x0
    exit status 2
    FAIL	github.com/tensorflow/tensorflow/tensorflow/go	0.073s
    
  8. asimshankar commented on Apr 7, 2018

    @asimshankar
    Contributor

    That sounds like the underlying C library is an older version. Are you using the corresponding version of the C library as per Step 2 in https://www.tensorflow.org/install/install_go#installation ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions