Closed Bug 13742 Opened 25 years ago Closed 25 years ago

MLK: 4 bytes leaked- www.visa.com - nsDNSService::Lookup()

Categories

(Core :: Networking, defect, P3)

Sun
Solaris
defect

Tracking

()

VERIFIED WONTFIX

People

(Reporter: bruce, Assigned: gordon)

References

Details

(Keywords: memory-leak)

Solaris 2.6, gcc 2.7.2.3. Build from September 13, 1999. Opened viewer, loaded initial page, went to www.visa.com, selected the 'back to school' specials link, quit. MLK: 4 bytes leaked at 0x33b988 * This memory was allocated from: malloc [rtlib.o] strdup [libc.so.1] __rpc_getconfip [rpc_generic.c] gethostbyname_r [gethostbyname_r.c] PR_GetHostByName [prnetdb.c:309] nsDNSService::Lookup(nsISupports*,const char*,nsIDNSListener*,nsIRequest**) [nsDnsService.cpp:172] nsSocketTransport::doResolveHost() [nsSocketTransport.cpp:555] nsSocketTransport::Process(short) [nsSocketTransport.cpp:450] nsSocketTransportService::ProcessWorkQ() [nsSocketTransportService.cpp:243] nsSocketTransportService::Run() [nsSocketTransportService.cpp:448] nsThread::Main(void*) [nsThread.cpp:102] _pt_root [ptthread.c:158] _thread_start [libthread.so.1]
Assignee: gagan → gordon
Target Milestone: M12
Summary: MLK: nsDNSService::Lookup() → MLK: 4 bytes leaked- www.visa.com - nsDNSService::Lookup()
Blocks: 14516
Status: NEW → ASSIGNED
Target Milestone: M12 → M13
This can wait until after m12.
Bulk move of all Necko (to be deleted component) bugs to new Networking component.
Target Milestone: M13 → M15
Post beta.
It looks like gethostbyname leaks 4 bytes on Solaris. We need to figure out if this leak occurs once per invocation, or once for the life of the app.
Keywords: mlk
I think this is more an issue for NSPR. Wan-Teh, can you see this gets to the right place?
Assignee: gordon → wtc
Status: ASSIGNED → NEW
I know about this memory leak in Solaris's gethostbyname_r(). We can send a bug report to Sun. We can call gethostbyname() in other short-lived processes (e.g., dns-helper). I would not worry about it.
I asked a Sun engineer to file a Solaris bug report for me. I suspect that this is a known bug. I do not plan to work around this bug in NSPR. Reassigned bug to gordon.
Assignee: wtc → gordon
We suspect that the Solaris gethostbyname_r() is allocating some thread specific storage, and that it doesn't leak everytime it is called. Sun has been made aware of the problem, so I'm marking this WONTFIX.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
Thanks. No objection from me.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.