lxcfs icon indicating copy to clipboard operation
lxcfs copied to clipboard

A segfault was found

Open ganker-z opened this issue 5 years ago • 23 comments

A segfault was found when i run lxcfs 4.0.7 with libfuse2.9.9, the backtrace is as follows

ganker-z avatar Apr 02 '21 08:04 ganker-z

image

ganker-z avatar Apr 02 '21 08:04 ganker-z

image

ganker-z avatar Apr 02 '21 08:04 ganker-z

@brauner what would we need to track this one down?

stgraber avatar May 27 '21 18:05 stgraber

I have one wild guess but I need the output of ldd on the lxcfs binary and the liblxcfs.so libtool module, please.

brauner avatar May 28 '21 07:05 brauner

@ganker-z if this is still an issue for you, can you provide that information?

stgraber avatar May 28 '21 13:05 stgraber

I would expect crashes like that when e.g. lxcfs is linked against fuse 2 and liblxcfs linked against fuse `3.

brauner avatar May 28 '21 13:05 brauner

rBAoL2C0S_6Ab8CmAAB9ixKE2Pc628 The above pictrue is the ldd output of lxcfs and libfuse

ganker-z avatar May 31 '21 02:05 ganker-z

The second ldd should be against liblxcfs.so not libfuse.so

stgraber avatar May 31 '21 04:05 stgraber

rBAoL2C0fXGAFWodAABGJOhNxrk972 ldd output of liblxcfs.so

ganker-z avatar May 31 '21 06:05 ganker-z

Ah, damn. I forgot that we don't link liblxcfs.so against fuse. @ganker-z, is it possible for you to get me the liblxcfs.so binary?

brauner avatar May 31 '21 14:05 brauner

liblxcfs.zip liblxcfs.so binary file

ganker-z avatar Jun 01 '21 01:06 ganker-z

Ah, damn. I forgot that we don't link liblxcfs.so against fuse. @ganker-z, is it possible for you to get me the liblxcfs.so binary?

Is there any progress?

ganker-z avatar Jun 03 '21 07:06 ganker-z

Do you have any access to the build flags used to build this version of liblxcfs? I need to find out what fuse version it was built with.

brauner avatar Jun 03 '21 11:06 brauner

This could also be a fuse bug tbh since we don't make use of double-linked lists in lxcfs.

brauner avatar Jun 03 '21 11:06 brauner

Do you have any access to the build flags used to build this version of liblxcfs? I need to find out what fuse version it was built with. I built it according to the method in the readme yum install fuse fuse-lib fuse-devel git clone git://github.com/lxc/lxcfs cd lxcfs ./bootstrap.sh ./configure make make install

ganker-z avatar Jun 03 '21 11:06 ganker-z

Right, you built it yourself?

brauner avatar Jun 03 '21 13:06 brauner

Can you show me:

pkg-config --libs fuse
pkg-config --libs fuse3

please?

brauner avatar Jun 03 '21 13:06 brauner

Can you show me:

pkg-config --libs fuse
pkg-config --libs fuse3

please?

rBAoRmC5ggGAQmiFAABErZ-d4sM545

ganker-z avatar Jun 04 '21 01:06 ganker-z

Right, you built it yourself?

yes

ganker-z avatar Jun 04 '21 01:06 ganker-z

This could also be a fuse bug tbh since we don't make use of double-linked lists in lxcfs.

How to understand this sentence, is it double-linked libfuse by lxcfs?

ganker-z avatar Jun 04 '21 02:06 ganker-z

This could also be a fuse bug tbh since we don't make use of double-linked lists in lxcfs.

How to understand this sentence, is it double-linked libfuse by lxcfs?

No. The first picture you pasted indicates that a double-linked list data structure got corrupted. We don't use double-linked lists as a data structure in lxcfs but fuse does. So there is a chance that you version of fuse has a bug.

brauner avatar Jun 04 '21 06:06 brauner

This is the stack information at the time of the problem, exported through gdb There are two kinds of stack information, one is abort and the other is segmentation image image

ganker-z avatar Jun 30 '21 08:06 ganker-z

This could also be a fuse bug tbh since we don't make use of double-linked lists in lxcfs.

How to understand this sentence, is it double-linked libfuse by lxcfs?

No. The first picture you pasted indicates that a double-linked list data structure got corrupted. We don't use double-linked lists as a data structure in lxcfs but fuse does. So there is a chance that you version of fuse has a bug.

Please take a look at the above comment,thanks

ganker-z avatar Jun 30 '21 08:06 ganker-z

No movement with this since 2021. I think we can close it until next reproducer.

Most likely it was libfuse bug, not the LXCFS one.

cc @stgraber

mihalicyn avatar Sep 29 '23 15:09 mihalicyn