Home » Developer & Programmer » Precompilers, OCI & OCCI » sqlcxt crash - signal SEGV (no mapping at the fault address) (Oracle 10g on Sun Solaris 10)
icon5.gif  sqlcxt crash - signal SEGV (no mapping at the fault address) [message #354554] Mon, 20 October 2008 04:42
shamim.tcs
Messages: 1
Registered: October 2008
Location: Pune
Junior Member
Hi,

I am getting Segmentation fault in ProC code of my application.
Pasting below dbx trace.


(dbx) where
[1] sqlcmex(0x0, 0xffffffff7ffd2150, 0xffffffff7ffd2288, 0x1012b0480, 0x1de8, 0x21), at 0x100df6d94
[2] sqlcxt(0x0, 0x1012b0478, 0xffffffff7ffd2288, 0x1012b0480, 0x1, 0x0), at 0x100df76b8
=>[3] c_pt001_prty::Get(this = 0x10149fa58, errFlagIn = 1, errFlagOut = 1), line 2526 in "dm_c_pt001_prty.cpp"
[4] wrapper_consolidation(pi_new_invstr_id = 310000337.0, pi_inwrd_no = 59303479, pi_old_invstr_id_1 = 310000264.0, pi_accp_dt_int = 20102008, _ret0 = 0), line 442 in "holding_wrapper_consolidation.cpp"
[5] sale_valid(p_btch_no = ???) (optimized), at 0x100330b3c (line ~4797) in "PSLS116.c"
[6] main(argc = ???, argv = ???) (optimized), at 0x1002a85ec (line ~489) in "PSLM116.c"


Code at line 2526 in "dm_c_pt001_prty.cpp" (translated out of PC file) is as below.

sqlcxt((void **)0, &sqlctx, &sqlstm, &sqlfpn);

I tried printing all four parameter values to this function in DBX, result as below:

1. (dbx) print (void **)0
(void **) 0 = (nil)

2. (dbx) print *&sqlctx
sqlctx = 19556451U

3. (dbx) print *&sqlstm
sqlstm = {
sqlvsn = 10U
arrsiz = 35U
iters = 1U
offset = 384U
selerr = 1U
sqlety = 256U
occurs = 0
cud = 0x1012b0028
sqlest = 0x101307e78 ""
stmt = 0x10103628e "select pt001_name ,pt001_addr_ln1 ,pt001_addr_ln2 ,pt001_addr_ln3 ,pt001_addr_ln4 ,pt001_assmd_addr_invstr_id ,pt001_pin ,pt001_city ,pt001_tlka ,pt001_dstrct ,pt001_state ,pt001_cntry ,TO_CHAR(pt001_jnng_dt,'YYYYMMDD') ,pt001_cmmctn_lang ,pt001_cmmctn_lang_cd ,pt001_prty_status ,pt001_prty_status_cd ,pt001_spl_ctgry ,pt001_spl_ctgry_cd ,pt001_prvlgd_ctgry ,pt001_prvlgd_ctgry_cd ,pt001_invstr_ctgry ,pt001_invstr_ctgry_cd ,pt001_cnsldt_to_invstr_id ,pt001_ctgry_indctr ,pt001_ctgry_indctr_cd ,pt001_poa_regn_l" ...
sqladtp = 0x1012affe0
sqltdsp = 0x1012b0018
sqphsv = 0xffffffff7ffd2310
sqphsl = 0xffffffff7ffd2428
sqphss = 0xffffffff7ffd24b4
sqpind = 0xffffffff7ffd2540
sqpins = 0xffffffff7ffd2658
sqparm = 0xffffffff7ffd26e4
sqparc = 0xffffffff7ffd2770
sqpadto = 0xffffffff7ffd2888
sqptdso = 0xffffffff7ffd28ce
sqhstv = (0xffffffff7ffd2ad4, 0xffffffff7ffd2aa4, 0xffffffff7ffd2a72, 0xffffffff7ffd2a40, 0xffffffff7ffd2a0e, 0xffffffff7ffd2a00, 0xffffffff7ffd29f0, 0xffffffff7ffd29e8, 0xffffffff7ffd29e0, 0xffffffff7ffd29d8, 0xffffffff7ffd29d0, 0xffffffff7ffd29c8, 0xffffffff7ffd29ba, 0xffffffff7ffd29b4, 0xffffffff7ffd29ac, 0xffffffff7ffd29a4, 0xffffffff7ffd29a0, 0xffffffff7ffd2998, 0xffffffff7ffd2990, 0xffffffff7ffd2988, 0xffffffff7ffd2984, 0xffffffff7ffd297c, 0xffffffff7ffd2978, 0xffffffff7ffd2968, 0xffffffff7ffd2960, 0xffffffff7ffd295c, 0xffffffff7ffd2954, 0xffffffff7ffd294c, 0xffffffff7ffd2944, 0xffffffff7ffd2934, 0xffffffff7ffd292c, 0xffffffff7ffd2b28, (nil), 0x101422db0, 0x1014119f8)
sqhstl = (83U, 48U, 48U, 48U, 48U, 8U, 13U, 4U, 4U, 4U, 4U, 4U, 11U, 4U, 4U, 4U, 4U, 4U, 4U, 4U, 4U, 4U, 4U, 8U, 4U, 4U, 4U, 4U, 4U, 13U, 4U, 8U, 0, 0, 1U)
sqhsts = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
sqindv = ((nil), 0xffffffff7ffd2aa2, 0xffffffff7ffd2a70, 0xffffffff7ffd2a3e, 0xffffffff7ffd2a0c, 0xffffffff7ffd29fe, 0xffffffff7ffd29ee, 0xffffffff7ffd29e6, 0xffffffff7ffd29de, 0xffffffff7ffd29d6, 0xffffffff7ffd29ce, 0xffffffff7ffd29c6, 0xffffffff7ffd29b8, 0xffffffff7ffd29b2, 0xffffffff7ffd29aa, (nil), 0xffffffff7ffd299e, 0xffffffff7ffd2996, 0xffffffff7ffd298e, (nil), 0xffffffff7ffd2982, (nil), 0xffffffff7ffd2976, 0xffffffff7ffd2966, (nil), 0xffffffff7ffd295a, 0xffffffff7ffd2952, 0xffffffff7ffd294a, 0xffffffff7ffd2942, 0xffffffff7ffd2932, (nil), (nil), 0x101330260, 0x1014a01d0, 0x10149fff0)
sqinds = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 1)
sqharm = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20017776U, 1U, 0)
sqharc = (0xffffffff7ffd1fb1, 0x100dedccc, 0x10149f898, (nil), 0x100000000, 0x1014a0207, 0x1014a0200, 0x1014a0200, 0xffffffff7ffd299f, 0x1014a0208, 0x1, 0x1014a01c0, 0x1014a01a0, 0x1014a01d0, 0x28, 0xb, 0x101317270, 0x1014a0308, 0x1014a02e0, 0x28, 0x101317270, 0x1014a02d8, 0x10149fef0, 0x100000000, 0xffffffff7ffd2a30, 0xffffffff7d55eabc, 0x140d48, 0xffffffff7d5c69ec, 0xffffffff7ffd2091, 0x100dedccc, 0x10149f738, 0x8, 0x1014a0200, 0x8, 0x8)
sqadto = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1U, 330U)
sqtdso = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30880U, 0, 0)
}

4. (dbx) print *&sqlfpn
sqlfpn = {
fillen = 18U
filnam = "dm_c_pt001_prty.pc"
}


Kindly note, I am using 64 bit compilation flags and lib archives to create my bnary file.

Please suggest some solution, as I am stuck since long time. Sad

Previous Topic: Pro*C Compilation Error
Next Topic: How can I compile simple PRO*C code in Linux
Goto Forum:
  


Current Time: Fri Dec 27 04:20:53 CST 2024