🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #2359

linux inf funcall fails

#2359
From: Golubev I. N.
Date: Fri, 05 Apr 2002 17:40
26 lines
2014 bytes
Version: 5.1.1
Host: i686-pc-linux-gnu, kernel 2.2.19, glibc 2.2.4

Every call of a function in an inferior process fails.  Just before
printing `program no longer exists' the state of gdb looks like this.

ecs->ws = {kind = TARGET_WAITKIND_SIGNALLED, value = {integer = 11, 
    sig = TARGET_SIGNAL_SEGV, related_pid = 11, 
    execd_pathname = 0xb <Address 0xb out of bounds>, syscall_id = 11}}

#0  handle_inferior_event (ecs=0xbfffef30) at ../../gdb-5.1.1/gdb/infrun.c:1588
#1  0x0808b2a6 in wait_for_inferior () at ../../gdb-5.1.1/gdb/infrun.c:1264
#2  0x0808b0c2 in proceed (addr=3221223836, siggnal=TARGET_SIGNAL_0, step=0)
    at ../../gdb-5.1.1/gdb/infrun.c:1060
#3  0x080892e3 in run_stack_dummy (addr=3221223836, buffer=0xbffff070 "ᅵu")
    at ../../gdb-5.1.1/gdb/infcmd.c:911
#4  0x08074a9b in hand_function_call (function=0x84ee798, nargs=1, 
    args=0xbffff294) at ../../gdb-5.1.1/gdb/valops.c:1661
#5  0x08071186 in evaluate_subexp_standard (expect_type=0x0, exp=0x82d1600, 

Constructing function calls manually (using `set va', 'j', and `b
<where function should return>') works.

Since many other features of gdb work normally, I am able to retrieve
further information about gdb state while trying to call function in
an inferior process.  Will do so on request.
Technical Details
Message-ID: <02553cade17116-gin@mo.msk.ru>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-hub.siol.net!zur.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!bug-gdb

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f5053,a9bd0f8825f1821c,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 2002-04-05 09:40:11 PST
x-uunet-gateway: mr1.ash.ops.us.uu.net from bug-gdb to gnu.gdb.bug; Fri, 5 Apr 2002 17:40:10 GMT
Message-ID: <02553cade17116-gin@mo.msk.ru>
From: "Golubev I. N." <gin@mo.msk.ru>
Subject: linux inf funcall fails
Approved: bug-gdb-request@mail.gnu.org
Date: Fri, 5 Apr 2002 17:40:10 GMT
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-hub.siol.net!zur.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!bug-gdb
Sender: bug-gdb-request@mail.gnu.org
Lines: 26