Thread (1 message) 1 message, 1 author, 2004-05-20

Re: ELDK 3.0 C++ Problem

From: Wolfgang Denk <hidden>
Date: 2004-05-20 16:14:16

In message [ref] you wrote:
quoted
What makes you think so? I bet a case of beer that the 'new" returned
just fine, and that your program segfaulted in memset() instead.
Lost the beer, the code is wrong but the segfaulted is in the "new"
(checked with a printf before the memset & also with gdb eh eh)
No. The new returns just fine in my test. The segfault happens in the
memset() call when you write to memory that you don't own.  I  tested
it.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
The Buddha, the Godhead, resides quite as comfortably in the circuits
of a digital computer or the gears of a cycle transmission as he does
at the top of a mountain or in the petals of a flower.
            - R.  Pirsig, "Zen and the Art of Motorcycle Maintenance"

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help