Forwarding to tools-compilers at opensolaris.org
-------- Original Message -------- From: Ray Fung <[email protected]> Subject: [tools-discuss] profiling SUN CC code: Assertion failed: tsd == old_tsd Date: Wed, 28 Oct 2009 10:50:38 -0700 (PDT) To: tools-discuss at opensolaris.org 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: [b]t at 4 (l at 4) terminated by signal ABRT (Abort) 0xfe9caa58: __lwp_kill+0x0008: bcc,a,pt %icc,__lwp_kill+0x18 ! 0xfe9caa68 (dbx) where current thread: t at 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 at 1 a l at 1 ?() LWP suspended in __lwp_wait() t at 2 a l at 2 prof_thread_fn() LWP suspended in __pollsys() t at 3 a l at 3 prof_thread_fn() sleep on 0xf3030 in __lwp_park() o> t at 4 a l at 4 prof_thread_fn() signal SIGABRT in __lwp_kill() t at 5 a l at 5 prof_thread_fn() sleep on 0x2bf2e8 in __lwp_park() t at 6 b l at 6 _tibrvEvm_IOThread() LWP suspended in __pollsys() t at 7 b l at 7 _tibrvEvm_TimerThread() sleep on 0x3b8178 in __lwp_park() t at 8 b l at 8 _tibrvEvm_TimerLeapThread() LWP suspended in __pollsys() t at 9 b l at 9 prof_thread_fn() sleep on 0x3b8198 in __lwp_park() t at 10 b l at 10 prof_thread_fn() sleep on 0x2cac80 in __lwp_park() t at 11 a l at 11 comn__sig_catcher_thread() LWP suspended in _read() t at 12 a l at 12 rman__thread() sleep on 0x475838 in __lwp_park() t at 13 a l at 13 rman__thread() sleep on 0x475838 in __lwp_park() t at 14 a l at 14 rman__thread() sleep on 0x475838 in __lwp_park() t at 15 a l at 15 sybnet__async_poll() LWP suspended in __pollsys() (dbx) [/b] -- This message posted from opensolaris.org _______________________________________________ tools-discuss mailing list tools-discuss at opensolaris.org
