Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning Linux Programming, 4th Edition ISBN 978-0-470-14762-7
This is the forum to discuss the Wrox book Beginning Linux Programming, 4th Edition by Neil Matthew, Richard Stones; ISBN: 9780470147627
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Linux Programming, 4th Edition ISBN 978-0-470-14762-7 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 2nd, 2012, 07:36 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default possible new Errata

hi there,

in chapter 7 (Data management):
the author talks about dynamic memory allocation in C using the stander C library function malloc(),

he says in page 260 that:

Quote:
Eventually, when the application exhausts both the physical memory and the swap space, or when the
maximum stack size is exceeded
, the kernel finally refuses the request for further memory and may preemptively terminate the program.
now according to my knowledge malloc() allocate memory on the heap not the stack
 
Old October 23rd, 2012, 01:36 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Location: Alexandria, Egypt
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think every thing is okey, when you use malloc() function, you allocate memory on the heap. But also the stack size may be exceeded. Because the stack is used to dynamically allocate the local variables used in functions so it may be exceeded. Nothing wrong, I don't think you can find any error in understanding the content of the book by probability 0 %.
 
Old June 16th, 2018, 10:48 AM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2018
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Very good point , why the authors have not replied yet?

Good observation, and the authors should have replied by now for such an important issue!
Quote:
Originally Posted by mostafaxx View Post
hi there,

in chapter 7 (Data management):
the author talks about dynamic memory allocation in C using the stander C library function malloc(),

he says in page 260 that:



now according to my knowledge malloc() allocate memory on the heap not the stack




Similar Threads
Thread Thread Starter Forum Replies Last Post
Errata Eddierocks BOOK: JavaScript Programmer's Reference 14 March 31st, 2011 12:54 PM
A new errata Cookie Chen C# 1 November 12th, 2007 05:12 AM
Errata vidyar_rajan Beginning PHP 0 August 31st, 2006 05:37 AM
Errata DaveSussman BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 November 6th, 2005 07:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.