Report forwarded to debian-bugs-dist@lists.debian.org, Vincent Renardias <vincent@debian.org>:
Bug#58322; Package gdb.
debian-bugs-dist@lists.debian.orgVincent Renardias
Subject: Bug#58322: can't "p environ"
Reply-To: shaslam , 58322@bugs.debian.org
Resent-From: shaslam
Orignal-Sender: Steve Haslam
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Vincent Renardias
Resent-Date: Thu, 17 Feb 2000 17:33:00 GMT
Resent-Message-ID:
Resent-Sender: owner@bugs.debian.org
X-Debian-PR-Message: report 58322
X-Debian-PR-Package: gdb
X-Debian-PR-Keywords:
X-Loop: owner@bugs.debian.org
Received: via spool by bugs@bugs.debian.org id=B.9508080429341
(code B ref -1); Thu, 17 Feb 2000 17:33:00 GMT
From: shaslam
To: Debian Bug Tracking System
X-Reportbug-Version: 0.48
X-Mailer: reportbug 0.48
Date: Thu, 17 Feb 2000 17:20:31 +0000
Message-Id:
Sender: Steve Haslam
Package: gdb
Version: 4.18.19990928-1
Severity: normal
I wrote envstuff.c:
#include
#include
extern char **environ;
int main(int argc, char **argv, char **env)
{
printf("argc=%d argv=%p env=%p environ=%p\n", argc, argv, env, environ);
exit(0);
}
and compiled it (gcc -ggdb envstuff.c -o envstuff)
It produces this output:
bash$ ./envstuff
argc=1 argv=0xbffff8d4 env=0xbffff8dc environ=0xbffff8dc
but when in gdb, I get:
(gdb) b main
Breakpoint 1 at 0x8048486: file envstuff.c, line 8.
(gdb) r
Starting program: /usr/home/shaslam/perltest/envstuff
Breakpoint 1, main (argc=1, argv=0xbffff8c4, env=0xbffff8cc) at envstuff.c:8
8 printf("argc=%d argv=%p env=%p environ=%p\n", argc, argv, env,
environ);
(gdb) p env
$1 = (char **) 0xbffff8cc
(gdb) p environ
$2 = (char **) 0x0
?
bash$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000116 (Debian GNU/Linux)
SRH
-- System Information
Debian Release: 2.2
Architecture: i386
Kernel: Linux hell 2.2.14 #1-DellLatCPi Thu Jan 6 20:47:36 GMT 2000 i686
Versions of packages gdb depends on:
ii libc6 2.1.3-2 GNU C Library: Shared libraries an
ii libncurses4 4.2-8 Shared libraries for terminal hand
Acknowledgement sent to shaslam <shaslam@excitecorp.com>:
New Bug report received and forwarded. Copy sent to Vincent Renardias <vincent@debian.org>.
-t
From: owner@bugs.debian.org (Debian Bug Tracking System)
To: shaslam
Subject: Bug#58322: Acknowledgement (can't "p environ")
Message-ID:
In-Reply-To:
References:
X-Debian-PR-Message: ack 58322
Thank you for the problem report you have sent regarding Debian.
This is an automatically generated reply, to let you know your message has
been received. It is being forwarded to the developers mailing list for
their attention; they will reply in due course.
Your message has been sent to the package maintainer(s):
Vincent Renardias
If you wish to submit further information on your problem, please send
it to 58322@bugs.debian.org (and *not* to
bugs@bugs.debian.org).
Please do not reply to the address at the top of this message,
unless you wish to report a problem with the Bug-tracking system.
Darren Benham
(administrator, Debian Bugs database)
Received: (at submit) by bugs.debian.org; 17 Feb 2000 17:20:42 +0000
Received: (qmail 9273 invoked from network); 17 Feb 2000 17:20:41 -0000
Received: from vertex.london.excite.com (194.216.238.11)
by master.debian.org with SMTP; 17 Feb 2000 17:20:41 -0000
Received: from dhcp-84.london.excite.com (hell.london.excite.com) [194.216.238.84] (mail)
by vertex.london.excite.com with esmtp (Exim 3.12 #1 (Debian))
id 12LUbQ-000396-00; Thu, 17 Feb 2000 17:20:32 +0000
Received: from shaslam by hell.london.excite.com with local (Exim 3.12 #1 (Debian))
id 12LUbP-0000ES-00; Thu, 17 Feb 2000 17:20:31 +0000
From: shaslam
To: Debian Bug Tracking System
Subject: can't "p environ"
X-Reportbug-Version: 0.48
X-Mailer: reportbug 0.48
Date: Thu, 17 Feb 2000 17:20:31 +0000
Message-Id:
Sender: Steve Haslam
Package: gdb
Version: 4.18.19990928-1
Severity: normal
I wrote envstuff.c:
#include
#include
extern char **environ;
int main(int argc, char **argv, char **env)
{
printf("argc=%d argv=%p env=%p environ=%p\n", argc, argv, env, environ);
exit(0);
}
and compiled it (gcc -ggdb envstuff.c -o envstuff)
It produces this output:
bash$ ./envstuff
argc=1 argv=0xbffff8d4 env=0xbffff8dc environ=0xbffff8dc
but when in gdb, I get:
(gdb) b main
Breakpoint 1 at 0x8048486: file envstuff.c, line 8.
(gdb) r
Starting program: /usr/home/shaslam/perltest/envstuff
Breakpoint 1, main (argc=1, argv=0xbffff8c4, env=0xbffff8cc) at envstuff.c:8
8 printf("argc=%d argv=%p env=%p environ=%p\n", argc, argv, env,
environ);
(gdb) p env
$1 = (char **) 0xbffff8cc
(gdb) p environ
$2 = (char **) 0x0
?
bash$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000116 (Debian GNU/Linux)
SRH
-- System Information
Debian Release: 2.2
Architecture: i386
Kernel: Linux hell 2.2.14 #1-DellLatCPi Thu Jan 6 20:47:36 GMT 2000 i686
Versions of packages gdb depends on:
ii libc6 2.1.3-2 GNU C Library: Shared libraries an
ii libncurses4 4.2-8 Shared libraries for terminal hand
Information forwarded to debian-bugs-dist@lists.debian.org, Daniel Jacobowitz <dan@debian.org>:
Bug#58322; Package gdb.
debian-bugs-dist@lists.debian.orgDaniel Jacobowitz
X-Loop: owner@bugs.debian.org
Subject: Bug#58322: Confirmed
Reply-To: Matthew Wilcox , 58322@bugs.debian.org
Resent-From: Matthew Wilcox
Original-Sender:
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Daniel Jacobowitz
Resent-Date: Sun, 11 Jul 2004 14:33:04 UTC
Resent-Message-ID:
Resent-Sender: owner@bugs.debian.org
X-Debian-PR-Message: report 58322
X-Debian-PR-Package: gdb
X-Debian-PR-Keywords:
Received: via spool by 58322-submit@bugs.debian.org id=B58322.108955552430425
(code B ref 58322); Sun, 11 Jul 2004 14:33:04 UTC
Received: (at 58322) by bugs.debian.org; 11 Jul 2004 14:18:44 +0000
Received: from parcelfarce.linux.theplanet.co.uk (www.linux.org.uk) [195.92.249.252] (93)
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1BjfAC-0007t8-00; Sun, 11 Jul 2004 07:18:44 -0700
Received: from willy by www.linux.org.uk with local (Exim 4.33)
id 1BjfAB-0002qS-96
for 58322@bugs.debian.org; Sun, 11 Jul 2004 15:18:43 +0100
Date: Sun, 11 Jul 2004 15:18:43 +0100
From: Matthew Wilcox
To: 58322@bugs.debian.org
Message-ID: <20040711141843.GD5889@parcelfarce.linux.theplanet.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4.1i
Sender:
Delivered-To: 58322@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-0.1 required=4.0 tests=BAYES_44 autolearn=no
version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
This bug still occurs with gdb 6.1-3.
--
"Next the statesmen will invent cheap lies, putting the blame upon
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince
himself that the war is just, and will thank God for the better sleep
he enjoys after this process of grotesque self-deception." -- Mark Twain
Acknowledgement sent to Matthew Wilcox <willy@debian.org>:
Extra info received and forwarded to list. Copy sent to Daniel Jacobowitz <dan@debian.org>.
-t
X-Loop: owner@bugs.debian.org
From: owner@bugs.debian.org (Debian Bug Tracking System)
To: Matthew Wilcox
Subject: Bug#58322: Info received (was Confirmed)
Message-ID:
In-Reply-To: <20040711141843.GD5889@parcelfarce.linux.theplanet.co.uk>
References: <20040711141843.GD5889@parcelfarce.linux.theplanet.co.uk>
Precedence: bulk
X-Debian-PR-Message: ack-info 58322
X-Debian-PR-Package: gdb
X-Debian-PR-Keywords:
Thank you for the additional information you have supplied regarding
this problem report. It has been forwarded to the package maintainer(s)
and to other interested parties to accompany the original report.
Your message has been sent to the package maintainer(s):
Daniel Jacobowitz
If you wish to continue to submit further information on your problem,
please send it to 58322@bugs.debian.org, as before.
Please do not reply to the address at the top of this message,
unless you wish to report a problem with the Bug-tracking system.
Debian bug tracking system administrator
(administrator, Debian Bugs database)
Received: (at 58322) by bugs.debian.org; 11 Jul 2004 14:18:44 +0000
From willy@www.linux.org.uk Sun Jul 11 07:18:44 2004
Return-path:
Received: from parcelfarce.linux.theplanet.co.uk (www.linux.org.uk) [195.92.249.252] (93)
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1BjfAC-0007t8-00; Sun, 11 Jul 2004 07:18:44 -0700
Received: from willy by www.linux.org.uk with local (Exim 4.33)
id 1BjfAB-0002qS-96
for 58322@bugs.debian.org; Sun, 11 Jul 2004 15:18:43 +0100
Date: Sun, 11 Jul 2004 15:18:43 +0100
From: Matthew Wilcox
To: 58322@bugs.debian.org
Subject: Confirmed
Message-ID: <20040711141843.GD5889@parcelfarce.linux.theplanet.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4.1i
Sender:
Delivered-To: 58322@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-0.1 required=4.0 tests=BAYES_44 autolearn=no
version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
This bug still occurs with gdb 6.1-3.
--
"Next the statesmen will invent cheap lies, putting the blame upon
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince
himself that the war is just, and will thank God for the better sleep
he enjoys after this process of grotesque self-deception." -- Mark Twain
Information stored:
Bug#58322; Package gdb.
-t
X-Loop: owner@bugs.debian.org
Subject: Bug#58322: Cause of environ error
Reply-To: Daniel Jacobowitz , 58322-quiet@bugs.debian.org
Resent-From: Daniel Jacobowitz
Resent-To:
Resent-Date: Sat, 29 Sep 2007 21:57:16 +0000
Resent-Message-ID:
Resent-Sender: owner@bugs.debian.org
X-Debian-PR-Message: report 58322
X-Debian-PR-Package: gdb
X-Debian-PR-Keywords:
X-Debian-PR-Source: gdb
Received: via spool by 58322-quiet@bugs.debian.org id=Q58322.119110282124357
(code Q ref 58322); Sat, 29 Sep 2007 21:57:16 +0000
Received: (at 58322-quiet) by bugs.debian.org; 29 Sep 2007 21:53:41 +0000
X-Spam-Checker-Version: SpamAssassin 3.1.4-bugs.debian.org_2005_01_02
(2006-07-26) on rietz.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=4.0 tests=BAYES_00,FORGED_RCVD_HELO,
IMPRONONCABLE_2 autolearn=no version=3.1.4-bugs.debian.org_2005_01_02
Received: from nan.false.org ([208.75.86.248] ident=postfix)
by rietz.debian.org with esmtp (Exim 4.50)
id 1IbkDR-0005Ec-Sk
for 58322-quiet@bugs.debian.org; Sat, 29 Sep 2007 21:51:13 +0000
Received: from nan.false.org (localhost [127.0.0.1])
by nan.false.org (Postfix) with ESMTP id 6FBEC9832B
for <58322-quiet@bugs.debian.org>; Sat, 29 Sep 2007 21:51:13 +0000 (GMT)
Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55])
by nan.false.org (Postfix) with ESMTP id 5133898109
for <58322-quiet@bugs.debian.org>; Sat, 29 Sep 2007 21:51:13 +0000 (GMT)
Received: from drow by caradoc.them.org with local (Exim 4.67)
(envelope-from )
id 1IbkDQ-0003Sh-DZ
for 58322-quiet@bugs.debian.org; Sat, 29 Sep 2007 17:51:12 -0400
Date: Sat, 29 Sep 2007 17:51:12 -0400
From: Daniel Jacobowitz
To: 58322-quiet@bugs.debian.org
Message-ID: <20070929215112.GE12013@caradoc.them.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.15 (2007-04-09)
(gdb) info var environ
Non-debugging symbols:
0x00000000006009a8 __environ@@GLIBC_2.2.5
0x00000000006009a8 environ@@GLIBC_2.2.5
0x00002aaaab01ca08 __environ
0x00002aaaab01ca08 _environ
GDB does not realize that the symbol in the application's dynbss
section is supposed to be the same as the symbol in the shared
libc.so.6. There's a copy in the executable because of the R_386_COPY
relocation, necessary to ensure all shared libraries use the same copy.
--
Daniel Jacobowitz
CodeSourcery
Acknowledgement sent to Daniel Jacobowitz <drow@false.org>:
Extra info received and filed, but not forwarded.
-t
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.417 (Entity 5.417)
Content-Type: text/plain; charset=utf-8
X-Loop: owner@bugs.debian.org
From: owner@bugs.debian.org (Debian Bug Tracking System)
To: Daniel Jacobowitz
Subject: Bug#58322: Info received and FILED only (was Cause of environ error)
Message-Id:
References: <20070929215112.GE12013@caradoc.them.org>
X-Debian-PR-Message: ack-info-quiet 58322
X-Debian-PR-Package: gdb
X-Debian-PR-Source: gdb
Reply-To: 58322-maintonly@bugs.debian.org
Thank you for the additional information you have supplied regarding
this problem report. It has NOT been forwarded to the package
maintainers, but will accompany the original report in the Bug
tracking system. Please ensure that you yourself have sent a copy of
the additional information to any relevant developers or mailing lists.
If you wish to continue to submit further information on this problem,
please send it to 58322-quiet@bugs.debian.org, as before.
Please do not reply to the address at the top of this message,
unless you wish to report a problem with the Bug-tracking system.
Debian bug tracking system administrator
(administrator, Debian Bugs database)
Received: (at 58322-quiet) by bugs.debian.org; 29 Sep 2007 21:53:41 +0000
From drow@false.org Sat Sep 29 21:53:41 2007
X-Spam-Checker-Version: SpamAssassin 3.1.4-bugs.debian.org_2005_01_02
(2006-07-26) on rietz.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=4.0 tests=BAYES_00,FORGED_RCVD_HELO,
IMPRONONCABLE_2 autolearn=no version=3.1.4-bugs.debian.org_2005_01_02
Return-path:
Received: from nan.false.org ([208.75.86.248] ident=postfix)
by rietz.debian.org with esmtp (Exim 4.50)
id 1IbkDR-0005Ec-Sk
for 58322-quiet@bugs.debian.org; Sat, 29 Sep 2007 21:51:13 +0000
Received: from nan.false.org (localhost [127.0.0.1])
by nan.false.org (Postfix) with ESMTP id 6FBEC9832B
for <58322-quiet@bugs.debian.org>; Sat, 29 Sep 2007 21:51:13 +0000 (GMT)
Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55])
by nan.false.org (Postfix) with ESMTP id 5133898109
for <58322-quiet@bugs.debian.org>; Sat, 29 Sep 2007 21:51:13 +0000 (GMT)
Received: from drow by caradoc.them.org with local (Exim 4.67)
(envelope-from )
id 1IbkDQ-0003Sh-DZ
for 58322-quiet@bugs.debian.org; Sat, 29 Sep 2007 17:51:12 -0400
Date: Sat, 29 Sep 2007 17:51:12 -0400
From: Daniel Jacobowitz
To: 58322-quiet@bugs.debian.org
Subject: Cause of environ error
Message-ID: <20070929215112.GE12013@caradoc.them.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.15 (2007-04-09)
(gdb) info var environ
Non-debugging symbols:
0x00000000006009a8 __environ@@GLIBC_2.2.5
0x00000000006009a8 environ@@GLIBC_2.2.5
0x00002aaaab01ca08 __environ
0x00002aaaab01ca08 _environ
GDB does not realize that the symbol in the application's dynbss
section is supposed to be the same as the symbol in the shared
libc.so.6. There's a copy in the executable because of the R_386_COPY
relocation, necessary to ensure all shared libraries use the same copy.
--
Daniel Jacobowitz
CodeSourcery
Information forwarded to debian-bugs-dist@lists.debian.org, Daniel Jacobowitz <dan@debian.org>:
Bug#58322; Package gdb.
debian-bugs-dist@lists.debian.orgDaniel Jacobowitz
X-Loop: owner@bugs.debian.org
Subject: Bug#58322: Cats attack, kill student
Reply-To: Sarracini , 58322@bugs.debian.org
Resent-From: Sarracini
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Daniel Jacobowitz
Resent-Date: Tue, 29 Jul 2008 08:33:10 +0000
Resent-Message-ID:
Resent-Sender: owner@bugs.debian.org
X-Debian-PR-Message: followup 58322
X-Debian-PR-Package: gdb
X-Debian-PR-Keywords:
X-Debian-PR-Source: gdb
Received: via spool by 58322-submit@bugs.debian.org id=B58322.121732016920428
(code B ref 58322); Tue, 29 Jul 2008 08:33:10 +0000
Received: (at 58322) by bugs.debian.org; 29 Jul 2008 08:29:29 +0000
X-Spam-Checker-Version: SpamAssassin 3.1.4-bugs.debian.org_2005_01_02
(2006-07-26) on rietz.debian.org
X-Spam-Level: ***
X-Spam-Status: No, score=3.0 required=4.0 tests=BAYES_60,OPERAMAIL
autolearn=no version=3.1.4-bugs.debian.org_2005_01_02
Received: from [119.0.36.50] (helo=[119.0.42.173])
by rietz.debian.org with esmtp (Exim 4.63)
(envelope-from )
id 1KNkaF-0004zO-Mq
for 58322@bugs.debian.org; Tue, 29 Jul 2008 08:29:29 +0000
To: 58322@bugs.debian.org
From: Sarracini
Content-Type: text/plain; format=flowed; delsp=yes; charset=ISO-8859-1
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Date: Tue, 29 Jul 2008 16:29:26 +0800
Message-ID:
User-Agent: Opera Mail/9.50 (Win32)
Get your windfall today
http://thelittles.fr/default.html
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Acknowledgement sent to Sarracini <Nott-usafni@suse.dobroe.net>:
Extra info received and forwarded to list. Copy sent to Daniel Jacobowitz <dan@debian.org>.
-t
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.420 (Entity 5.420)
Content-Type: text/plain; charset=utf-8
X-Loop: owner@bugs.debian.org
From: owner@bugs.debian.org (Debian Bug Tracking System)
To: Sarracini
Subject: Bug#58322: Info received (Cats attack, kill student)
Message-ID:
References:
X-Debian-PR-Message: ack-info 58322
X-Debian-PR-Package: gdb
X-Debian-PR-Source: gdb
Reply-To: 58322@bugs.debian.org
Thank you for the additional information you have supplied regarding
this Bug report.
This is an automatically generated reply to let you know your message
has been received.
Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.
Your message has been sent to the package maintainer(s):
Daniel Jacobowitz
If you wish to submit further information on this problem, please
send it to 58322@bugs.debian.org, as before.
Please do not send mail to owner@bugs.debian.org unless you wish
to report a problem with the Bug-tracking system.
--=20
58322: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D58322
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
Received: (at 58322) by bugs.debian.org; 29 Jul 2008 08:29:29 +0000
From Nott-usafni@suse.dobroe.net Tue Jul 29 08:29:29 2008
X-Spam-Checker-Version: SpamAssassin 3.1.4-bugs.debian.org_2005_01_02
(2006-07-26) on rietz.debian.org
X-Spam-Level: ***
X-Spam-Status: No, score=3.0 required=4.0 tests=BAYES_60,OPERAMAIL
autolearn=no version=3.1.4-bugs.debian.org_2005_01_02
Return-path:
Received: from [119.0.36.50] (helo=[119.0.42.173])
by rietz.debian.org with esmtp (Exim 4.63)
(envelope-from )
id 1KNkaF-0004zO-Mq
for 58322@bugs.debian.org; Tue, 29 Jul 2008 08:29:29 +0000
To: 58322@bugs.debian.org
Subject: Cats attack, kill student
From: Sarracini
Content-Type: text/plain; format=flowed; delsp=yes; charset=ISO-8859-1
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Date: Tue, 29 Jul 2008 16:29:26 +0800
Message-ID:
User-Agent: Opera Mail/9.50 (Win32)
Get your windfall today
http://thelittles.fr/default.html
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/