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