Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 249272 Details for
Bug 335476
net-wireless/wimax-1.5 fails to build
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
patch
wimax-1.5-r1.patch (text/plain), 2.74 KB, created by
Roman Sergeev
on 2010-10-02 09:26:57 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Roman Sergeev
Created:
2010-10-02 09:26:57 UTC
Size:
2.74 KB
patch
obsolete
>--- InfraStack/OSDependent/Linux/InfraStackModules/Skeletons/AppSrv/GenericConsole.c 2010-10-02 12:58:01.000000000 +0400 >+++ InfraStack/OSDependent/Linux/InfraStackModules/Skeletons/AppSrv/GenericConsole.c 2010-10-02 13:05:29.000000000 +0400 >@@ -37,7 +37,6 @@ POSSIBILITY OF SUCH DAMAGE. > #include <signal.h> > #include <execinfo.h> > >-/* get REG_EIP from ucontext.h */ > #define __USE_GNU > #include <ucontext.h> > >@@ -101,7 +100,6 @@ void print_callstack_to_file(int sig, si > void *trace[16]; > char **messages = (char **)NULL; > int i, trace_size = 0; >- ucontext_t *uc = (ucontext_t *)secret; > FILE *fp; > BOOL res; > // printf("Came here %d\n", __LINE__); >@@ -112,6 +110,15 @@ void print_callstack_to_file(int sig, si > // printf("Came here %d\n", __LINE__); > return; > } >+ trace[0] = NULL; >+ trace_size = backtrace(trace, sizeof(trace)/sizeof(trace[0])); >+ if (trace_size == 0) >+ syslog(LOG_WARNING, "Couldn't get backtrace information\n"); >+ /* overwrite sigaction with caller's address */ >+ trace[1] = (void *) trace[0]; >+ messages[0] = NULL; >+ messages = backtrace_symbols(trace, trace_size); >+ > res = GetConfig_LogPath(gcLogFilePathName, MAX_FILENAME_LEN); > if (res == FALSE) { > // printf("Came here %d\n", __LINE__); >@@ -120,7 +127,7 @@ void print_callstack_to_file(int sig, si > strcat(gcLogFilePathName, "/callstack.log"); > if(OSAL_fopen(&fp, gcLogFilePathName, "a", 0) < 0) { > syslog(LOG_ERR, "Got signal %d, faulty address is %p, from %p", >- sig, info->si_addr, uc->uc_mcontext.gregs[REG_EIP]); >+ sig, info->si_addr, trace[0]); > syslog(LOG_ERR, "Could not open a file %s to log call stack"); > // printf("Came here %d\n", __LINE__); > return; >@@ -139,14 +146,9 @@ void print_callstack_to_file(int sig, si > fprintf(fp, "==================================================================================\n\n"); > > fprintf(fp, "Got signal %d, faulty address is %p, from %p\n", >- sig, info->si_addr, uc->uc_mcontext.gregs[REG_EIP]); >- // printf("Came here %d\n", __LINE__); >- >- trace_size = backtrace(trace, 16); >- /* overwrite sigaction with caller's address */ >- trace[1] = (void *) uc->uc_mcontext.gregs[REG_EIP]; >- >- messages = backtrace_symbols(trace, trace_size); >+ sig, info->si_addr, trace[0]); >+ // printf("Came here %d\n", __LINE__); >+ > /* skip first stack frame (points here) */ > fprintf(fp,"[bt] Execution path: \n"); > for (i=1; i<trace_size; ++i) { >@@ -158,7 +160,7 @@ void print_callstack_to_file(int sig, si > void console_signal_handler(int sig, siginfo_t *info, void *secret) > { > // signals are captured >- static no_of_signals; >+ static int no_of_signals; > if(no_of_signals >= 1) { > // printf("Second ctrl +c recieived \n"); > exit(0);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 335476
:
245561
|
245562
| 249272 |
249274
|
249275
|
250499