Debian Bug report logs - #801665
bashdb: set0 and readc builtins do not build on non-linux

version graph

Package: src:bashdb; Maintainer for src:bashdb is (unknown);

Reported by: Nicholas Bamber <nicholas@periapt.co.uk>

Date: Tue, 13 Oct 2015 08:51:02 UTC

Severity: minor

Tags: help

Fixed in version 4.3.0.91+ds-4+rm

Done: Debian FTP Masters <ftpmaster@ftp-master.debian.org>

Bug is archived. No further changes may be made.

Forwarded to http://bit.ly/1k4ypfl

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, nicholas@periapt.co.uk, Oleksandr Moskalenko <malex@debian.org>:
Bug#801665; Package bashdb. (Tue, 13 Oct 2015 08:51:06 GMT) (full text, mbox, link).


Acknowledgement sent to Nicholas Bamber <nicholas@periapt.co.uk>:
New Bug report received and forwarded. Copy sent to nicholas@periapt.co.uk, Oleksandr Moskalenko <malex@debian.org>. (Tue, 13 Oct 2015 08:51:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Nicholas Bamber <nicholas@periapt.co.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bashdb: set0 and readc builtins do not build on non-linux
Date: Tue, 13 Oct 2015 09:48:49 +0100
Package: bashdb
Version: 4.3.0.91+ds-4
Severity: minor

Dear Maintainer,

bashdb 4.3.0.91+ds-4 only builds on mon-linux because we turn
off compiling set0 and readc. They compile but fail to load.

There are three potential sources of the problem:
1. The set0.c and readc.c code.
2. The headers supplied by the bash-builtins package
3. Some inadequacies on the non-linux platform.

So I ran this experiment that points to the issue being 1. It can be reproduced
using the followig steps:

cp /usr/share/doc/bash-builtins/examples/loadables/hello.c .
gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -I /usr/include/bash/ -I /usr/include/bash//include -I/usr/include/bash//builtins  -fPIC -DPIC -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -c -o hello-hello.o `test -f 'hello.c' || echo './'`hello.c 
gcc  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -o hello \
	-shared hello-hello.o  
enable -f ./hello hello
hello

This should print "hello world" and it works on both linux and kfreebsd. So by trisecting the 
difference between hello.c on the one hand and set0.c/readc.c on the other we should 
be able to locate here the issue is. 

Versions of packages bashdb depends on:
ii  bash          4.3-11+b1
ii  libc6         2.19-18+deb8u1
ii  libreadline6  6.3-8+b3
ii  python        2.7.9-1

bashdb recommends no packages.

bashdb suggests no packages.

-- no debconf information



Added tag(s) help. Request was from Nicholas Bamber <nicholas@periapt.co.uk> to control@bugs.debian.org. (Wed, 14 Oct 2015 11:00:04 GMT) (full text, mbox, link).


Bug reassigned from package 'bashdb' to 'src:bashdb'. Request was from Nicholas Bamber <nicholas@periapt.co.uk> to control@bugs.debian.org. (Wed, 14 Oct 2015 11:00:05 GMT) (full text, mbox, link).


No longer marked as found in versions bashdb/4.3.0.91+ds-4. Request was from Nicholas Bamber <nicholas@periapt.co.uk> to control@bugs.debian.org. (Wed, 14 Oct 2015 11:00:06 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Oleksandr Moskalenko <malex@debian.org>:
Bug#801665; Package src:bashdb. (Wed, 14 Oct 2015 11:09:05 GMT) (full text, mbox, link).


Acknowledgement sent to Nicholas Bamber <nicholas@periapt.co.uk>:
Extra info received and forwarded to list. Copy sent to Oleksandr Moskalenko <malex@debian.org>. (Wed, 14 Oct 2015 11:09:05 GMT) (full text, mbox, link).


Message #16 received at 801665@bugs.debian.org (full text, mbox, reply):

From: Nicholas Bamber <nicholas@periapt.co.uk>
To: 801665@bugs.debian.org, control@bugs.debian.org
Subject: further info
Date: Wed, 14 Oct 2015 11:59:27 +0100
tag 801665 +help
reassign 801665 src:bashdb
thanks
user debian-bsd@lists.debian.org
usertag 801665 kfreebsd
thanks


The error on Debian kfreebsd for set0 is as follows:

-/«BUILDDIR»/bashdb-4.3.0.91+ds/command/set_sub/dollar0.sh: line 23: 
enable: cannot open shared object 
/«BUILDDIR»/bashdb-4.3.0.91+ds/builtin/set0: 
/«BUILDDIR»/bashdb-4.3.0.91+ds/builtin/set0: undefined symbol: dollar_vars


The issue in set0 is the dollar_vars variable from variables.c

/* Some funky variables which are known about specially.  Here is where
   "$*", "$1", and all the cruft is kept. */
char *dollar_vars[10];


For readc it appears to be terminate_immediately from sig.c.

/* When non-zero, we call the terminating signal handler immediately. */
int terminate_immediately = 0;


So it seems that on non-linux platforms bash has difficulty loading the 
compiled builtins IF those builtins reference data defined in the bash 
binary itself.



Set Bug forwarded-to-address to 'http://bit.ly/1k4ypfl'. Request was from Nicholas Bamber <nicholas@periapt.co.uk> to control@bugs.debian.org. (Wed, 14 Oct 2015 12:57:16 GMT) (full text, mbox, link).


Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Sun, 10 Sep 2017 16:07:20 GMT) (full text, mbox, link).


Notification sent to Nicholas Bamber <nicholas@periapt.co.uk>:
Bug acknowledged by developer. (Sun, 10 Sep 2017 16:07:20 GMT) (full text, mbox, link).


Message #23 received at 801665-done@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 801665-done@bugs.debian.org,820142-done@bugs.debian.org,839332-done@bugs.debian.org,
Cc: bashdb@packages.debian.org, bashdb@packages.qa.debian.org
Subject: Bug#870992: Removed package(s) from unstable
Date: Sun, 10 Sep 2017 16:06:31 +0000
Version: 4.3.0.91+ds-4+rm

Dear submitter,

as the package bashdb has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/870992

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 09 Oct 2017 07:53:09 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Dec 6 06:22:50 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.