Uploaded image for project: 'Persistence Admin Service'
  1. Persistence Admin Service
  2. PAS-12

persadmin_tool restore crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • High
    • None
    • None

    Description

      Calling restore functionality sometimes causes a crash of the PAS service.

      persadmin_tool restore FactoryDefault 0 "" -1 -1
      

      First attempt ended fine. Running it again resulted in a freeze and pers_admin_svc crash.
      In the systemd journal (journal.txt) I have found those lines:

      Nov 11 11:13:13 ihu-low kernel: pers_admin_svc[1525]: segfault at 7f5059739010 ip 00007f5057c9ec50 sp 00007f505533bb08 error 4 in libc-2.22.so[7f5057c0e000+19a000]
      Nov 11 11:13:13 ihu-low systemd[1]: pas-daemon.service: Main process exited, code=killed, status=11/SEGV
      

      After reading the core dump file I retrieved this call trace:

      (gdb) bt
      #0  __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:33
      #1  0x00007f505912212c in KISSDB_Iterator_next (dbi=dbi@entry=0x7f505533c110, kbuf=kbuf@entry=0x7f505533c150, vbuf=vbuf@entry=0x0) at ../src/key-value-store/database/kissdb.c:1373
      #2  0x00007f505911d0c8 in getListandSize (db=db@entry=0x7f505932d4b0 <g_sHandlers+16>, buffer=buffer@entry=0x0, size=size@entry=0, bOnlySizeNeeded=1 '\001', purpose=purpose@entry=PersLldbPurpose_DB)
          at ../src/key-value-store/pers_low_level_db_access.c:2223
      #3  0x00007f505911d545 in GetAllKeysFromKissLocalDB (dbHandler=dbHandler@entry=0, buffer=buffer@entry=0x0, size=size@entry=0) at ../src/key-value-store/pers_low_level_db_access.c:1144
      #4  0x00007f5059120e62 in pers_lldb_get_size_keys_list (handlerDB=handlerDB@entry=0, ePurpose=ePurpose@entry=PersLldbPurpose_DB) at ../src/key-value-store/pers_low_level_db_access.c:902
      #5  0x00007f505911887e in persComDbGetSizeKeysList (handlerDB=handlerDB@entry=0) at ../src/pers_local_shared_db_access.c:267
      #6  0x0000000000412501 in persadmin_priv_delete_keys_by_filter (seat_no=4294967295, user_no=4294967295, pchDBPath=0x7f505533c7e0 "\002", type=PersASSelectionType_Application)
          at src/ssw_pers_admin_database_helper.c:355
      #7  persadmin_delete_keys_by_filter (type=type@entry=PersASSelectionType_Application, pchDBPath=pchDBPath@entry=0x7f505533d050 "/Data/mnt-c/MOSTApp/wt.itz", user_no=user_no@entry=4294967295, 
          seat_no=seat_no@entry=4294967295) at src/ssw_pers_admin_database_helper.c:158
      #8  0x000000000041df63 in persadmin_restore_default_local_keys (type=type@entry=PersASSelectionType_Application, defaultSource=defaultSource@entry=PersASDefaultSource_Configurable, 
          appId=appId@entry=0x7f5048001279 "MOSTApp", user_no=user_no@entry=4294967295, seat_no=seat_no@entry=4294967295) at src/ssw_pers_admin_restore_default.c:1108
      #9  0x000000000041ea90 in persadmin_restore_default_appl_data (defaultSource=defaultSource@entry=PersASDefaultSource_Configurable, appId=appId@entry=0x7f5048001279 "MOSTApp")
          at src/ssw_pers_admin_restore_default.c:1355
      #10 0x00000000004204c3 in persadmin_restore_default_all_data (defaultSource=PersASDefaultSource_Configurable) at src/ssw_pers_admin_restore_default.c:1570
      #11 0x0000000000420de7 in persadmin_data_restore_to_default (type=<optimized out>, defaultSource=<optimized out>, applicationID=applicationID@entry=0x7f505533f56c "", user_no=<optimized out>, 
          seat_no=<optimized out>) at src/ssw_pers_admin_restore_default.c:258
      #12 0x000000000042b65f in persadmin_ProcessRequest (pResult_out=<synthetic pointer>, psRequest=0x7f505533f460) at src/ssw_pers_admin_service.c:541
      #13 persadmin_AccessLibThread (arg=<optimized out>) at src/ssw_pers_admin_service.c:667
      #14 0x00007f50583cb3c4 in start_thread (arg=0x7f5055340700) at pthread_create.c:337
      #15 0x00007f5057cf6b4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
      

      Attachments

        Issue Links

          Activity

            People

              ingo.huerner Ingo Huerner (Inactive)
              szymon.lanucha Szymon Lanucha [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: