loading issue on Cstd for C++?
807575Jun 19 2003 — edited Jun 20 2003Hi,
I have similar problem. I use Forte Developer 7 C++ compiler and Cstd library, and run multi-threading program on mult-processor machine. The same program runs 10% of time of stoping loading, i.e. not completely initialized. I suspected some dead lock within Cstd. Here is the stopped stack:
----------------- lwp# 1 / thread# 1 --------------------
fed9bee0 lwp_mutex_lock (feac5560)
fea9d004 schedlock (feabe000, 16cac, fece0598, 0, 0, 1) + 24
feaa7394 tdbsync_obj_deregister (ffbedf60, feabe000, 0, 0, 0, 0) + 44
fea9adf8 mutex_destroy (ffbedf60, 0, ffffffff, ffffffff, 13e34, 2be08) + 1c
fe9bb058 __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___I__getRep6MII_pnH__rwstdM__string_ref4Ccn0B_n0C____ (0, 2be08, 1, 240, 2be30, 0) + 21c
fe9b7708 __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Hreplace6MIIpkcIII_pc_ (2b3c0, 0, 0, fecaa966, 2aea8, 0) + 354
fe9b5214 __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mpkc_r1_ (2b3c0, fecaa966, 8c8, 0, 2aea8, 2b3c0) + 188
fec3c71c __1cDstdGlocaleEinit6F_v_ (0, fecc4688, 10, fecbd774, fecc467c, 1) + e0
fec326fc __1cDstdNbasic_istream4Ccn0ALchar_traits4Cc___2t6Mn0AIios_baseJEmptyCtor__v_ (fecc3130, b14, fecbfc40, fecbfc4c, fecbd774, 800) + 88
fec31734 __SLIP.INIT_A (800, c40, fed1bb48, fecbd774, 8c064, c00) + 30
fec32970 __1cU__STATIC_CONSTRUCTOR6F_v_ (fec30088, b60, fead4a50, fecbd774, 8d730, 800) + 4
fec43c30 _init (0, 2b0e8, 1, ff3e6694, 2cc88, ff3bc1dc) + 1e0
ff3bc1e4 call_init (fe9e1904, 200000, ff3e6214, ff3e6694, fe9e1908, fe9e1904) + 180
ff3c5f5c elf_bndr (feb0b6ec, 194, ff2b1ab8, ff3e6694, 0, 1) + 3b8
ff3b2a84 elf_rtbndr (fec3233c, 0, 0, 0, 0, 0) + 10
fecbe41c ???????? (0, 0, 0, 0, 0, 0)
fec3233c __SUNW_init_iostreams (fe9c388c, 0, fedbc5b8, fed1bb48, 0, 0) + 4
fead6084 __1cH__CimplKcplus_init6F_v_ (fecc36dc, fec32338, 2a708, 4, 13acc, 0) + 80
fe9c388c _init (0, 2b0e8, 1, ff3e6694, 2cc88, ff3bc1dc) + c8
ff3bc1e4 call_init (fe9e170c, 200000, ff3e6214, ff3e6694, fe9e1724, fe9e1720) + 180
ff3bbadc setup (ff3e6694, fe9e170c, ff3e6000, ff3e60c8, ff3a0218, ff3e6160) + e5c
ff3c6fd4 _setup (48, 1cfb, 1cfb, b00, ffffffff, ffffffff) + 388
ff3b2a48 rtboot (0, 0, 0, 0, 0, 0) + 88
00000000 ???????? (0, 0, 0, 0, 0, 0)
----------------- lwp# 2 / thread# 2 --------------------
fed9b8f4 signotifywait ()
fea9ed4c _dynamiclwps (feabe000, 59, 0, 0, ffbee79c, 4) + 1c
feaa2028 thr_yield (0, 0, 0, 0, 0, 0) + 8c
----------------- lwp# 3 --------------------------------
fed99498 door (0, 0, 0, 0, fe995d10, 4)
feaa6b9c scdoor_func (0, 0, 0, 0, 0, 0) + 54
----------------- lwp# 4 --------------------------------
fed9bee0 lwp_mutex_lock (feac5560)
fea9d004 schedlock (feabe000, 0, 0, 0, 0, 0) + 24
fea9b070 mutexadaptive_lock (feac98ec, 4c00, 1000, fffeffff, 1, 4d58) + 90
fea9ae78 cmutexlock (feaee400, feabe000, 0, fead4ebc, 0, 0) + 70
fead4ebc exregister (feaea0d8, fffedb38, 14c40, feaee400, feae9ad8, fffee09c) + 30
fead7b10 _init (0, fe983d70, 1, ff3e6694, 2cc88, ff3bc1dc) + 94
ff3bc1e4 call_init (fe9e18bc, 200000, ff3e6214, ff3e6694, fe9e18c0, fe9e18bc) + 180
ff3c5f5c elf_bndr (fead0f54, 40, ff2b1e98, ff3e6694, 0, 5) + 3b8
ff3b2a84 elf_rtbndr (fed9c778, 1, 0, 0, 0, 0) + 10
0002a708 ???????? (fedbc598, 178e0, 0, feabe000, 2ccd8, 1)
fed9c778 _init (0, fe983d70, 1, ff3e6694, 2cc88, ff3bc1dc) + 2c
ff3bc1e4 call_init (fe9e17e4, 200000, ff3e6214, ff3e6694, fe9e17e8, fe9e17e4) + 180
ff3c5f5c elf_bndr (fed06b58, 4, ff2b10cc, ff3e6694, 0, 2) + 3b8
ff3b2a84 elf_rtbndr (fea99098, feac9d00, 0, fea9b2b4, 0, 0) + 10
feabe434 ???????? (feac5550, feac5560, feabedb8, 0, 0, 0)
fea99098 _age (fe983d70, feabeda4, feabe000, 3, feabe000, 1) + 74
fea9a72c lwpstart (fe983d70, 0, 4000, fe80fc2c, 0, 0) + 18
feaa2028 thr_yield (0, 0, 0, 0, 0, 0) + 8c
-------------------------- thread# 3 --------------------
fea9ddb4 reapwait (feac29e8, 20528, 0, feabe000, 0, 0) + 38
fea9db0c _reaper (feabee38, feac4748, feac29e8, feabee10, 1, fe400000) + 38
feaab6ec threadstart (0, 0, 0, 0, 0, 0) + 40
Any expert understand this, please contact me at ymiao@mlp.com? Thanks in advance.