Open
Bug 87054
Opened 24 years ago
Updated 3 years ago
pthreads and boehm problem on non-(i386 and glibc) system
Categories
(NSPR :: NSPR, defect, P3)
Tracking
(Not tracked)
NEW
People
(Reporter: johnv, Unassigned)
References
Details
Attachments
(3 files, 2 obsolete files)
1.38 KB,
patch
|
Details | Diff | Splinter Review | |
695 bytes,
patch
|
Details | Diff | Splinter Review | |
533 bytes,
patch
|
Details | Diff | Splinter Review |
mozilla/nsprpub/pr/src/pthreads/ptthread.c uses GetStackTop more liberally than
it implements it.
#if defined(GC_LEAK_DETECTOR) && (__GLIBC__ >= 2) && defined(__i386__)
...
static void* GetStackTop()
{
...
}
#endif
#if defined(GC_LEAK_DETECTOR)
ts->stackTop = GetStackTop();
...
#endif
Reporter | ||
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
If you want to use the Boehm GC leak detector on your
platform, you must define the GetStackTop() function
for your platform.
Updated•24 years ago
|
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Updated•24 years ago
|
Priority: -- → P3
Target Milestone: --- → 4.2
Comment 3•22 years ago
|
||
This is a first cut (eg I need to test properly) at a GetStackTop() IRIX. I've
made some assumptions and really need to test them.
Attachment #39474 -
Attachment is obsolete: true
Comment 4•22 years ago
|
||
Added myself to cc-list
Comment 5•22 years ago
|
||
Attachment #127026 -
Attachment is obsolete: true
Comment 6•22 years ago
|
||
The only problem with this is related to which compiler is used. eg:
% /usr/local/gcc-2.95.3/bin/gcc -v
Reading specs from
/usr/local/gcc-2.95.3/lib/gcc-lib/mips-sgi-irix6.5/2.95.3/specs
gcc version 2.95.3 20010315 (release)
% /usr/local/gcc-2.95.3/bin/gcc -o stacktrace stack.c
test_stacktrace.c -lexc
% ./stacktrace
__exc_unwind: Error: pc(0x100013d8) not in any .debug_frame table
0x000000000001 <unknown function>
% /usr/local/gcc-2.95.3/bin/gcc -g -o stacktrace stack.c
test_stacktrace.c -lexc
% ./stacktrace
0x0000100014bc backtrace
0x000010001504 cfunc
0x00001000154c bfunc
0x00001000159c afunc
0x000010001290 main
% gcc -v
Reading specs from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/specs
Configured with: ../configure --prefix=/usr/freeware
--enable-version-specific-runtime-libs --disable-shared
--enable-threads --enable-haifa
Thread model: single
gcc version 3.0.4
% gcc -o stacktrace stack.c test_stacktrace.c -lexc
% ./stacktrace
__exc_unwind: Error: pc(0x10001498) not in any .debug_frame table
% gcc -g -o stacktrace stack.c test_stacktrace.c -lexc
% ./stacktrace
0x000010001578 backtrace
0x0000100015c0 cfunc
0x000010001608 bfunc
0x000010001658 afunc
0x000010001320 main
% cc -version
MIPSpro Compilers: Version 7.3.1.2m
% cc -o stacktrace stack.c test_stacktrace.c -lexc
stack.c:
test_stacktrace.c:
% ./stacktrace
0x000010000f94 backtrace
0x000010000fd4 cfunc
0x000010001014 bfunc
0x00001000105c afunc
0x000010000e50 main
% cc -g -o stacktrace stack.c test_stacktrace.c -lexc
stack.c:
test_stacktrace.c:
% ./stacktrace
0x000010000fb4 backtrace
0x000010000ff4 cfunc
0x000010001034 bfunc
0x00001000107c afunc
0x000010000e70 main
% cc -Ofast -o stacktrace stack.c test_stacktrace.c -lexc
stack.c:
test_stacktrace.c:
% ./stacktrace
0x000010001688 backtrace
0x0000100010e0 main
gcc on IRIX does not support -rdynamic. So, its of limited use with gcc. Of
course MipsPro works fine, even at high levels of optimisation.
Comment 7•22 years ago
|
||
Comment 8•22 years ago
|
||
Updated•19 years ago
|
QA Contact: larryh → nspr
Comment 9•18 years ago
|
||
The target milestone is already released. Resetting target milestone.
Target Milestone: 4.2 → ---
![]() |
||
Comment 10•17 years ago
|
||
Closing old IRIX bugs.
Comment 11•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.
Assignee: wtc → nobody
Status: ASSIGNED → NEW
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•