Breakpoint 1, __libc_open64 (file=file@entry=0x7ffff734be26 <dot> ".", oflag=oflag@entry=0) at ../sysdeps/unix/sysv/linux/open64.c:37
37 ../sysdeps/unix/sysv/linux/open64.c: No such file or directory.
(gdb) bt
#0 __libc_open64 (file=file@entry=0x7ffff734be26 <dot> ".", oflag=oflag@entry=0) at ../sysdeps/unix/sysv/linux/open64.c:37
#1 0x00007ffff72a7f4c in fts_open (argv=<optimized out>, argv@entry=0x7fffffffd990, options=options@entry=65, compar=compar@entry=0x0) at ../sysdeps/wordsize-64/../../io/fts.c:219
#2 0x00007ffff772fa4c in fs_new (path=path@entry=0x7ffff776877e "/sys/bus/nd/devices") at ../../src/../src/common/fs_posix.c:59
#3 0x00007ffff7731414 in os_auto_flush () at ../../src/../src/common/os_auto_flush_linux.c:187
#4 0x00007ffff7733449 in pmem_has_auto_flush () at pmem.c:218
#5 0x00007ffff77355d5 in pmem_init_funcs (funcs=funcs@entry=0x7ffff776e1a0 <Funcs>) at ../../src/../src/libpmem/x86_64/init.c:467
#6 0x00007ffff7734174 in pmem_init () at pmem.c:786
#7 0x00007ffff7fe0b8a in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffdb58, env=env@entry=0x7fffffffdb68) at dl-init.c:72
#8 0x00007ffff7fe0c91 in call_init (env=0x7fffffffdb68, argv=0x7fffffffdb58, argc=1, l=<optimized out>) at dl-init.c:30
#9 _dl_init (main_map=0x7ffff7ffe190, argc=1, argv=0x7fffffffdb58, env=0x7fffffffdb68) at dl-init.c:119
#10 0x00007ffff7fd013a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#11 0x0000000000000001 in ?? ()
#12 0x00007fffffffdf56 in ?? ()
#13 0x0000000000000000 in ?? ()
Catchpoint 2 (call to syscall openat), __GI___open64_nocancel (file=0x55555654eb30 "/sys/bus/nd/devices", oflag=oflag@entry=591872) at ../sysdeps/unix/sysv/linux/open64_nocancel.c:45
45 ../sysdeps/unix/sysv/linux/open64_nocancel.c: No such file or directory.
(gdb) bt
#0 __GI___open64_nocancel (file=0x55555654eb30 "/sys/bus/nd/devices", oflag=oflag@entry=591872) at ../sysdeps/unix/sysv/linux/open64_nocancel.c:45
#1 0x00007ffff7273ea7 in __opendir (name=<optimized out>) at ../sysdeps/posix/opendir.c:92
#2 0x00007ffff72a70ac in fts_build (sp=sp@entry=0x55555654eae0, type=type@entry=3) at ../sysdeps/wordsize-64/../../io/fts.c:636
#3 0x00007ffff72a82c6 in fts_read (sp=0x55555654eae0) at ../sysdeps/wordsize-64/../../io/fts.c:396
#4 0x00007ffff772faa0 in fs_read (f=f@entry=0x55555654eaa0) at ../../src/../src/common/fs_posix.c:77
#5 0x00007ffff7731430 in os_auto_flush () at ../../src/../src/common/os_auto_flush_linux.c:195
#6 0x00007ffff7733449 in pmem_has_auto_flush () at pmem.c:218
#7 0x00007ffff77355d5 in pmem_init_funcs (funcs=funcs@entry=0x7ffff776e1a0 <Funcs>) at ../../src/../src/libpmem/x86_64/init.c:467
#8 0x00007ffff7734174 in pmem_init () at pmem.c:786
#9 0x00007ffff7fe0b8a in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffdb58, env=env@entry=0x7fffffffdb68) at dl-init.c:72
#10 0x00007ffff7fe0c91 in call_init (env=0x7fffffffdb68, argv=0x7fffffffdb58, argc=1, l=<optimized out>) at dl-init.c:30
#11 _dl_init (main_map=0x7ffff7ffe190, argc=1, argv=0x7fffffffdb58, env=0x7fffffffdb68) at dl-init.c:119
#12 0x00007ffff7fd013a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#13 0x0000000000000001 in ?? ()
#14 0x00007fffffffdf56 in ?? ()
#15 0x0000000000000000 in ?? ()
As assumed libpmem init:
break open if strcmp($rdi,".") == 0
Breakpoint 1, __libc_open64 (file=file@ entry=0x7ffff73 4be26 <dot> ".", oflag=oflag@ entry=0) at ../sysdeps/ unix/sysv/ linux/open64. c:37 unix/sysv/ linux/open64. c: No such file or directory. entry=0x7ffff73 4be26 <dot> ".", oflag=oflag@ entry=0) at ../sysdeps/ unix/sysv/ linux/open64. c:37 0x7fffffffd990, options= options@ entry=65, compar= compar@ entry=0x0) at ../sysdeps/ wordsize- 64/../. ./io/fts. c:219 entry=0x7ffff77 6877e "/sys/bus/ nd/devices" ) at ../../src/ ../src/ common/ fs_posix. c:59 ../src/ common/ os_auto_ flush_linux. c:187 funcs@entry= 0x7ffff776e1a0 <Funcs>) at ../../src/ ../src/ libpmem/ x86_64/ init.c: 467 entry=0x7ffffff fdb58, env=env@ entry=0x7ffffff fdb68) at dl-init.c:72 db68, argv=0x7fffffff db58, argc=1, l=<optimized out>) at dl-init.c:30 0x7ffff7ffe190, argc=1, argv=0x7fffffff db58, env=0x7fffffffdb68) at dl-init.c:119 ld-linux- x86-64. so.2
37 ../sysdeps/
(gdb) bt
#0 __libc_open64 (file=file@
#1 0x00007ffff72a7f4c in fts_open (argv=<optimized out>, argv@entry=
#2 0x00007ffff772fa4c in fs_new (path=path@
#3 0x00007ffff7731414 in os_auto_flush () at ../../src/
#4 0x00007ffff7733449 in pmem_has_auto_flush () at pmem.c:218
#5 0x00007ffff77355d5 in pmem_init_funcs (funcs=
#6 0x00007ffff7734174 in pmem_init () at pmem.c:786
#7 0x00007ffff7fe0b8a in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@
#8 0x00007ffff7fe0c91 in call_init (env=0x7fffffff
#9 _dl_init (main_map=
#10 0x00007ffff7fd013a in _dl_start_user () from /lib64/
#11 0x0000000000000001 in ?? ()
#12 0x00007fffffffdf56 in ?? ()
#13 0x0000000000000000 in ?? ()
Catchpoint 2 (call to syscall openat), __GI___ open64_ nocancel (file=0x5555565 4eb30 "/sys/bus/ nd/devices" , oflag=oflag@ entry=591872) at ../sysdeps/ unix/sysv/ linux/open64_ nocancel. c:45 unix/sysv/ linux/open64_ nocancel. c: No such file or directory. open64_ nocancel (file=0x5555565 4eb30 "/sys/bus/ nd/devices" , oflag=oflag@ entry=591872) at ../sysdeps/ unix/sysv/ linux/open64_ nocancel. c:45 posix/opendir. c:92 entry=0x5555565 4eae0, type=type@entry=3) at ../sysdeps/ wordsize- 64/../. ./io/fts. c:636 wordsize- 64/../. ./io/fts. c:396 0x55555654eaa0) at ../../src/ ../src/ common/ fs_posix. c:77 ../src/ common/ os_auto_ flush_linux. c:195 funcs@entry= 0x7ffff776e1a0 <Funcs>) at ../../src/ ../src/ libpmem/ x86_64/ init.c: 467 entry=0x7ffffff fdb58, env=env@ entry=0x7ffffff fdb68) at dl-init.c:72 db68, argv=0x7fffffff db58, argc=1, l=<optimized out>) at dl-init.c:30 0x7ffff7ffe190, argc=1, argv=0x7fffffff db58, env=0x7fffffffdb68) at dl-init.c:119 ld-linux- x86-64. so.2
45 ../sysdeps/
(gdb) bt
#0 __GI___
#1 0x00007ffff7273ea7 in __opendir (name=<optimized out>) at ../sysdeps/
#2 0x00007ffff72a70ac in fts_build (sp=sp@
#3 0x00007ffff72a82c6 in fts_read (sp=0x55555654eae0) at ../sysdeps/
#4 0x00007ffff772faa0 in fs_read (f=f@entry=
#5 0x00007ffff7731430 in os_auto_flush () at ../../src/
#6 0x00007ffff7733449 in pmem_has_auto_flush () at pmem.c:218
#7 0x00007ffff77355d5 in pmem_init_funcs (funcs=
#8 0x00007ffff7734174 in pmem_init () at pmem.c:786
#9 0x00007ffff7fe0b8a in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@
#10 0x00007ffff7fe0c91 in call_init (env=0x7fffffff
#11 _dl_init (main_map=
#12 0x00007ffff7fd013a in _dl_start_user () from /lib64/
#13 0x0000000000000001 in ?? ()
#14 0x00007fffffffdf56 in ?? ()
#15 0x0000000000000000 in ?? ()