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

Segmentation fault #84

Open
azazar opened this issue Dec 3, 2016 · 0 comments
Open

Segmentation fault #84

azazar opened this issue Dec 3, 2016 · 0 comments

Comments

@azazar
Copy link

azazar commented Dec 3, 2016

$ ./zcash-miner -G -printtoconsole




















Zcash Miner version v1.0.0-beta2-3c2bc92 (2016-11-12 10:27:26 +0100)
Running the test miner
Segmentation fault
$ clinfo 
Number of platforms:                             1
  Platform Profile:                              FULL_PROFILE
  Platform Version:                              OpenCL 1.1 MESA 11.2.0
  Platform Name:                                 Clover
  Platform Vendor:                               Mesa
  Platform Extensions:                           cl_khr_icd


  Platform Name:                                 Clover
Number of devices:                               1
  Device Type:                                   CL_DEVICE_TYPE_GPU
  Vendor ID:                                     1002h
  Max compute units:                             20
  Max work items dimensions:                     3
    Max work items[0]:                           256
    Max work items[1]:                           256
    Max work items[2]:                           256
  Max work group size:                           256
  Preferred vector width char:                   16
  Preferred vector width short:                  8
  Preferred vector width int:                    4
  Preferred vector width long:                   2
  Preferred vector width float:                  4
  Preferred vector width double:                 2
  Native vector width char:                      16
  Native vector width short:                     8
  Native vector width int:                       4
  Native vector width long:                      2
  Native vector width float:                     4
  Native vector width double:                    2
  Max clock frequency:                           1000Mhz
  Address bits:                                  32
  Max memory allocation:                         268435456
  Image support:                                 No
  Max size of kernel argument:                   1024
  Alignment (bits) of base address:              1024
  Minimum alignment (bytes) for any datatype:    128
  Single precision floating point capability
    Denorms:                                     No
    Quiet NaNs:                                  Yes
    Round to nearest even:                       Yes
    Round to zero:                               No
    Round to +ve and infinity:                   No
    IEEE754-2008 fused multiply-add:             No
  Cache type:                                    None
  Cache line size:                               0
  Cache size:                                    0
  Global memory size:                            1073741824
  Constant buffer size:                          268435456
  Max number of constant args:                   16
  Local memory type:                             Scratchpad
  Local memory size:                             32768
  Kernel Preferred work group size multiple:     64
  Error correction support:                      0
  Unified memory for Host and Device:            1
  Profiling timer resolution:                    0
  Device endianess:                              Little
  Available:                                     Yes
  Compiler available:                            Yes
  Execution capabilities:                                
    Execute OpenCL kernels:                      Yes
    Execute native function:                     No
  Queue on Host properties:                              
    Out-of-Order:                                No
    Profiling :                                  Yes
  Platform ID:                                   0x7f2e0d72aac0
  Name:                                          AMD PITCAIRN (DRM 2.43.0, LLVM 3.8.0)
  Vendor:                                        AMD
  Device OpenCL C version:                       OpenCL C 1.1 
  Driver version:                                11.2.0
  Profile:                                       FULL_PROFILE
  Version:                                       OpenCL 1.1 MESA 11.2.0
  Extensions:                                    cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_fp64
[New LWP 20999]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./zcash-miner -G -printtoconsole'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000002260 in ?? ()
(gdb) whe
#0  0x0000000000002260 in ?? ()
#1  0x00007f66935914ea in call_init (l=<optimized out>, argc=argc@entry=3, 
    argv=argv@entry=0x7ffe5adbc2c8, env=env@entry=0x7ffe5adbc2e8) at dl-init.c:72
#2  0x00007f66935915fb in call_init (env=0x7ffe5adbc2e8, argv=0x7ffe5adbc2c8, argc=3, 
    l=<optimized out>) at dl-init.c:30
#3  _dl_init (main_map=main_map@entry=0x561203dc2920, argc=3, argv=0x7ffe5adbc2c8, 
    env=0x7ffe5adbc2e8) at dl-init.c:120
#4  0x00007f6693596712 in dl_open_worker (a=a@entry=0x7ffe5adba2d0) at dl-open.c:575
#5  0x00007f6693591394 in _dl_catch_error (objname=objname@entry=0x7ffe5adba2c0, 
    errstring=errstring@entry=0x7ffe5adba2c8, mallocedp=mallocedp@entry=0x7ffe5adba2bf, 
    operate=operate@entry=0x7f6693596300 <dl_open_worker>, args=args@entry=0x7ffe5adba2d0)
    at dl-error.c:187
#6  0x00007f6693595bd9 in _dl_open (file=0x7ffe5adba530 "libudev.so.1", mode=-2147483647, 
    caller_dlopen=0x7f6690058a83, nsid=-2, argc=<optimized out>, argv=<optimized out>, 
    env=0x7ffe5adbc2e8) at dl-open.c:660
#7  0x00007f66920b6f09 in dlopen_doit (a=a@entry=0x7ffe5adba500) at dlopen.c:66
#8  0x00007f6693591394 in _dl_catch_error (objname=0x561203d97490, errstring=0x561203d97498, 
    mallocedp=0x561203d97488, operate=0x7f66920b6eb0 <dlopen_doit>, args=0x7ffe5adba500)
    at dl-error.c:187
#9  0x00007f66920b7571 in _dlerror_run (operate=operate@entry=0x7f66920b6eb0 <dlopen_doit>, 
    args=args@entry=0x7ffe5adba500) at dlerror.c:163
#10 0x00007f66920b6fa1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#11 0x00007f6690058a83 in ?? () from /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1
#12 0x00007f6690059295 in ?? () from /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1
#13 0x00007f6690058799 in ?? () from /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1
#14 0x00007f66900588de in ?? () from /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1
#15 0x00007f669005802f in ?? () from /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1
#16 0x00007f669008ca18 in ?? () from /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1
#17 0x00007f6690057c76 in ?? () from /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1
#18 0x00007f66935914ea in call_init (l=<optimized out>, argc=argc@entry=3, 
    argv=argv@entry=0x7ffe5adbc2c8, env=env@entry=0x7ffe5adbc2e8) at dl-init.c:72
#19 0x00007f66935915fb in call_init (env=0x7ffe5adbc2e8, argv=0x7ffe5adbc2c8, argc=3, 
    l=<optimized out>) at dl-init.c:30
#20 _dl_init (main_map=main_map@entry=0x561203da9920, argc=3, argv=0x7ffe5adbc2c8, 
    env=0x7ffe5adbc2e8) at dl-init.c:120
#21 0x00007f6693596712 in dl_open_worker (a=a@entry=0x7ffe5adbab10) at dl-open.c:575
#22 0x00007f6693591394 in _dl_catch_error (objname=objname@entry=0x7ffe5adbab00, 
    errstring=errstring@entry=0x7ffe5adbab08, mallocedp=mallocedp@entry=0x7ffe5adbaaff, 
    operate=operate@entry=0x7f6693596300 <dl_open_worker>, args=args@entry=0x7ffe5adbab10)
    at dl-error.c:187
#23 0x00007f6693595bd9 in _dl_open (file=0x561203d974b0 "libMesaOpenCL.so.1", mode=-2147483647, 
    caller_dlopen=0x7f669337a2fb, nsid=-2, argc=<optimized out>, argv=<optimized out>, 
    env=0x7ffe5adbc2e8) at dl-open.c:660
#24 0x00007f66920b6f09 in dlopen_doit (a=a@entry=0x7ffe5adbad40) at dlopen.c:66
#25 0x00007f6693591394 in _dl_catch_error (objname=0x561203d97490, errstring=0x561203d97498, 
    mallocedp=0x561203d97488, operate=0x7f66920b6eb0 <dlopen_doit>, args=0x7ffe5adbad40)
    at dl-error.c:187
#26 0x00007f66920b7571 in _dlerror_run (operate=operate@entry=0x7f66920b6eb0 <dlopen_doit>, 
    args=args@entry=0x7ffe5adbad40) at dlerror.c:163
#27 0x00007f66920b6fa1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#28 0x00007f669337a2fb in ?? () from /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
#29 0x00007f669337a459 in ?? () from /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
#30 0x00007f669337a9c2 in ?? () from /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
#31 0x00007f669337b233 in clGetPlatformIDs () from /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
---Type <return> to continue, or q <return> to quit---
#32 0x0000561202274925 in cl::Platform::get (platforms=platforms@entry=0x7ffe5adbaf90)
    at libzogminer/cl.hpp:1406
#33 0x000056120226f109 in cl_zogminer::getPlatforms () at libzogminer/cl_zogminer.cpp:90
#34 0x000056120226f453 in cl_zogminer::searchForAllDevices(unsigned int, std::function<bool (cl::Device const&)>) (_platformId=_platformId@entry=0, _callback=...) at libzogminer/cl_zogminer.cpp:208
#35 0x000056120226f5eb in cl_zogminer::configureGPU (_platformId=_platformId@entry=0, 
    _localWorkSize=_localWorkSize@entry=32, _globalWorkSize=_globalWorkSize@entry=1048576)
    at libzogminer/cl_zogminer.cpp:191
#36 0x000056120226d4e2 in GPUSolver::GPUSolver (this=0x561203d9ad00, platformId=0, selGPU=0)
    at libzogminer/gpusolver.cpp:75
#37 0x0000561202079d3a in test_mine (n=200, k=9, d=<optimized out>, conf=...)
    at standaloneminer.cpp:111
#38 0x000056120207db60 in main (argc=<optimized out>, argv=<optimized out>)
    at standaloneminer.cpp:321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant