Guest User

Untitled

a guest
Oct 26th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. $ gdb --args python -c 'import torch; x = torch.rand(10).cuda()'
  2. GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
  3. Copyright (C) 2016 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law. Type "show copying"
  7. and "show warranty" for details.
  8. This GDB was configured as "x86_64-linux-gnu".
  9. Type "show configuration" for configuration details.
  10. For bug reporting instructions, please see:
  11. <http://www.gnu.org/software/gdb/bugs/>.
  12. Find the GDB manual and other documentation resources online at:
  13. <http://www.gnu.org/software/gdb/documentation/>.
  14. For help, type "help".
  15. Type "apropos word" to search for commands related to "word"...
  16. Reading symbols from python...done.
  17. (gdb) run
  18. Starting program: /home/randomuser/anaconda3/envs/pytorch/bin/python -c import\ torch\;\ x\ =\ torch.rand\(10\).cuda\(\)
  19. [Thread debugging using libthread_db enabled]
  20. Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  21. [New Thread 0x7fff94ff7700 (LWP 23255)]
  22.  
  23. Thread 1 "python" received signal SIGSEGV, Segmentation fault.
  24. 0x00007fffd0673c68 in THCMagma_init (state=<error reading variable: Cannot access memory at address 0xfffffffffffffff8>)
  25. at /workspace/tools/machine-learning/pytorch/aten/src/THC/THCTensorMathMagma.cu:26
  26. 26 }
  27. (gdb) bt
  28. #0 0x00007fffd0673c68 in THCMagma_init (state=<error reading variable: Cannot access memory at address 0xfffffffffffffff8>)
  29. at /workspace/tools/machine-learning/pytorch/aten/src/THC/THCTensorMathMagma.cu:26
  30. Backtrace stopped: Cannot access memory at address 0x8
  31. (gdb) disas
  32. Dump of assembler code for function THCMagma_init(THCState*):
  33. 0x00007fffd0673c56 <+0>: push %rbp
  34. 0x00007fffd0673c57 <+1>: mov %rsp,%rbp
  35. 0x00007fffd0673c5a <+4>: sub $0x10,%rsp
  36. 0x00007fffd0673c5e <+8>: mov %rdi,-0x8(%rbp)
  37. 0x00007fffd0673c62 <+12>: callq 0x7fffcfefdcb0 <magma_init@plt>
  38. 0x00007fffd0673c67 <+17>: nop
  39. => 0x00007fffd0673c68 <+18>: leaveq
  40. 0x00007fffd0673c69 <+19>: retq
  41. End of assembler dump.
  42. (gdb) info registers
  43. rax 0x0 0
  44. rbx 0x7ffff47a53a8 140737295045544
  45. rcx 0x7ffff7bb4b20 140737349634848
  46. rdx 0x7fffe0d73140 140736965587264
  47. rsi 0x0 0
  48. rdi 0x7fffe0d73140 140736965587264
  49. rbp 0x0 0x0
  50. rsp 0x7fffffffd000 0x7fffffffd000
  51. r8 0x0 0
  52. r9 0x7ffff7dd2201 140737351852545
  53. r10 0x7fffffffcd30 140737488342320
  54. r11 0x10 16
  55. r12 0x7ffff47b62c8 140737295114952
  56. r13 0x0 0
  57. r14 0x7fffe5a4413a 140737046135098
  58. r15 0x5555569282a0 93825013023392
  59. rip 0x7fffd0673c68 0x7fffd0673c68 <THCMagma_init(THCState*)+18>
  60. eflags 0x10246 [ PF ZF IF RF ]
  61. cs 0x33 51
  62. ss 0x2b 43
  63. ds 0x0 0
  64. es 0x0 0
  65. fs 0x0 0
  66. gs 0x0 0
Add Comment
Please, Sign In to add comment