tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: using backtrace(3) in libpthread



On Apr 26,  3:41am, manu%netbsd.org@localhost (Emmanuel Dreyfus) wrote:
-- Subject: Re: using backtrace(3) in libpthread

| On Fri, Apr 25, 2014 at 09:33:37PM -0400, Christos Zoulas wrote:
| > |   syslog_r(LOG_ERR, &sd, "test");
| > Can you try syslog_ss()?
| 
| Backporting it was easy. Now I can log, and that let me trace it to 
| the place where it deadlocks: backtrace_symbols() 
| 
| Given that one performs malloc() I guess I should not be surprised.
| Is it possible to get the symbols from there?

It does one realloc. Why don't you make it use statically allocated space.

christos


Home | Main Index | Thread Index | Old Index