List Info

Thread: Created: (STDCXX-580) purify reports memory leaked by strstream example




Created: (STDCXX-580) purify reports memory leaked by strstream example
country flaguser name
United States
2007-10-04 19:00:53
purify reports memory leaked by strstream example 
--------------------------------------------------

                 Key: STDCXX-580
                 URL: http
s://issues.apache.org/jira/browse/STDCXX-580
             Project: C++ Standard Library
          Issue Type: Improvement
          Components: Examples
            Reporter: Travis Vitek
            Assignee: Travis Vitek
            Priority: Minor
             Fix For: 4.2.1
         Attachments: stdcxx-580.patch

The example calls inout.str() which calls freeze(). If the
streams streambuf if frozen, the destructor is not allowed
to free the memory [D.7.1.2 p8]. 

****  Purify instrumented ./strstream (pid 21780)  ****
Purify: Searching for all memory leaks...

Memory leaked: 128 bytes (1.15%); potentially leaked: 0
bytes (0%)

MLK: 128 bytes leaked at 0x40027788
  * This memory was allocated from:
	malloc         [rtlib.o]
	__nWa__FuL     [libCsup_v2.2]
	operator new[](unsigned long) [rtlib.o]
	std::strstreambuf::setbuf(char *,long) [strstream.cpp:294]
	std::strstreambuf::overflow(int) [strstream.cpp:85]
	std::basic_streambuf<char,std::char_traits<char>&g
t;:sputn
(const char *,long) [streambuf.cc:144]


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Updated: (STDCXX-580) purify reports memory leaked by strstream example
country flaguser name
United States
2007-10-05 17:29:50
     [ https://issues.apache.org/jira/browse/STDCXX-580?page=com.
atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Travis Vitek updated STDCXX-580:
--------------------------------

    Attachment: stdcxx-580.patch

> purify reports memory leaked by strstream example 
> --------------------------------------------------
>
>                 Key: STDCXX-580
>                 URL: http
s://issues.apache.org/jira/browse/STDCXX-580
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Examples
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>            Priority: Minor
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-580.patch
>
>
> The example calls inout.str() which calls freeze(). If
the streams streambuf if frozen, the destructor is not
allowed to free the memory [D.7.1.2 p8]. 
> ****  Purify instrumented ./strstream (pid 21780) 
****
> Purify: Searching for all memory leaks...
> Memory leaked: 128 bytes (1.15%); potentially leaked: 0
bytes (0%)
> MLK: 128 bytes leaked at 0x40027788
>   * This memory was allocated from:
> 	malloc         [rtlib.o]
> 	__nWa__FuL     [libCsup_v2.2]
> 	operator new[](unsigned long) [rtlib.o]
> 	std::strstreambuf::setbuf(char *,long)
[strstream.cpp:294]
> 	std::strstreambuf::overflow(int) [strstream.cpp:85]
>
	std::basic_streambuf<char,std::char_traits<char>&g
t;:sputn
(const char *,long) [streambuf.cc:144]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Updated: (STDCXX-580) purify reports memory leaked by strstream example
country flaguser name
United States
2007-10-05 17:29:50
     [ https://issues.apache.org/jira/browse/STDCXX-580?page=com.
atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Travis Vitek updated STDCXX-580:
--------------------------------

    Attachment:     (was: stdcxx-580.patch)

> purify reports memory leaked by strstream example 
> --------------------------------------------------
>
>                 Key: STDCXX-580
>                 URL: http
s://issues.apache.org/jira/browse/STDCXX-580
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Examples
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>            Priority: Minor
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-580.patch
>
>
> The example calls inout.str() which calls freeze(). If
the streams streambuf if frozen, the destructor is not
allowed to free the memory [D.7.1.2 p8]. 
> ****  Purify instrumented ./strstream (pid 21780) 
****
> Purify: Searching for all memory leaks...
> Memory leaked: 128 bytes (1.15%); potentially leaked: 0
bytes (0%)
> MLK: 128 bytes leaked at 0x40027788
>   * This memory was allocated from:
> 	malloc         [rtlib.o]
> 	__nWa__FuL     [libCsup_v2.2]
> 	operator new[](unsigned long) [rtlib.o]
> 	std::strstreambuf::setbuf(char *,long)
[strstream.cpp:294]
> 	std::strstreambuf::overflow(int) [strstream.cpp:85]
>
	std::basic_streambuf<char,std::char_traits<char>&g
t;:sputn
(const char *,long) [streambuf.cc:144]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Updated: (STDCXX-580) purify reports memory leaked by strstream example
country flaguser name
United States
2007-10-05 17:36:50
     [ https://issues.apache.org/jira/browse/STDCXX-580?page=com.
atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Travis Vitek updated STDCXX-580:
--------------------------------

    Attachment:     (was: stdcxx-580.patch)

> purify reports memory leaked by strstream example 
> --------------------------------------------------
>
>                 Key: STDCXX-580
>                 URL: http
s://issues.apache.org/jira/browse/STDCXX-580
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Examples
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>            Priority: Minor
>             Fix For: 4.2.1
>
>
> The example calls inout.str() which calls freeze(). If
the streams streambuf if frozen, the destructor is not
allowed to free the memory [D.7.1.2 p8]. 
> ****  Purify instrumented ./strstream (pid 21780) 
****
> Purify: Searching for all memory leaks...
> Memory leaked: 128 bytes (1.15%); potentially leaked: 0
bytes (0%)
> MLK: 128 bytes leaked at 0x40027788
>   * This memory was allocated from:
> 	malloc         [rtlib.o]
> 	__nWa__FuL     [libCsup_v2.2]
> 	operator new[](unsigned long) [rtlib.o]
> 	std::strstreambuf::setbuf(char *,long)
[strstream.cpp:294]
> 	std::strstreambuf::overflow(int) [strstream.cpp:85]
>
	std::basic_streambuf<char,std::char_traits<char>&g
t;:sputn
(const char *,long) [streambuf.cc:144]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Updated: (STDCXX-580) purify reports memory leaked by strstream example
country flaguser name
United States
2007-10-05 17:38:50
     [ https://issues.apache.org/jira/browse/STDCXX-580?page=com.
atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Travis Vitek updated STDCXX-580:
--------------------------------

    Attachment: stdcxx-580.patch

> purify reports memory leaked by strstream example 
> --------------------------------------------------
>
>                 Key: STDCXX-580
>                 URL: http
s://issues.apache.org/jira/browse/STDCXX-580
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Examples
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>            Priority: Minor
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-580.patch
>
>
> The example calls inout.str() which calls freeze(). If
the streams streambuf if frozen, the destructor is not
allowed to free the memory [D.7.1.2 p8]. 
> ****  Purify instrumented ./strstream (pid 21780) 
****
> Purify: Searching for all memory leaks...
> Memory leaked: 128 bytes (1.15%); potentially leaked: 0
bytes (0%)
> MLK: 128 bytes leaked at 0x40027788
>   * This memory was allocated from:
> 	malloc         [rtlib.o]
> 	__nWa__FuL     [libCsup_v2.2]
> 	operator new[](unsigned long) [rtlib.o]
> 	std::strstreambuf::setbuf(char *,long)
[strstream.cpp:294]
> 	std::strstreambuf::overflow(int) [strstream.cpp:85]
>
	std::basic_streambuf<char,std::char_traits<char>&g
t;:sputn
(const char *,long) [streambuf.cc:144]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Issue Comment Edited: (STDCXX-580) purify reports memory leaked by strstream example
country flaguser name
United States
2007-10-05 17:38:50
    [ https://issues.apache.org/jira/browse/
STDCXX-580?page=com.atlassian.jira.plugin.system.issuetabpan
els:comment-tabpanel#action_12532551 ] 

vitek edited comment on STDCXX-580 at 10/5/07 3:38 PM:
------------------------------------------------------------
--

2007-10-04  Travis Vitek  <vitekroguewave.com>

	STDCXX-580
	* strstream.cpp (main): Unfreeze streambuf so destructor
	will deallocate memory.


      was (Author: vitek):
    2007-10-04  Travis Vitek  <vitekroguewave.com>

	STDCXX-579
	* strstream.cpp (main): Unfreeze streambuf so destructor
	will deallocate memory.

  
> purify reports memory leaked by strstream example 
> --------------------------------------------------
>
>                 Key: STDCXX-580
>                 URL: http
s://issues.apache.org/jira/browse/STDCXX-580
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Examples
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>            Priority: Minor
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-580.patch
>
>
> The example calls inout.str() which calls freeze(). If
the streams streambuf if frozen, the destructor is not
allowed to free the memory [D.7.1.2 p8]. 
> ****  Purify instrumented ./strstream (pid 21780) 
****
> Purify: Searching for all memory leaks...
> Memory leaked: 128 bytes (1.15%); potentially leaked: 0
bytes (0%)
> MLK: 128 bytes leaked at 0x40027788
>   * This memory was allocated from:
> 	malloc         [rtlib.o]
> 	__nWa__FuL     [libCsup_v2.2]
> 	operator new[](unsigned long) [rtlib.o]
> 	std::strstreambuf::setbuf(char *,long)
[strstream.cpp:294]
> 	std::strstreambuf::overflow(int) [strstream.cpp:85]
>
	std::basic_streambuf<char,std::char_traits<char>&g
t;:sputn
(const char *,long) [streambuf.cc:144]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Updated: (STDCXX-580) purify reports memory leaked by strstream example
country flaguser name
United States
2007-10-05 17:42:50
     [ https://issues.apache.org/jira/browse/STDCXX-580?page=com.
atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Travis Vitek updated STDCXX-580:
--------------------------------

    Attachment: stdcxx-580.patch

> purify reports memory leaked by strstream example 
> --------------------------------------------------
>
>                 Key: STDCXX-580
>                 URL: http
s://issues.apache.org/jira/browse/STDCXX-580
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Examples
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>            Priority: Minor
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-580.patch
>
>
> The example calls inout.str() which calls freeze(). If
the streams streambuf if frozen, the destructor is not
allowed to free the memory [D.7.1.2 p8]. 
> ****  Purify instrumented ./strstream (pid 21780) 
****
> Purify: Searching for all memory leaks...
> Memory leaked: 128 bytes (1.15%); potentially leaked: 0
bytes (0%)
> MLK: 128 bytes leaked at 0x40027788
>   * This memory was allocated from:
> 	malloc         [rtlib.o]
> 	__nWa__FuL     [libCsup_v2.2]
> 	operator new[](unsigned long) [rtlib.o]
> 	std::strstreambuf::setbuf(char *,long)
[strstream.cpp:294]
> 	std::strstreambuf::overflow(int) [strstream.cpp:85]
>
	std::basic_streambuf<char,std::char_traits<char>&g
t;:sputn
(const char *,long) [streambuf.cc:144]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Updated: (STDCXX-580) purify reports memory leaked by strstream example
country flaguser name
United States
2007-10-05 17:42:50
     [ https://issues.apache.org/jira/browse/STDCXX-580?page=com.
atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Travis Vitek updated STDCXX-580:
--------------------------------

    Attachment:     (was: stdcxx-580.patch)

> purify reports memory leaked by strstream example 
> --------------------------------------------------
>
>                 Key: STDCXX-580
>                 URL: http
s://issues.apache.org/jira/browse/STDCXX-580
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Examples
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>            Priority: Minor
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-580.patch
>
>
> The example calls inout.str() which calls freeze(). If
the streams streambuf if frozen, the destructor is not
allowed to free the memory [D.7.1.2 p8]. 
> ****  Purify instrumented ./strstream (pid 21780) 
****
> Purify: Searching for all memory leaks...
> Memory leaked: 128 bytes (1.15%); potentially leaked: 0
bytes (0%)
> MLK: 128 bytes leaked at 0x40027788
>   * This memory was allocated from:
> 	malloc         [rtlib.o]
> 	__nWa__FuL     [libCsup_v2.2]
> 	operator new[](unsigned long) [rtlib.o]
> 	std::strstreambuf::setbuf(char *,long)
[strstream.cpp:294]
> 	std::strstreambuf::overflow(int) [strstream.cpp:85]
>
	std::basic_streambuf<char,std::char_traits<char>&g
t;:sputn
(const char *,long) [streambuf.cc:144]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Updated: (STDCXX-580) purify reports memory leaked by strstream example
country flaguser name
United States
2007-10-08 17:44:51
     [ https://issues.apache.org/jira/browse/STDCXX-580?page=com.
atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Travis Vitek updated STDCXX-580:
--------------------------------

    Attachment: stdcxx-580.patch

> purify reports memory leaked by strstream example 
> --------------------------------------------------
>
>                 Key: STDCXX-580
>                 URL: http
s://issues.apache.org/jira/browse/STDCXX-580
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Examples
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>            Priority: Minor
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-580.patch
>
>
> The example calls inout.str() which calls freeze(). If
the streams streambuf if frozen, the destructor is not
allowed to free the memory [D.7.1.2 p8]. 
> ****  Purify instrumented ./strstream (pid 21780) 
****
> Purify: Searching for all memory leaks...
> Memory leaked: 128 bytes (1.15%); potentially leaked: 0
bytes (0%)
> MLK: 128 bytes leaked at 0x40027788
>   * This memory was allocated from:
> 	malloc         [rtlib.o]
> 	__nWa__FuL     [libCsup_v2.2]
> 	operator new[](unsigned long) [rtlib.o]
> 	std::strstreambuf::setbuf(char *,long)
[strstream.cpp:294]
> 	std::strstreambuf::overflow(int) [strstream.cpp:85]
>
	std::basic_streambuf<char,std::char_traits<char>&g
t;:sputn
(const char *,long) [streambuf.cc:144]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Updated: (STDCXX-580) purify reports memory leaked by strstream example
country flaguser name
United States
2007-10-08 17:44:51
     [ https://issues.apache.org/jira/browse/STDCXX-580?page=com.
atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Travis Vitek updated STDCXX-580:
--------------------------------

    Attachment:     (was: stdcxx-580.patch)

> purify reports memory leaked by strstream example 
> --------------------------------------------------
>
>                 Key: STDCXX-580
>                 URL: http
s://issues.apache.org/jira/browse/STDCXX-580
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Examples
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>            Priority: Minor
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-580.patch
>
>
> The example calls inout.str() which calls freeze(). If
the streams streambuf if frozen, the destructor is not
allowed to free the memory [D.7.1.2 p8]. 
> ****  Purify instrumented ./strstream (pid 21780) 
****
> Purify: Searching for all memory leaks...
> Memory leaked: 128 bytes (1.15%); potentially leaked: 0
bytes (0%)
> MLK: 128 bytes leaked at 0x40027788
>   * This memory was allocated from:
> 	malloc         [rtlib.o]
> 	__nWa__FuL     [libCsup_v2.2]
> 	operator new[](unsigned long) [rtlib.o]
> 	std::strstreambuf::setbuf(char *,long)
[strstream.cpp:294]
> 	std::strstreambuf::overflow(int) [strstream.cpp:85]
>
	std::basic_streambuf<char,std::char_traits<char>&g
t;:sputn
(const char *,long) [streambuf.cc:144]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


[1-10] [11]

about | contact  Other archives ( Real Estate discussion Medical topics )