🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42447

[Q] GDB shows I am in func 'minbrk' after SIGSEGV. What and why?

#42447
From: Nils Hulth
Date: Mon, 11 Dec 1995 00:00
39 lines
2172 bytes
Hi,

When I run my (g++)-program I get the following response:

-------------------------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
0x400b7002 in minbrk ()
(gdb) where
#0  0x400b7002 in minbrk ()
#1  0x40116404 in minbrk ()
#2  0x8015f00 in minbrk ()
#3  0x8015fc0 in minbrk ()
Cannot access memory at address 0x1.
(gdb)
-------------------------------------------------------------------------------

I have no function called minbrk, but I do want to know what it is in
my source that causes the segmentation fault. Anyone that know whats going on?

I use the following versions of g++ and gdb:
-------------------------------------------------------------------------------
158.[~/xjobb/prog/src].> gdb -v
GDB 4.14 (i486-slackware-linux), Copyright 1995 Free Software Foundation, Inc.
159.[~/xjobb/prog/src].> g++ -v
 gcc -v
Reading specs from /usr/lib/gcc-lib/i586-*-linux/2.7.1/specs
gcc version 2.7.1
-------------------------------------------------------------------------------

Thank you, (Please send a copy of an answer to nisse@ibg.uu.se)

/Nils Hulth

###############################################################################
# NAME: Nils Hulth                      E-MAIL: nisse@ibg.uu.se               #
# PHONE: +46 (0)18 290026               MOBILE: +46 (0)70 7408913             #
# TELEFAX: +46 (0)18 290026             WWW: http://www.ibg.uu.se/~nisse      #
# ADDRESS: Kantorsgatan 46, S-754 24 Uppsala, Sweden                          #
###############################################################################
Technical Details
Message-ID: <Pine.LNX.3.91.951211182232.8720B-100000@genetica.teknikum.uu.se>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,5c57f9f4c99c67d,start
X-Google-Attributes: gid11318c,public
From: Nils Hulth <nisse@ibg.uu.se>
Subject: [Q] GDB shows I am in func 'minbrk' after SIGSEGV. What and why?
Date: 1995/12/11
Message-ID: <Pine.LNX.3.91.951211182232.8720B-100000@genetica.teknikum.uu.se>
X-Deja-AN: 121609982
organization: Uppsala University
x-sender: nisse@genetica.teknikum.uu.se
content-type: TEXT/PLAIN; charset=US-ASCII
mime-version: 1.0
newsgroups: gnu.gcc.help