Error - Segmentation fault - Invalid permissions - parallel-processing

I am trying to run a simulation of Lammps software in a cluster with Linux environment, however my simulation crashes returning the error below.
*** Process received signal ***
Signal: Segmentation fault (11)
Signal code: Invalid permissions (2)
Failing at address: 0x7fc6e59a7308
[ 0] /lib64/libpthread.so.0(+0x12d80)[0x7fc6e5f7ad80]
[ 1] /usr/lib64/openmpi/lib/openmpi/mca_btl_vader.so(+0x4b1b)[0x7fc6d247eb1b]
[ 2] /usr/lib64/openmpi/lib/libopen-pal.so.40(opal_progress+0x34)[0x7fc6e566c8e4]
[ 3] /usr/lib64/openmpi/lib/libmpi.so.40(ompi_request_default_wait+0x12d)[0x7fc6e6d32e4d]
[ 4] /usr/lib64/openmpi/lib/libmpi.so.40(ompi_coll_base_sendrecv_actual+0xc5)[0x7fc6e6d911c5]
[ 5] /usr/lib64/openmpi/lib/libmpi.so.40(ompi_coll_base_allreduce_intra_recursivedoubling+0x2dc)[0x7fc6e6d9159c]
[ 6] /usr/lib64/openmpi/lib/libmpi.so.40(PMPI_Allreduce+0x2c0)[0x7fc6e6d46fc0]
[ 7] /home/sw/lammps/LAMMPS_7AUG19/lammps-7Aug19-Full_2/src/lmp_g++_openmpi[0xed9299]
[ 8] /home/sw/lammps/LAMMPS_7AUG19/lammps-7Aug19-Full_2/src/lmp_g++_openmpi[0x771650]
[ 9] /home/sw/lammps/LAMMPS_7AUG19/lammps-7Aug19-Full_2/src/lmp_g++_openmpi[0x44cf50]
[10] /home/sw/lammps/LAMMPS_7AUG19/lammps-7Aug19-Full_2/src/lmp_g++_openmpi[0x157f206]
[11] /home/sw/lammps/LAMMPS_7AUG19/lammps-7Aug19-Full_2/src/lmp_g++_openmpi[0x157d2f7]
[12] /home/sw/lammps/LAMMPS_7AUG19/lammps-7Aug19-Full_2/src/lmp_g++_openmpi[0x157dddb]
[13] /home/sw/lammps/LAMMPS_7AUG19/lammps-7Aug19-Full_2/src/lmp_g++_openmpi[0x417496]
[14] /lib64/libc.so.6(__libc_start_main+0xf3)[0x7fc6e5bc7813]
[15] /home/sw/lammps/LAMMPS_7AUG19/lammps-7Aug19-Full_2/src/lmp_g++_openmpi[0x4178fe]
*** End of error message ***
--------------------------------------------------------------------------
mpirun noticed that process rank 9 with PID 0 on node lesc exited on signal 11 (Segmentation fault).
--------------------------------------------------------------------------
I believe that this error should not be directly related to the software but rather with mpi.
Could anyone kindly give me any insight into this kind of error? I don't understand much about how mpi works.

Related

Configuration Assistant (biee.py) Failed with Exit Value 1 at OBIEE12c

During installation and configuration of obiee12c(12.2.1.4), configuration assistant failed with an error.
The following is the installation log.
[2021-09-19T16:31:35.218+09:00] [bi] [NOTIFICATION] [] [oracle.bi.install.config.basesteps] [tid: 42] [ecid: 0000MTUM^f91Vctsoc7EDm1RztE2000004,0] Failed single shot step: BIEE with: Execution of [/u01/app/oracle/middleware/oracle_common/common/bin/wlst.sh, /u01/app/oracle/middleware/bi/modules/oracle.bi.configassistant/biee.py, /u01/app/oracle/middleware, /u01/app/oracle/middleware/user_projects/domains/bi, weblogic, Expanded, hxfpr371, 9502, 9503, ORACLE, oracle.jdbc.OracleDriver, jdbc:oracle:thin:#//:1521/, TST1, jdbc:oracle:thin:#//:1521/, ] failed with exit value 1
[2021-09-19T16:31:35.219+09:00] [bi] [ERROR] [] [oracle.bi.install.config.actions] [tid: 42] [ecid: 0000MTUM^f91Vctsoc7EDm1RztE2000004,0] Non-skipped failure during configuration action: Execution of [/u01/app/oracle/middleware/oracle_common/common/bin/wlst.sh, /u01/app/oracle/middleware/bi/modules/oracle.bi.configassistant/biee.py, /u01/app/oracle/middleware, /u01/app/oracle/middleware/user_projects/domains/bi, weblogic, Expanded, hxfpr371, 9502, 9503, ORACLE, oracle.jdbc.OracleDriver, jdbc:oracle:thin:#//:1521/, TST1, jdbc:oracle:thin:#//:1521/, ] failed with exit value 1[[
oracle.bi.exec.ExecutionStatusException: Execution of [/u01/app/oracle/middleware/oracle_common/common/bin/wlst.sh, /u01/app/oracle/middleware/bi/modules/oracle.bi.configassistant/biee.py, /u01/app/oracle/middleware, /u01/app/oracle/middleware/user_projects/domains/bi, weblogic, Expanded, hxfpr371, 9502, 9503, ORACLE, oracle.jdbc.OracleDriver, jdbc:oracle:thin:#//:1521/, TST1, jdbc:oracle:thin:#//:1521/, ] failed with exit value 1
at oracle.bi.exec.StdinProcess.runProcess(StdinProcess.java:106)
at oracle.bi.exec.ExecScript.executeScript(ExecScript.java:191)
at oracle.bi.exec.ExecScript.executeSynchronousScript(ExecScript.java:95)
at oracle.bi.exec.ExecWLST.executeWLSTScript(ExecWLST.java:62)
at oracle.bi.install.config.steps.WLSTStep.executeSingleShot(WLSTStep.java:55)
at oracle.bi.install.config.basesteps.SingleShotActionStep.execute(SingleShotActionStep.java:31)
at oracle.bi.install.config.basesteps.StepList.execute(StepList.java:85)
at oracle.bi.install.config.actions.BIConfigAction.doExecute(BIConfigAction.java:127)
at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:405)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:108)
at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
at oracle.as.install.engine.modules.configuration.action.RequestQueue.performSequentialExecution(RequestQueue.java:284)
at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:260)
at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:185)
at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:82)
at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:87)
at java.lang.Thread.run(Thread.java:748)
the issue is due to a java configuration parameter i guess, try this before installation :
go to « C:\Java\jdk1.8.0_192\jre\lib\security »
** replace this path with your own path
edit the file « java.security » and replace this line :
securerandom.source=file:/dev/random
by this line :
securerandom.source=file:/dev/urandom
for more details : Doc ID 2221805.1

How can I use Julia for the first time on windows 7?

When I try to install any package in Julia, I keep receiving this error:
julia> Pkg.add("Dates")
INFO: Initializing package repository C:\Users\Ezz\.julia\v0.6
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ECERTIFICATE, Class:OS, user cancelled certificate check: )
Stacktrace:
[1] macro expansion at .\libgit2\error.jl:99 [inlined]
[2] clone(::String, ::String, ::Base.LibGit2.CloneOptions) at .\libgit2\reposit
ory.jl:276
[3] #clone#100(::String, ::Bool, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractC
redentials}, ::Function, ::String, ::String) at .\libgit2\libgit2.jl:562
[4] (::Base.LibGit2.#kw##clone)(::Array{Any,1}, ::Base.LibGit2.#clone, ::String
, ::String) at .\<missing>:0
[5] (::Base.Pkg.Dir.##8#10{String,String})() at .\pkg\dir.jl:55
[6] cd(::Base.Pkg.Dir.##8#10{String,String}, ::String) at .\file.jl:59
[7] init(::String, ::String) at .\pkg\dir.jl:53
[8] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{String,N}
where N) at .\pkg\dir.jl:28
[9] add(::String) at .\pkg\pkg.jl:117
I googled and found that TLS protocol is not installed and this can be done by installing the easy fix, but it didn't work. I might understood something wrong, so please can anybody help me?
I'm using windows 7, 64-bit.

AU v3: Ignoring lax activation attempt for unsupported domain: apple-extension-service, viewbridge

There is an AudioUnitV3Example sample code by Apple for iOS. As well as Audio Unit Extension OS X target template in Xcode (7.2).
I created (for debug purpose) simple AUv3 PlugIns Host which used AVFoundation API to build playback engine graph. It is working well with standard AudioUnits shipped with OS X. It can instantiate AudioUnit, load preset, open effect window.
But I can't troubleshoot problem with custom AUv3 PlugIn created from Audio Unit Extension template.
It was already working some days ago and I was able to hit following breakpoint (as well as reach other code from AudioUnit lifecycle):
// AUAudioUnitFactory method.
func createAudioUnitWithComponentDescription(
desc: AudioComponentDescription) throws -> AUAudioUnit
But at some point a faced strange issue. The completionHandler for custom PlugIn, from the following method, never gets called:
// AVAudioUnit method.
class func instantiateWithComponentDescription(
audioComponentDescription: AudioComponentDescription,
options: AudioComponentInstantiationOptions,
completionHandler: (AVAudioUnit?, NSError?) -> Void)
Also there is following log messages in system.log:
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
for x86_64.
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: Got a connection, waiting for process information for launching or attaching.
kernel[0]: warning: debugserver(23653) performed out-of-band resume on pid 23652
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: Attach succeeded, ready to debug.
pkd[562]: INSTALLED:ua.com.wavelabs.Attenuator.AttenuatorAU ua.com.wavelabs.Attenuator.AttenuatorAU(1.0.1) <__NSConcreteUUID 0x7f8dcb847fb0> 4FD70868-0F5B-4979-A6DC-4018B4143934 /private/tmp/Attenuator.dst/Applications/Attenuator.app/Contents/PlugIns/AttenuatorAU.appex
pkd[562]: client 23594 plug-in ua.com.wavelabs.Attenuator.AttenuatorAU election := 257
com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.MediaLibraryService.23655): Path not allowed in target domain: type = pid, path = /Library/Frameworks/iTunesLibrary.framework/Versions/A/XPCServices/com.apple.iTunesLibraryService.xpc error = 147: The specified service did not ship in the requestor's bundle, origin = /System/Library/Frameworks/MediaLibrary.framework/Versions/A/XPCServices/com.apple.MediaLibraryService.xpc
--- last message repeated 1 time ---
com.apple.SecurityServer[88]: Session 101187 created
com.apple.SecurityServer[88]: Session 101188 created
com.apple.SecurityServer[88]: Killing auth hosts
com.apple.SecurityServer[88]: Session 101182 destroyed
com.apple.SecurityServer[88]: Session 101189 created
pkd[562]: enabling pid=23652 for plug-in ua.com.wavelabs.Attenuator.AttenuatorAU(1.0.1) 4FD70868-0F5B-4979-A6DC-4018B4143934 /private/tmp/Attenuator.dst/Applications/Attenuator.app/Contents/PlugIns/AttenuatorAU.appex
taskgated-helper[23666]: Starting taskgated-helper
taskgated-helper[23666]: validated embedded provisioning profile: file:///private/tmp/Attenuator.dst/Applications/Attenuator.app/Contents/PlugIns/AttenuatorAU.appex/Contents/embedded.provisionprofile
taskgated-helper[23666]: Found 1 provisioning profiles
taskgated-helper[23666]: allowing entitlement(s) for pid=23665 due to provisioning profile
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23668]: debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
for x86_64.
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23668]: Got a connection, waiting for process information for launching or attaching.
kernel[0]: warning: debugserver(23668) performed out-of-band resume on pid 23665
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23668]: Attach succeeded, ready to debug.
com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.AUHost.23652): Ignoring lax activation attempt for unsupported domain: ua.com.wavelabs.Attenuator.AttenuatorAU.apple-extension-service
com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.AUHost.23652): Ignoring lax activation attempt for unsupported domain: ua.com.wavelabs.Attenuator.AttenuatorAU.viewbridge
com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.AUHost.23652): Ignoring lax activation attempt for unsupported domain: ua.com.wavelabs.Attenuator.AttenuatorAU
From this log we can see that:
App Extension (PlugIn) successfully registered (INSTALLED:ua.com.wavelabs.Attenuator.AttenuatorAU).
Provisioning file validated and thus no Sandbox related issues (allowing entitlement(s) for pid=23665 due to provisioning profile).
Xcode debugger successfully attached to AUv3 Host and Attenuator App Extension.
Unfortunately something went wrong after log messages Ignoring lax activation attempt for unsupported domain .... PlugIn load stuck on waiting for return from callback, which will never be triggered.(
After stopping Xcode debug there is another part of system.log:
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: Got a 'k' packet, killing the inferior process.
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: Sending ptrace PT_KILL to terminate inferior process.
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: 1 +0.000000 sec [5c65/0307]: error: ::ptrace (request = PT_THUPDATE, pid = 0x5c64, tid = 0x1903, signal = 0) err = Resource busy (0x00000010)
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: 2 +0.000143 sec [5c65/0307]: error: ::task_info ( target_task = 0x1403, flavor = TASK_BASIC_INFO, task_info_out => 0x7fff56ac9f30, task_info_outCnt => 10 ) err = (os/kern) invalid argument (0x00000004)
com.apple.security.pboxd[23660]: __45-[NSRemoteServiceConnection _setupConnection]_block_invoke_2: connection failed unexpectedly; terminating process; delegate was (
0 RemoteViewServices 0x00007fff87e25a28 -[NSRemoteServiceConnection setDelegate:] + 255
1 com.apple.security.pboxd 0x00000001068e4771 com.apple.security.pboxd + 22385
2 com.apple.security.pboxd 0x00000001068e4c33 com.apple.security.pboxd + 23603
3 com.apple.security.pboxd 0x00000001068e3b8d com.apple.security.pboxd + 19341
4 libxpc.dylib 0x00007fff932b9396 _xpc_connection_call_event_handler + 35
5 libxpc.dylib 0x00007fff932b900f _xpc_connection_mach_event + 2198
6 libdispatch.dylib 0x00007fff914204ca _dispatch_client_callout4 + 9
7 libdispatch.dylib 0x00007fff9142093c _dispatch_mach_msg_invoke + 555
8 libdispatch.dylib 0x00007fff9141d134 _dispatch_queue_drain + 1207
9 libdispatch.dylib 0x00007fff9141f293 _dispatch_mach_invoke + 735
10 libdispatch.dylib 0x00007fff9141833f _dispatch_client_callout + 8
11 libdispatch.dylib 0x00007fff9141c1cf _dispatch_root_queue_drain + 1890
12 libdispatch.dylib 0x00007fff9141ba34 _dispatch_worker_thread3 + 91
13 libsystem_pthread.dylib 0x00007fff8ff3d68f _pthread_wqthread + 1129
14 libsystem_pthread.dylib 0x00007fff8ff3b365 start_wqthread + 13
)
AttenuatorAU[23665]: host connection <NSXPCConnection: 0x618000300990> connection from pid 23652 invalidated
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: Waited 10 ms for process to be reaped (state = Exited)
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: 3 +0.011781 sec [5c65/1303]: error: ::read ( 3, 0x700000080a40, 1024 ) => -1 err = Bad file descriptor (0x00000009)
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23653]: Exiting.
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23668]: 1 +0.000000 sec [5c74/0307]: error: ::task_info ( target_task = 0x1403, flavor = TASK_BASIC_INFO, task_info_out => 0x7fff5c5c2a30, task_info_outCnt => 10 ) err = (os/kern) invalid argument (0x00000004)
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23668]: 2 +0.004318 sec [5c74/1303]: error: ::read ( 3, 0x700000080a40, 1024 ) => -1 err = Bad file descriptor (0x00000009)
com.apple.debugserver-#(#)PROGRAM:debugserver PROJECT:debugserver-340.4.120
[23668]: Exiting.
Xcode[23287]: DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-10119.9/DVTFoundation/Devices/DVTLocalComputer.m:375
Details: Error un-registering Plugin: '/tmp/Attenuator.dst/Applications/Attenuator.app/Contents/PlugIns/AttenuatorAU.appex' Error: Error Domain=PlugInKit Code=9 "no plugin at /private/tmp/Attenuator.dst/Applications/Attenuator.app/Contents/PlugIns/AttenuatorAU.appex" UserInfo={NSLocalizedDescription=no plugin at /private/tmp/Attenuator.dst/Applications/Attenuator.app/Contents/PlugIns/AttenuatorAU.appex}
Object: <DVTLocalComputer: 0x7fd9b9efa050>
Method: -stopDebuggingXPCServices:forPairedDevice:
Thread: <NSThread: 0x7fd9c211cb60>{number = 47, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
pkd[562]: UNINSTALLED:ua.com.wavelabs.Attenuator.AttenuatorAU ua.com.wavelabs.Attenuator.AttenuatorAU(1.0.1) 4FD70868-0F5B-4979-A6DC-4018B4143934 /private/tmp/Attenuator.dst/Applications/Attenuator.app/Contents/PlugIns/AttenuatorAU.appex
From this part of log we can see the following:
Debug terminated.
App Extension (PlugIn) uninstalled.
There is also backtrace related NSRemoteServiceConnection class.
Can anybody explain what are the messages Ignoring lax activation attempt for ... about?
Thank you!
Note: AUv3 Host is not a Containing app. Containing app exists as well, but is does nothing except of participating App Extension registration.
In order to reproduce issue you can download source code, open project AUSamplePlugIn/Attenuator.xcodeproj and launch schema AttenuatorAU.

Cygwin Heap Space Error

I'm receiving an error when I try to run any cygwin functionality (bash/sh/ash/dash), which says:
1 [main] ash 5008 D:\DevStudio\cygwin\bin\ash.exe: *** fatal error - could
n't allocate heap, Win32 error 487, base 0xC80000, top 0xCD0000, reserve_size 32
3584, allocsize 327680, page_const 4096
Stack trace:
Frame Function Args
0028E4EC 6102796B (0028E4EC, 00000000, 00000000, 00640000)
0028E7DC 6102796B (6117EC60, 00008000, 00000000, 61180977)
0028F80C 61004F1B (611B66CC, 00C80000, 00CD0000, 0004F000)
0028F83C 6106E8C3 (7FFEFFFF, 000000FF, 00000008, 77C2FEA2)
0028F92C 610C133B (00000078, 02000000, 6116A724, 6116A720)
0028F95C 610064C0 (00000000, 00000000, 00000000, 00000000)
0028FA1C 6106FC15 (61000000, 00000001, 0028FD24, 00000001)
0028FA3C 77C4B990 (6106F960, 61000000, 00000001, 0028FD24)
0028FB30 77C50389 (0028FD24, 7EFDD000, 7EFDE000, 77D1206C)
0028FCB0 77C56C5C (0028FD24, 77C10000, 597A2CBD, 00000000)
0028FD00 77C55717 (0028FD24, 77C10000, 00000000, 00000000)
0028FD10 77C4BEB9 (0028FD24, 77C10000, 00000000, 0001002F)
End of stack trace
0 [main] ash 6536 fork: child -1 - died waiting for longjmp before initial
ization, retry 0, exit code 0x100, errno 11
I've looked at suggestions which all suggest rebasing, however it just fails with the above error but with this added on:
/usr/bin/rebaseall: 21: Cannot fork
Any help would be great! I've tried changing virtual memory size etc with no avail. Sophos is also running on this machine.

Transaction deadlock TX

have a batch process and a regular application that updates the same table.My batch have multiple threads that run on multiple sessions. I got the following errors in my batch Tomcat:
2012-09-10 11:30:17,043 [SyncDataThread567] ERROR org.springframework.batch.core.step.AbstractStep - Encountered an error executing the step
aaa.bbb.ccc.framework.orm.DAOException:
--- The error occurred in abc.xml.
--- The error occurred while applying a parameter map.
--- Check the ear.updateServiceTimeParamMap.
--- Check the statement (update procedure failed).
--- Cause: java.sql.SQLException: ORA-20011: FUNC_UPDATESERVICETIME : Error occured ORA-00060: deadlock detected while waiting for resource
ORA-06512: at "ER.FUNC_UPDATESERVICETIME", line 154
ORA-06512: at line 1
at aaa.bbb.ccc.ddd.eee.Sss.updateServiceTimes(ServiceOrderDAOImpl.java:76)
at sun.reflect.GeneratedMethodAccessor352.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy6.updateServiceTimes(Unknown Source)
at aaa.bbb.ccc.ddd.eeee.Inbddd.updateServiceTimes(InbDataWriter.java:144)
at aaa.bbb.ccc.ddd.eeee.Inbddd.write(InbDataWriter.java:74)
at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy7.write(Unknown Source)
at org.springframework.batch.core.step.item.SimpleChunkProcessor.writeItems(SimpleChunkProcessor.java:171)
at org.springframework.batch.core.step.item.SimpleChunkProcessor.doWrite(SimpleChunkProcessor.java:150)
at org.springframework.batch.core.step.item.SimpleChunkProcessor.write(SimpleChunkProcessor.java:268)
at org.springframework.batch.core.step.item.SimpleChunkProcessor.process(SimpleChunkProcessor.java:194)
at org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:74)
at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:386)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
at org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:264)
at org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:76)
at org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:367)
at org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:214)
at org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:143)
at org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:250)
at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:195)
at org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler$1.call(TaskExecutorPartitionHandler.java:109)
at org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler$1.call(TaskExecutorPartitionHandler.java:107)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:192)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in ael.xml.
--- The error occurred while applying a parameter map.
--- Check the eraa.updateServiceTimeParamMap.
--- Check the statement (update procedure failed).
--- Cause: java.sql.SQLException: ORA-20011: FUNC_UPDATESERVICETIME : Error occured ORA-00060: deadlock detected while waiting for resource
ORA-06512: at "ER.FUNC_UPDATESERVICETIME", line 154
ORA-06512: at line 1
at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:201)
at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForObject(MappedStatement.java:120)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:518)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:493)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForObject(SqlMapSessionImpl.java:106)
at com.iit.integration.erl.orm.ServiceOrderDAOImpl.updateServiceTimes(ServiceOrderDAOImpl.java:71)
... 44 more
Caused by: java.sql.SQLException: ORA-20011: FUNC_UPDATESERVICETIME : Error occured ORA-00060: deadlock detected while waiting for resource
ORA-06512: at "ER.FUNC_IIT_UPDATESERVICETIME", line 154
ORA-06512: at line 1
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:215)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:954)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3390)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4223)
at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:169)
at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQueryProcedure(SqlExecutor.java:278)
at com.ibatis.sqlmap.engine.mapping.statement.ProcedureStatement.sqlExecuteQuery(ProcedureStatement.java:39)
at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189)
... 49 more
This is my oracle trace file:
Redo thread mounted by this instance: 1
Oracle process number: 63
Windows thread id: 2464, image: ORACLE.EXE (SHAD)
*** 2012-09-10 11:30:12.384
*** SERVICE NAME:(SYS$USERS) 2012-09-10 11:30:12.244
*** SESSION ID:(411.3766) 2012-09-10 11:30:12.244
DEADLOCK DETECTED
[Transaction Deadlock]
Current SQL statement for this session:
UPDATE SP SET SRVC_TM = :B4 , MODIFICATION_DTM=SYSDATE WHERE OPERATION_AREA_CD = :B3 AND ROUTE_TYP = :B2 AND OBJECTID = :B1
----- PL/SQL Call Stack -----
object line object
handle number name
000000057D9B52E8 134 function ER.FUNC_UPDATESERVICETIME
000000057C3A5848 1 anonymous block
The following deadlock is not an ORACLE error. It is a
deadlock due to user error in the design of an application
or from issuing incorrect ad-hoc SQL. The following
information may aid in determining the deadlock:
Deadlock graph:
---------Blocker(s)-------- ---------Waiter(s)---------
Resource Name process session holds waits process session holds waits
TX-00040020-0017465b 63 411 X 94 364 X
TX-00020020-00166804 94 364 X 63 411 X
session 411: DID 0001-003F-00000033 session 364: DID 0001-005E-00000016
session 364: DID 0001-005E-00000016 session 411: DID 0001-003F-00000033
Rows waited on:
Session 364: obj - rowid = 0000CC64 - AAAMxkAA2AAA1q2AAY
(dictionary objn - 52324, file - 54, block - 219830, slot - 24)
Session 411: obj - rowid = 0000CC64 - AAAMxkAA2AAA1q2AAR
(dictionary objn - 52324, file - 54, block - 219830, slot - 17)
Information on the OTHER waiting sessions:
Session 364:
pid=94 serial=6104 audsid=693767 user: 57/ER
O/S info: user: , term: , ospid: 1234, machine: abc
program:
Current SQL Statement:
UPDATE SP SET ORIG_NO='751' ,ORIG_SEQ_NO=0,SP_ROUTING_STATUS='A', USER_ID='XXXX', MODIFICATION_DTM=SYSDATE WHERE OBJECTID IN ('104883389','104883404','104883407','104883440','104883443','104883455','104883467','104883509','104883545','104883764','104883788','104883806','104883812','104883821','104883836','104883854','104883863','104883893','104883899','104883931','104883937','104883964','104884084','104884117','104884120','104884138','104884141','104885439','104883386','104883422','104883560','104883587','104883767','104883785','104883809','104883824','104883845','104883851','104883884','104883890','104883955','104883958','104884012','104884093','104884114','104885412','104885436','104885442','104885445','104883383','104883395','104883413','104883419','104883464','104883494','104883524','104883773','104883842','104883917','104883920','104883943','104883949','104883967','104883997','104884051','104884105','104884108','104885451','104883437','104883461','104883476','104883497','104883500','104883503','104883566','104883584','104883614','104883794','104883800','104883815','104883830','104883857','104883869','104883923','104883952','104884048','104884057','104884063','104884066','104884081','104884087','104884102','104884111','104884135','104885415','104885424','104885427','104886297','104886308','104883398','104883410','104883458','104883473','104883512','104883515','104883527','104883530','104883536','104883554','104883596','104883770','104883782','104883803','104883827','104883833','104883839','104883848','104883866','104883875','104883878','104883896','104883902','104883914','104883970','104883976','104884060','104884069','104884072','104884123','104884132','104885409','104885430','104883425','104883431','104883446','104883449','104883452','104883482','104883506','104883518','104883539','104883548','104883569','104883575','104883578','104883623','104883779','104883797','104883818','104883860','104883925','104883934','104883940','104883946','104883973','104883979','104883982','104884078','104884090','104884096','104885421','104885448','104885454','104883392','104883416','104883428','104883479','104883491','104883521','104883542','104883551','104883557','104883563','104883872','104883911','104883928','104883961','104883994','104884018','104884054','104884099','104884129','104886299','104883401','104883434','104883470','104883485','104883533','104883572','104883581','104883776','104883791','104883881','104883887','104883905','104883908','104884075','104884126','104885418','104885433')
End of information on OTHER waiting sessions.
===================================================
PROCESS STATE
-------------
Process global information:
process: 000000057B3343D8, call: 0000000574FCBF78, xact: 0000000576A07F60, curses: 000000057E48D858, usrses: 000000057E48D858
----------------------------------------
SO: 000000057B3343D8, type: 2, owner: 0000000000000000, flag: INIT/-/-/0x00
(process) Oracle pid=63, calls cur/top: 0000000574FCBF78/0000000574FD4C48, flag: (0) -
int error: 0, call error: 0, sess error: 0, txn error 0
(post info) last post received: 108 0 4
last post received-location: aaa
last process to post me: 7e31d890 1 6
last post sent: 0 0 112
last post sent-location: bbb
last process posted by me: 7b334c00 3 0
(latch info) wait_event=0 bits=10
holding (efd=19) 4745310 Parent+children enqueue hash chains level=4
Location from where latch is held: cmi: gpl:
Context saved from call: 0
state=busy, wlstate=free
recovery area:
Dump of memory from 0x000000057E300810 to 0x000000057E300830
57E300810 00000000 00000000 00000000 00000000 [...............
I have been reaserching this issue from past few days. From what I saw few are saying its a indexing issue, few are saying its INITRANS... I am not sure.. But this deadlock happens very rare. But whenever it happens its a big issue.
So please help me guys.. what to look for.. and how I can solve this issue..
Look at your two UPDATE statements and try to understand why they would request the same row, but in a different order. That's how almost all
deadlocks happen.
There are several possible ways to avoid this error:
1) Update rows in the same order. You may be able to do this with a hint to force a full table scan or index. (I'm not 100% certain that using the same access method will always avoid this issue, but in practice it does seem to fix it. See my old question for a painful discussion about deadlocks when the access method is the same.)
2) Do not run your two processes at the same time.
3) Handle exceptions. For example, something like this:
declare
deadlock exception;
pragma exception_init(deadlock, -00060);
begin
<code>
exception when deadlock then
<do something about it here, such as re-try>
end;
/
You need to add the exception handling to both blocks of code. And a deadlock will still generate a trace file, which will probably
slow things down and take up a lot of space where no one expects it.

Resources