lxc / lxcfs

FUSE filesystem for LXC
https://linuxcontainers.org/lxcfs
Other
1.04k stars 248 forks source link

A segfault was found #453

Closed ganker-z closed 11 months ago

ganker-z commented 3 years ago

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

ganker-z commented 3 years ago

image

ganker-z commented 3 years ago

image

stgraber commented 3 years ago

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

brauner commented 3 years ago

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

stgraber commented 3 years ago

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

brauner commented 3 years ago

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

ganker-z commented 3 years ago
rBAoL2C0S_6Ab8CmAAB9ixKE2Pc628

The above pictrue is the ldd output of lxcfs and libfuse

stgraber commented 3 years ago

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

ganker-z commented 3 years ago
rBAoL2C0fXGAFWodAABGJOhNxrk972

ldd output of liblxcfs.so

brauner commented 3 years ago

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?

ganker-z commented 3 years ago

liblxcfs.zip liblxcfs.so binary file

ganker-z commented 3 years ago

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?

brauner commented 3 years ago

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 commented 3 years ago

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

ganker-z commented 3 years ago

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

brauner commented 3 years ago

Right, you built it yourself?

brauner commented 3 years ago

Can you show me:

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

please?

ganker-z commented 3 years ago

Can you show me:

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

please?

rBAoRmC5ggGAQmiFAABErZ-d4sM545
ganker-z commented 3 years ago

Right, you built it yourself?

yes

ganker-z commented 3 years ago

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?

brauner commented 3 years ago

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.

ganker-z commented 3 years ago

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 commented 3 years ago

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

mihalicyn commented 11 months ago

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