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

[1] 2129 illegal hardware instruction (core dumped) th ./waifu2x.lua #60

Closed
Saren-Arterius opened this issue Nov 18, 2015 · 5 comments
Closed

Comments

@Saren-Arterius
Copy link

Currently I am using Arch Linux.
My GPU: GTX 660 Ti

Relevant packages:

  • linux-ck 4.3-1
  • linux-ck-headers 4.3-1
  • cuda 7.5.18-1
  • lib32-nvidia-libgl 355.11-1
  • lib32-nvidia-utils 355.11-1
  • nvidia-ck 355.11-5
  • nvidia-libgl 355.11-1
  • nvidia-utils 355.11-1
  • opencl-nvidia 355.11-1
  • openblas 0.2.15-1

I can confirm that I have followed all the steps installing luarocks packages, including Torch.

However, libsnappy-dev is not present but snappy 1.1.3-1 presents, which should be the same thing. I tried to downgrade snappy to 1.1.0-2 which is the oldest possible version, but there is no difference.

Any ideas?

@Saren-Arterius
Copy link
Author

th ./web.lua also shows the same core dump message as soon as an image is uploaded.

@Saren-Arterius
Copy link
Author

coredumpctl gdb 5259
           PID: 5259 (luajit)
           UID: 1000 (saren)
           GID: 100 (users)
        Signal: 4 (ILL)
     Timestamp: 三 2015-11-18 13:10:46 HKT (1min 33s ago)
  Command Line: /home/saren/torch/install/bin/luajit -e package.path="/home/saren/.luarocks/share/lua/5.1/?.lua;/home/saren/.luarocks/share/lua/5.1/?/init.lua;/home/saren/torch/install/share/lua/5.1/?.lua;/home/saren/torch/install/share/lua/5.1/?/init.lua;"..package.path; package.cpath="/home/saren/.luarocks/lib/lua/5.1/?.so;/home/saren/torch/install/lib/lua/5.1/?.so;"..package.cpath -e local k,l,_=pcall(require,"luarocks.loader") _=k and l.add_context("trepl","scm-1") /home/saren/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th ./waifu2x.lua
    Executable: /home/saren/torch/install/bin/luajit
 Control Group: /user.slice/user-1000.slice/session-c1.scope
          Unit: session-c1.scope
         Slice: user-1000.slice
       Session: c1
     Owner UID: 1000 (saren)
       Boot ID: e6ea1988e12c45bf9780a45b2093541e
    Machine ID: acce3a42ddb543ee8a905e2102debcc2
      Hostname: Saren-PC-Arch
      Coredump: /var/lib/systemd/coredump/core.luajit.1000.e6ea1988e12c45bf9780a45b2093541e.5259.1447823446000000.lz4
       Message: Process 5259 (luajit) of user 1000 dumped core.

GNU gdb (GDB) 7.10
Copyright (C) 2015 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-unknown-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 /home/saren/torch/install/bin/luajit...(no debugging symbols found)...done.
[New LWP 5259]
[New LWP 5284]
[New LWP 5271]
[New LWP 5270]

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/home/saren/torch/install/bin/luajit -e package.path="/home/saren/.luarocks/sha'.
Program terminated with signal SIGILL, Illegal instruction.
#0  0x00007f36443ae722 in ?? () from /usr/lib/libblas.so.3
[Current thread is 1 (Thread 0x7f3646665740 (LWP 5259))]
(gdb) 

@Saren-Arterius
Copy link
Author

@Saren-Arterius
Copy link
Author

I found that Torch test failed, probably not waifu2x's issue.

% LANG=en_US.UTF8 ./test.sh                                                                                                                                      :(
Using Lua at:
/home/saren/torch/install/bin/luajit
paths loaded succesfully
torch loaded succesfully
Torch 7.0  Copyright (C) 2001-2011 Idiap, NEC Labs, NYU
env loaded succesfully  
trepl loaded succesfully    
dok loaded succesfully
image loaded succesfully
cwrap loaded succesfully
gnuplot loaded succesfully
optim loaded succesfully
sys loaded succesfully
xluajit loaded succesfully
argcheck loaded succesfully
graph loaded succesfully
nn loaded succesfully
nngraph loaded succesfully
nnx loaded succesfully
threads loaded succesfully
Running 139 tests   
_|_________________________________________________________________________________________________________________________________________  ==> RNGState./test.sh: line 33:  2174 Illegal instruction     (core dumped) th -ltorch -e "torch.test()"

@Saren-Arterius
Copy link
Author

Reinstalled torch and its dependencies, test passed, and th waifu2x.lua works now.

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