Package: incron
Version: incron
Severity: normal

Dear Maintainer,

I run a server with NFS-exports. And i want to run some actions when
files and dirs are changing in these exports. For better explanation,
its the filespace for a nextcloud i want to export also as nfs, because
it's much faster on the clients than the webdav-export.
But handling files and dirs in the filesystem directly causes nextcloud
not to recognize this changes. So i want to run a files-scan only on
changed files and directories periodically for nextcloud.

When i create a new directory, incron crashes on every
IN_CREATE,IN_ISDIR event.

```
Dez 07 08:45:33 nas incrond[2309706]: PATH (/exports/nextcloud-data/username/files/temp) FILE (subdir10) EVENT (IN_CREATE,IN_ISDIR) Dez 07 08:45:35 nas systemd[1]: incron.service: Main process exited, code=killed, status=11/SEGV
Dez 07 08:45:35 nas systemd[1]: incron.service: Failed with result 'signal'.
```

When i move a directory directly on the nfs-server, i works.
```
Dez 07 08:47:22 nas incrond[2320081]: PATH (/exports/nextcloud-data/username/files/temp) FILE (subdir12) EVENT (IN_MOVED_FROM,IN_ISDIR) Dez 07 08:47:22 nas incrond[2320081]: (root) CMD ( /usr/local/bin/nc-incron-filehandle IN_MOVED_FROM,IN_ISDIR "/exports/nextcloud-data/username/files/temp/subdir12") Dez 07 08:47:22 nas incrond[2320081]: PATH (/exports/nextcloud-data/username/files/temp/subdir11) FILE (subdir12) EVENT (IN_MOVED_TO,IN_ISDIR) Dez 07 08:47:22 nas incrond[2320081]: (root) CMD ( /usr/local/bin/nc-incron-filehandle IN_MOVED_TO,IN_ISDIR "/exports/nextcloud-data/username/files/temp/subdir11/subdir12")
```

But when i move the dir via nfs-client, incron crashes

```
Dez 07 08:48:40 nas incrond[2320081]: PATH (/exports/nextcloud-data/username/files/temp) FILE (subdir11) EVENT (IN_MOVED_FROM,IN_ISDIR) Dez 07 08:48:40 nas incrond[2320081]: (root) CMD ( /usr/local/bin/nc-incron-filehandle IN_MOVED_FROM,IN_ISDIR "/exports/nextcloud-data/username/files/temp/subdir11") Dez 07 08:48:40 nas incrond[2320081]: PATH (/exports/nextcloud-data/username/files/temp/subdir10) FILE (subdir11) EVENT (IN_MOVED_TO,IN_ISDIR) Dez 07 08:48:41 nas systemd[1]: incron.service: Main process exited, code=killed, status=11/SEGV
Dez 07 08:48:41 nas systemd[1]: incron.service: Failed with result 'signal'.
```

From dmesg when incron crashes:

```

[1228748.744632] incrond[1994543]: segfault at 5918e7a57000 ip 000073dbcdec160a sp 00007fff4f3c7838 error 4 in libc.so.6[73dbcde45000+155000] likely on CPU 1 (core 1, socket 0) [1228748.744666] Code: d9 66 0f d7 c3 48 83 c7 40 85 c0 0f 85 2f 01 00 00 48 89 f9 48 83 e7 c0 83 e1 3f 48 01 ca 66 90 48 83 ea 40 0f 86 86 00 00 00 <66> 0f 6f 07 66 0f 6f 57 10 66 0f 6f 5f 20 66 0f 6f 67 30 66 0f 74 [1228924.757155] incrond[1994841]: segfault at 4d ip 00007f937aac14a4 sp 00007ffc1e2ec918 error 4 in libc.so.6[7f937aa45000+155000] likely on CPU 2 (core 2, socket 0) [1228924.757212] Code: 5d 41 5c 41 5d c3 66 0f 6e ce 89 f9 66 0f 60 c9 48 85 d2 0f 84 0d 03 00 00 66 0f 60 c9 83 e1 3f 66 0f 70 c9 00 83 f9 30 77 3c <f3> 0f 6f 07 66 0f 74 c1 66 0f d7 c0 85 c0 0f 85 a8 02 00 00 48 83 [1229202.557510] traps: incrond[1996192] general protection fault ip:7e99e4cc14a4 sp:7ffe7c454d48 error:0 in libc.so.6[7e99e4c45000+155000] [1229712.176636] incrond[1998227]: segfault at 5cf9e8936000 ip 0000714b478c160a sp 00007ffcef21ce98 error 4 in libc.so.6[714b47845000+155000] likely on CPU 3 (core 3, socket 0) [1229712.176671] Code: d9 66 0f d7 c3 48 83 c7 40 85 c0 0f 85 2f 01 00 00 48 89 f9 48 83 e7 c0 83 e1 3f 48 01 ca 66 90 48 83 ea 40 0f 86 86 00 00 00 <66> 0f 6f 07 66 0f 6f 57 10 66 0f 6f 5f 20 66 0f 6f 67 30 66 0f 74 [1230822.107785] incrond[2002094]: segfault at 51 ip 00007e1bbdcc14a4 sp 00007ffdbab94b58 error 4 in libc.so.6[7e1bbdc45000+155000] likely on CPU 0 (core 0, socket 0) [1230822.107832] Code: 5d 41 5c 41 5d c3 66 0f 6e ce 89 f9 66 0f 60 c9 48 85 d2 0f 84 0d 03 00 00 66 0f 60 c9 83 e1 3f 66 0f 70 c9 00 83 f9 30 77 3c <f3> 0f 6f 07 66 0f 74 c1 66 0f d7 c0 85 c0 0f 85 a8 02 00 00 48 83 [1230897.133791] traps: incrond[2010468] general protection fault ip:7fcc6fec14a4 sp:7fff7299f518 error:0 in libc.so.6[7fcc6fe45000+155000] [1230924.816670] incrond[2011036]: segfault at 61e77844d000 ip 000073e0948c160a sp 00007ffd1be19198 error 4 in libc.so.6[73e094845000+155000] likely on CPU 0 (core 0, socket 0) [1230924.816706] Code: d9 66 0f d7 c3 48 83 c7 40 85 c0 0f 85 2f 01 00 00 48 89 f9 48 83 e7 c0 83 e1 3f 48 01 ca 66 90 48 83 ea 40 0f 86 86 00 00 00 <66> 0f 6f 07 66 0f 6f 57 10 66 0f 6f 5f 20 66 0f 6f 67 30 66 0f 74 [1231111.008226] incrond[2011260]: segfault at 0 ip 00007707632c14a4 sp 00007ffd8ba638a8 error 4 in libc.so.6[770763245000+155000] likely on CPU 3 (core 3, socket 0) [1231111.008268] Code: 5d 41 5c 41 5d c3 66 0f 6e ce 89 f9 66 0f 60 c9 48 85 d2 0f 84 0d 03 00 00 66 0f 60 c9 83 e1 3f 66 0f 70 c9 00 83 f9 30 77 3c <f3> 0f 6f 07 66 0f 74 c1 66 0f d7 c0 85 c0 0f 85 a8 02 00 00 48 83 [1231117.259076] traps: incrond[2012636] general protection fault ip:708a122a14a4 sp:7ffdb8977f08 error:0 in libc.so.6[708a12225000+155000] [1231184.991609] incrond[2012682]: segfault at 40 ip 000072b5ba2c14a4 sp 00007fffbdefa8e8 error 4 in libc.so.6[72b5ba245000+155000] likely on CPU 2 (core 2, socket 0) [1231184.991657] Code: 5d 41 5c 41 5d c3 66 0f 6e ce 89 f9 66 0f 60 c9 48 85 d2 0f 84 0d 03 00 00 66 0f 60 c9 83 e1 3f 66 0f 70 c9 00 83 f9 30 77 3c <f3> 0f 6f 07 66 0f 74 c1 66 0f d7 c0 85 c0 0f 85 a8 02 00 00 48 83 [1231756.646420] traps: incrond[2013207] general protection fault ip:7fb8456c14a4 sp:7ffea21dafc8 error:0 in libc.so.6[7fb845645000+155000] [1231779.011900] incrond[2017428]: segfault at 40 ip 000070d1ca6c14a4 sp 00007ffc65ddebc8 error 4 in libc.so.6[70d1ca645000+155000] likely on CPU 3 (core 3, socket 0) [1231779.011947] Code: 5d 41 5c 41 5d c3 66 0f 6e ce 89 f9 66 0f 60 c9 48 85 d2 0f 84 0d 03 00 00 66 0f 60 c9 83 e1 3f 66 0f 70 c9 00 83 f9 30 77 3c <f3> 0f 6f 07 66 0f 74 c1 66 0f d7 c0 85 c0 0f 85 a8 02 00 00 48 83 [1231873.679569] traps: incrond[2017647] general protection fault ip:7db1376c14a4 sp:7ffd0e7043c8 error:0 in libc.so.6[7db137645000+155000] [1231920.040560] incrond[2018320]: segfault at 40 ip 00007924134c14a4 sp 00007ffee7aae798 error 4 in libc.so.6[792413445000+155000] likely on CPU 3 (core 3, socket 0) [1231920.040596] Code: 5d 41 5c 41 5d c3 66 0f 6e ce 89 f9 66 0f 60 c9 48 85 d2 0f 84 0d 03 00 00 66 0f 60 c9 83 e1 3f 66 0f 70 c9 00 83 f9 30 77 3c <f3> 0f 6f 07 66 0f 74 c1 66 0f d7 c0 85 c0 0f 85 a8 02 00 00 48 83

```

The script nc-incron-filehandle only writes the filename to a logfile.

I run this on a proxmox-server

Thank you.

Jakob

-- System Information:
Debian Release: 12.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.8.12-4-pve (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages incron depends on:
ii  adduser              3.134
ii  init-system-helpers  1.65.2
ii  libc6                2.36-9+deb12u9
ii  libgcc-s1            12.2.0-14
ii  libstdc++6           12.2.0-14

incron recommends no packages.

incron suggests no packages.

-- Configuration Files:
/etc/incron.allow changed:
root


-- no debconf information

Reply via email to