Segmentation Fault line 78 -p /dir -n name -u user

results in:

Starting seaf-import, please wait …
./ line 78: 15541 Segmentation fault LD_LIBRARY_PATH=$SEAFILE_LD_LIBRARY_PATH ${seaf_import} -c “${default_conf_dir}” -d “${seafile_data_dir}” ${seaf_import_opts}
run done

I had the exact same problem. And I have no idea what causes it.

Which version of server do you use? What OS do you use? 64 bits or 32 bits? We can provide you with a debug version and you send back us the stack trace.

I use the latest Pro version of the server, 64 bit. Version 6.0.5.

Hi @Sander

You can find the seaf-import program with debug symbols here.

To use it:

  1. Replace seafile-server-latest/seafile/bin/seaf-import with this binary
  2. Open a terminal, run ‘ulimit -c unlimited’
  3. run the script again to reproduce the problem
  4. After crash, you should have a core file in the current directory.
  5. Use gdb to get the stack trace. ‘gdb seafile/bin/seaf-import core’

I’m sorry it took a while to respond. Do you have the 6.0.8 version of seaf-import as well? That’s the latest Pro version I’m running on Ubuntu 16.04 now.

The file you have me gives this error btw: /home/sander/seafile-pro-server-6.0.8/seafile/bin/seaf-import: error while loading shared libraries: cannot open shared object file: No such file or directory

@sander Do you run the binary directly? Or run it with the script? The script export LD_LIBRARY_PATH env variable so that it can find the libraries. IIRC, the seaf-import binary I sent to you is from 6.0.8 or 6.0.7. It should work in your system.

BTW, which Pro package do you use? The one with or without Ubuntu in the name?

We’ve reproduced the problem and fixed it. It will be included in Pro 6.0.9.