Skip to content

Conversation

@bgermann
Copy link

Please consider applying these patches that stem from the Debian package rdiff-backup-fs

bernhardu and others added 5 commits December 16, 2025 11:07
Looks like the dynamic linker uses here the variable "mount" from
rdiff-backup-fs.c that gets later called by fuse library.

Program received signal SIGSEGV, Segmentation fault.
0x80015110 in mount ()
(gdb) bt
#0  0x80015110 in mount ()
rdiff-backup#1  0xb7f8ff03 in fuse_mount_sys (mnt_opts=0x800163a8 "rw,nosuid,nodev", mo=0xbffff398,
    mnt=0x80016288 "/home/benutzer/rdiff-backup-fs-test/mnt") at mount.c:499
rdiff-backup#2  fuse_kern_mount (mountpoint=0x80016288 "/home/benutzer/rdiff-backup-fs-test/mnt", args=0xbffff550) at mount.c:607
rdiff-backup#3  0xb7f8b89c in fuse_mount_compat25 (mountpoint=0x80016288 "/home/benutzer/rdiff-backup-fs-test/mnt", args=0xbffff550) at helper.c:488
rdiff-backup#4  0xb7f8b908 in fuse_mount_common (mountpoint=0x80016288 "/home/benutzer/rdiff-backup-fs-test/mnt", args=args@entry=0xbffff550)
    at helper.c:248
rdiff-backup#5  0xb7f8b9de in fuse_setup_common (argc=2, argv=0xbffff5f4, op=0x80015200 <operations>, op_size=180, mountpoint=0xbffff5b4,
    multithreaded=0xbffff5b8, fd=0x0, user_data=0x0, compat=0) at helper.c:298
rdiff-backup#6  0xb7f8bb5d in fuse_main_common (argc=<optimized out>, argv=<optimized out>, op=<optimized out>, op_size=180, user_data=0x0, compat=0)
    at helper.c:363
rdiff-backup#7  0x8000112f in run (argc=3, argv=0xbffff6d4) at rdiff-backup-fs.c:37
rdiff-backup#8  0x80000f3b in main (argc=3, argv=0xbffff6d4) at rdiff-backup-fs.c:43
(gdb) print mount
$1 = 0x80016020 "/home/benutzer/rdiff-backup-fs-test/mnt"

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858316
This ensures correct order of parameters for ld,
allowing to link with --as-needed option.
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

Successfully merging this pull request may close these issues.

6 participants