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)

SGI
IRIX

Tracking

(Not tracked)

People

(Reporter: johnv, Unassigned)

References

Details

Attachments

(3 files, 2 obsolete files)

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
If you want to use the Boehm GC leak detector on your platform, you must define the GetStackTop() function for your platform.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P3
Target Milestone: --- → 4.2
Blocks: 73732
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
Added myself to cc-list
Attachment #127026 - Attachment is obsolete: true
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.
Depends on: 211667
QA Contact: larryh → nspr
The target milestone is already released. Resetting target milestone.
Target Milestone: 4.2 → ---
Closing old IRIX bugs.

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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: