Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Unable to kill proc after Sybase "ASE is terminating this process." (15.7 SP122)

$
0
0

We have a proc which is hanging after it terminates a process with

 

Msg 233, Level 16, State 2

Server 'LN_DELTA_D1_SQL', Procedure 'test', Line 32

The column CallType in table #features does not allow null values.

(return status = -6)

ASE is terminating this process.

 

We're creating a temp table incorrectly in the proc, by including the line

           CallType               char(1)     default null

 

We then insert into it and update it.

 

We get the message - the sessions terminates but the process continues to appear in sp_who.

The only way to clear it is a reboot.

 

We haven't tried this on SP132 - but will try it on SP134 when we get it.

 

We also get a stack trace - if it helps. The stack trace points to the update being at fault rather than the insert.

 

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  uc_flags: 0x0, uc_link: 0x(nil)

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  uc_sigmask: 0x416000 0xb 0x1 0xdeadbafe

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  uc_stack: ss_sp: 0x(nil), ss_size: 0x0, ss_flags: 0x2

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  General Registers (uc_mcontext.gregs):

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  PC : 0x0000000000f19a46 (xact_beginupdate+0x316)

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel          RAX : 0x00000000deadbabe  RBX : 0x00002aabfcbf8c90

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel          RCX : 0x00002aab8606e498  RDX : (nil)

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  RBP : 0x00002aaac2db6ff0  RSP : 0x00002aaac2db6f90

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  R8  : (nil)  R9  : 0x0000000000000001

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  R10 : (nil)  R11 : (nil)

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  R12 : 0x00002aac18fdbd28  R13 : 0x00002aabfcbf80c8

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  R14 : 0x0000000000000001  R15 : (nil)

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  RDI : 0x0000000002a581c8  RSI : 0x00000000fffffffb

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  RIP : 0x0000000000f19a46  CSGSFS : 0x0000000000000033

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  TRAPNO : 0x000000000000000e  ERR : 0x0000000000000004

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  EFL : 0x0000000000010206

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  **** end of signal context ****

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  ************************************

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  SQL causing error :

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  Current Procedure: F

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  Current statement number: 17 Current line number: 137

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  ************************************

00:0011:00000:00223:2015/05/11 11:01:48.72 server  SQL Text:

00:0011:00000:00223:2015/05/11 11:01:48.72 server  SQL Text: update  #features

    set     f.Sinking = 1

    from    #features f

    where   exists (select  *

                    from    POC..Schedule bfs

                    where   bfs.IId= f.IId

                    and     f.ValidFrom >= bfs.ValidFrom

                    and     f.ValidFrom <  bfs.ValidTo

                    )

 

 

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  curdb = 83 tempdb = 83 pstat = 0x10000 p2stat = 0x40101000

00:0011:00000:00223:2015/05/11 11:01:48.72 kernel  p3stat = 0x10800 p4stat = 0x0 p5stat = 0x8 p6stat = 0x10008011 p7stat = 0x10008

00:0011:00000:00223:2015/05/11 11:01:48.73 kernel  lasterror = 0 preverror = 0 transtate = 0

00:0011:00000:00223:2015/05/11 11:01:48.73 kernel  curcmd = 195 program = DBArtisan

00:0011:00000:00223:2015/05/11 11:01:48.74 kernel  pc: 0x00000000015e55ab pcstkwalk+0x3a3()

00:0011:00000:00223:2015/05/11 11:01:48.74 kernel  pc: 0x00000000015e5083 ucstkgentrace+0x263()

00:0011:00000:00223:2015/05/11 11:01:48.74 kernel  pc: 0x00000000015e0fee ucbacktrace+0x50()

00:0011:00000:00223:2015/05/11 11:01:48.74 kernel  pc: 0x0000000000784d5c terminate_process+0xa7c()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000016336d8 kisignal+0x31f()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x0000000000f19a46 xact_beginupdate+0x316()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  [Handler pc: 0x0x000000000152c8a6 trunctaberr installed by the following function:-]

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x000000000152b0d7 trunctab__phys+0x267()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  [Handler pc: 0x0x000000000152c8a6 trunctaberr installed by the following function:-]

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x000000000152a5fe trunctab+0x56e()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  [Handler pc: 0x0x00000000013c9ec0 droperr installed by the following function:-]

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000013c24b0 dropo+0x22c0()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000012042f4 drop_with_retry+0xb4()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x0000000001203428 tmp_alldrop+0x108()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000011d923b s_free+0x71b()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000011d85c4 s_pop+0x124()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000011d4420 s_cleanframe+0x130()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000011d3558 s_handle+0xaf8()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x000000000123aad3 exc__raise+0x2f3()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x000000000123a76c exc_raise+0x10c()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x000000000117f810 s_compile_stmt+0x2750()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x000000000117b117 s_compile+0x567()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000011da9f8 s_recompile+0x807()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  [Handler pc: 0x0x000000000123afb0 hdl_stack installed by the following function:-]

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  [Handler pc: 0x0x00000000011d2a60 s_handle installed by the following function:-]

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000011d736a sequencer+0x22ea()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000011a14b0 execproc+0x740()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x0000000001195054 s_execute+0x3354()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  [Handler pc: 0x0x000000000123afb0 hdl_stack installed by the following function:-]

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  [Handler pc: 0x0x00000000011d2a60 s_handle installed by the following function:-]

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000011d5b1e sequencer+0xa9e()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000011a14b0 execproc+0x740()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x0000000001195054 s_execute+0x3354()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  [Handler pc: 0x0x000000000123afb0 hdl_stack installed by the following function:-]

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  [Handler pc: 0x0x00000000011d2a60 s_handle installed by the following function:-]

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000011d5b1e sequencer+0xa9e()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000007c7a99 tdsrecv_language+0x199()

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  [Handler pc: 0x0x000000000153d570 ut_handle installed by the following function:-]

00:0011:00000:00223:2015/05/11 11:01:48.75 kernel  pc: 0x00000000007e87e0 conn_hdlr+0x1100()


Viewing all articles
Browse latest Browse all 3587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>