hi, appologies if this is the wrong place for this. I have a large inhouse C++ application that runs on Solaris 5.10 and is built using SUN Studio 11 for sparc.
We have specified the -xpg flag for compilation of the object code and also for linking so that I can look at the runtime profile via gprof/ However, running the application we get: [b]mcount: pcsample(0x118310, 0x20000) failed: Illegal seek mcount: pcsample(0x1a5938, 0x20000) failed: Illegal seek mcount: pcsample(0x2d82f8, 0x20000) failed: Illegal seek[/b] And on shutdown of the process, we get: [b]Assertion failed: tsd == old_tsd, file ../src/mon.c, line 2770[/b] Can anyone tell me what is wrong here? The stack of the core file shows: [...@4 (l...@4) terminated by signal ABRT (Abort) 0xfe9caa58: __lwp_kill+0x0008: bcc,a,pt %icc,__lwp_kill+0x18 ! 0xfe9caa68 (dbx) where current thread: t...@4 =>[1] __lwp_kill(0x0, 0x6, 0xff3f42a8, 0x52a, 0xfdffba90, 0xfeb91454), at 0xfe9caa58 [2] raise(0x6, 0x0, 0xfea430d8, 0xfe9aa378, 0xffffffff, 0x6), at 0xfe965a5c [3] abort(0xfdffbba8, 0x1, 0xff3b860c, 0xfcb78, 0xfea413d8, 0x0), at 0xfe94194c [4] __assert(0x228a4, 0x228b4, 0xad2, 0xc12, 0xfc894, 0xff3b860c), at 0xfe941b88 [5] prof_tsd_delete(0xfe130010, 0x2cb4c8, 0x7a, 0x1e8, 0xc1f107a, 0x34030), at 0x1601c [6] tsd_exit(0xfe8c1200, 0xfe130010, 0x15e90, 0x0, 0xfe8c1200, 0xfe8c1314), at 0xfe9c6988 [7] _thrp_exit(0x0, 0x1c00, 0xff3cb694, 0xfea3e3c0, 0xfea43800, 0xfe8c1200), at 0xfe9c3508 [8] _t_cancel(0xfee8a810, 0xfdffbfa0, 0x0, 0xfe8c1200, 0xfe8c1200, 0xfea3e3c0), at 0xfe9c9b40 [9] _thr_exit_common(0x0, 0x0, 0x0, 0x0, 0xfe8c1200, 0xfea3e3c0), at 0xfe9c38b4 (dbx) threads t...@1 a l...@1 ?() LWP suspended in __lwp_wait() t...@2 a l...@2 prof_thread_fn() LWP suspended in __pollsys() t...@3 a l...@3 prof_thread_fn() sleep on 0xf3030 in __lwp_park() o> t...@4 a l...@4 prof_thread_fn() signal SIGABRT in __lwp_kill() t...@5 a l...@5 prof_thread_fn() sleep on 0x2bf2e8 in __lwp_park() t...@6 b l...@6 _tibrvEvm_IOThread() LWP suspended in __pollsys() t...@7 b l...@7 _tibrvEvm_TimerThread() sleep on 0x3b8178 in __lwp_park() t...@8 b l...@8 _tibrvEvm_TimerLeapThread() LWP suspended in __pollsys() t...@9 b l...@9 prof_thread_fn() sleep on 0x3b8198 in __lwp_park() t...@10 b l...@10 prof_thread_fn() sleep on 0x2cac80 in __lwp_park() t...@11 a l...@11 comn__sig_catcher_thread() LWP suspended in _read() t...@12 a l...@12 rman__thread() sleep on 0x475838 in __lwp_park() t...@13 a l...@13 rman__thread() sleep on 0x475838 in __lwp_park() t...@14 a l...@14 rman__thread() sleep on 0x475838 in __lwp_park() t...@15 a l...@15 sybnet__async_poll() LWP suspended in __pollsys() (dbx) [/b] -- This message posted from opensolaris.org _______________________________________________ tools-discuss mailing list tools-discuss@opensolaris.org