A gfs2 filesystem throws an assertion: warning: assertion "gl->gl_object == NULL" failed at function = glock_set_object, file = fs/gfs2/glock.h, line = 290

Solution Verified - Updated -

Issue

  • A gfs2 filesystem throws an assertion:

     [200606.544507] RIP: 0033:0x7fcd522d0296
     [200606.544510] Code: 89 54 24 08 e8 9b f4 ff ff 8b 74 24 0c 48 8b 3c 24 41 89 c0 44 8b 54 24 08 b8 01 01 00 00 89 f2 48 89 fe bf 9c ff ff ff 0f 05 <48> 3d 00 f0 ff ff 77 30 44 89 c7 89 44 24 08 e8 c6 f4 ff ff 8b 44
     [200606.544512] RSP: 002b:00007ffcdb9e63b0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
     [200606.544515] RAX: ffffffffffffffda RBX: 000000000120ab28 RCX: 00007fcd522d0296
     [200606.544516] RDX: 0000000000000241 RSI: 000000000159b7d0 RDI: 00000000ffffff9c
     [200606.544517] RBP: 0000000000000241 R08: 0000000000000000 R09: 00007ffcdb9e63a1
     [200606.544519] R10: 00000000000001b6 R11: 0000000000000293 R12: 00000000000001b6
     [200606.544520] R13: 00007ffcdb9e64d0 R14: 0000000000000000 R15: 00007ffcdb9e66f0
     [200606.544522] gfs2: fsid=etlcluster:prodproject.1: G:  s:UN n:2/869e080 f:Io t:UN d:EX/0 a:0 v:0 r:2 m:200
     [200606.545672] gfs2: fsid=etlcluster:prodproject.1: G:  s:SH n:5/869e080 f:Iqob t:SH d:EX/0 a:0 v:0 r:3 m:200
     [200606.546713] gfs2: fsid=etlcluster:prodproject.1:  H: s:SH f:EH e:0 p:2191638 [pmserver] gfs2_create_inode+0xb24/0x1350 [gfs2]
     [200880.680804] gfs2: fsid=etlcluster:prodproject.1: warning: assertion "gl->gl_object == NULL" failed at function = glock_set_object, file = fs/gfs2/glock.h, line = 290
     [200880.680810] CPU: 7 PID: 2191627 Comm: pmserver Kdump: loaded Tainted: G        W        --------- -  - 4.18.0-372.9.1.el8.x86_64 #1
     [200880.680813] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020
     [200880.680814] Call Trace:
     [200880.680820]  dump_stack+0x41/0x60
     [200880.680828]  gfs2_assert_warn_i.cold.18+0x2d/0x77 [gfs2]
     [200880.680847]  glock_set_object+0x44/0x70 [gfs2]
     [200880.680859]  gfs2_create_inode+0x916/0x1350 [gfs2]
     [200880.680869]  ? gfs2_create_inode+0x101/0x1350 [gfs2]
     [200880.680878]  ? __gfs2_lookup+0x136/0x140 [gfs2]
     [200880.680887]  ? gfs2_glock_dq_uninit+0x20/0x40 [gfs2]
     [200880.680900]  ? gfs2_permission+0xc1/0x140 [gfs2]
     [200880.680908]  gfs2_atomic_open+0x58/0xf0 [gfs2]
     [200880.680921]  path_openat+0xeff/0x14f0
     [200880.680925]  ? free_swap_slot+0x54/0xf0
     [200880.680928]  do_filp_open+0x93/0x100
     [200880.680932]  ? getname_flags+0x4a/0x1e0
     [200880.680934]  ? __check_object_size+0xa8/0x16b
     [200880.680938]  do_sys_open+0x184/0x220
     [200880.680941]  do_syscall_64+0x5b/0x1a0
     [200880.680946]  entry_SYSCALL_64_after_hwframe+0x65/0xca
    

Environment

  • Red Hat Enterprise Linux Server 8 , 9 (with the High Availability Add On and Resilient Storage Add Ons)
  • A Global Filesystem 2(gfs2)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content