ZMD hangs on sqlite exception

  • 7001042
  • 28-Jul-2008
  • 30-Apr-2012

Environment

Novell ZENworks 7.2 Linux Management - ZLM7.2

Situation

ZMD Hangs

ZMD uses 100% CPU

sqllite exception seen in zmd-messages.log

Resolution

To obtain access to a hot patch with the fix for this problem, follow the instructions in KB 3469853 "Updates to Novell ZENworks 7.2 Linux Management" which can be found at https://www.novell.com/support

Additional Information

Extract from zmd-messages.log
10 Mar 2008 08:13:24 INFO  BundleManager        Executing preprepare scripts
for chksig-1.5-7-8
10 Mar 2008 08:13:24 INFO  Progress             Progress.Stop Message:
10 Mar 2008 08:13:24 INFO  Progress             Is Stopped value: False
free(): invalid pointer 0x2a96e7fb20!
Stacktrace:

  at (wrapper managed-to-native) Mono.Data.SqliteClient.Sqlite.sqlite3_prepare
(intptr,intptr,int,intptr&,intptr&)<0x0000e>
  at (wrapper managed-to-native) Mono.Data.SqliteClient.Sqlite.sqlite3_prepare
(intptr,intptr,int,intptr&,intptr&)<0xffffffff>
  at Mono.Data.SqliteClient.SqliteCommand.Prepare ()<0x00080>
  at Mono.Data.SqliteClient.SqliteCommand.PreExec ()<0x0001f>
  at Mono.Data.SqliteClient.SqliteCommand.ExecuteNonQuery ()<0x00012>
  at Novell.Zenworks.Zmd.Packaging.PackageHistory.AddEntry
(Novell.Zenworks.Zmd.Packaging.PackageHistoryEntry)<0x01264>
  at Novell.Zenworks.Zmd.Packaging.Transaction.CommitLogEntries ()<0x00076>
  at Novell.Zenworks.Zmd.Packaging.Transaction.Transact ()<0x000eb>
  at Novell.Zenworks.Zmd.ZenThread.WorkerLoop ()<0x002da>
  at (wrapper delegate-invoke) System.MulticastDelegate.invoke_void ()
<0xffffffff>
  at (wrapper runtime-invoke) System.IO.StreamWriter.runtime_invoke_void
(object,intptr,intptr,intptr)<0xffffffff>

Native stacktrace:

zmd [0x518238]
zmd [0x4e767e]
/lib64/tls/libpthread.so.0 [0x2a95a0f260]
/lib64/tls/libc.so.6 [0x2a95cd8a26]
/lib64/tls/libc.so.6(malloc+0x99) [0x2a95cd9fc9]
/opt/novell/zenworks/lib64/libsqlite3.so.0(sqlite3MallocRaw+0x26)
[0x2a97af0e26]
/opt/novell/zenworks/lib64/libsqlite3.so.0(sqlite3StrNDup+0x2a) [0x2a97af0f5e]
/opt/novell/zenworks/lib64/libsqlite3.so.0(sqlite3NameFromToken+0x2a)[0x2a97ac7678]
/opt/novell/zenworks/lib64/libsqlite3.so.0(sqlite3IdListAppend+0x8f)[0x2a97acb15c]
/opt/novell/zenworks/lib64/libsqlite3.so.0 [0x2a97ae0a12]
/opt/novell/zenworks/lib64/libsqlite3.so.0(sqlite3Parser+0xfe) [0x2a97ae20b2]
/opt/novell/zenworks/lib64/libsqlite3.so.0(sqlite3RunParser+0x20b)[0x2a97aee3a7]
/opt/novell/zenworks/lib64/libsqlite3.so.0(sqlite3_prepare+0xad) [0x2a97ae4bc6]
        [0x40af3d07]