Bug#765070: Fwd: Re: [PKG-OpenRC-Debian] Bug#765070: openrc: [kfreebsd] segfault in loopsolver

2014-10-18 Thread Ritesh Raj Sarraf
Dmitry:

I believe Steven reproduced it with kFreeBSD 9.0.


 Forwarded Message 
Subject:Re: [PKG-OpenRC-Debian] Bug#765070: openrc: [kfreebsd]
segfault in loopsolver
Date:   Sat, 18 Oct 2014 15:56:37 +0400
From:   Dmitry Yu Okunev dyoku...@ut.mephi.ru
Reply-To:   OpenRC Debian Maintainers openrc-de...@lists.alioth.debian.org
Organization:   NRNU MEPhI
To: openrc-de...@lists.alioth.debian.org



Hello.

On 10/13/2014 03:08 PM, Steven Chamberlain wrote:
 The bug is triggerable on kfreebsd-amd64 with just `update-rc -u`.

Cannot repeat the bug. I've tried to run rc-update -u and compile
openrc on:

kFreeBSD CPU arch:  i386, amd64
Debian/kFreeBSD:7.3.0, 7.6.0
OpenRC: 0.12.4+20121230-9, 0.13.1-1

My way:
1. Installing Debian/kFreeBSD using ISOs from [1] in automatic mode.
2. Adding jessie in sources.list.
3. Installing openrc.
4. Running rc-update -u — ok.
5. Installing building dependencies with apt-get build-dep openrc and
apt-get install fakeroot
6. Downloading sources with apt-get source openrc.
7. Compiling with dpkg-buildpackage -rfakeroot — ok.
8. Repeating this for another version of CPU/kFreeBSD/OpenRC.

[1] http://mirror.mephi.ru/debian-cd/

How to reproduce the bug?

-- 
Best regards, Dmitry,
head of UNIX-tech department NRNU MEPhI,
tel. 8 (495) 788-56-99, ext. 8255




___
OpenRC-devel mailing list
openrc-de...@lists.alioth.debian.org
https://lists.alioth.debian.org/mailman/listinfo/openrc-devel



signature.asc
Description: OpenPGP digital signature


Bug#765070: [PKG-OpenRC-Debian] Fwd: Re: Bug#765070: openrc: [kfreebsd] segfault in loopsolver

2014-10-18 Thread Dmitry Yu Okunev
On 10/18/2014 06:01 PM, Ritesh Raj Sarraf wrote:
 Dmitry:
 
 I believe Steven reproduced it with kFreeBSD 9.0.

Sorry for my total idiocy, but what should I do to repeat the bug?

Debian/kFreeBSD 7.6.0 [1] uses FreeBSD kernel of version 9.0 already:

# uname -a
GNU/kFreeBSD debian 9.0-2-amd64 #0 Wed Jun  4 12:50:32 UTC 2014 x86_64
amd64 Intel(R) Core(TM) i5 CPU 650  @ 3.20GHz GNU/kFreeBSD

# dpkg -l | grep kfreebsd-image | awk '{print $2 $3}'
kfreebsd-image-9-amd64 9.0-10+deb70.7
kfreebsd-image-9.0-2-amd64 9.0-10+deb70.7

[1]
http://mirror.mephi.ru/debian-cd/7.6.0/kfreebsd-amd64/iso-cd/debian-7.6.0-kfreebsd-amd64-CD-1.iso


If kFreeBSD 9.0 means Debian/kFreeBSD 9 (jessie+1,
jessie+experimental+sid), I tried it as well (as 7.{3,6} [wheezy] and 8
[jessie]). No segfault on running rc-update -u or compiling anyway.

-- 
Best regards, Dmitry,
head of UNIX-tech department NRNU MEPhI,
tel. 8 (495) 788-56-99, ext. 8255



signature.asc
Description: OpenPGP digital signature


Bug#765070: Fwd: Re: [PKG-OpenRC-Debian] Bug#765070: openrc: [kfreebsd] segfault in loopsolver

2014-10-18 Thread Steven Chamberlain
On 19:31, Ritesh Raj Sarraf wrote:
 I believe Steven reproduced it with kFreeBSD 9.0.

No sorry, I should have mentioned in my bug report, I was using
kfreebsd 10.1 from jessie/sid.  I didn't imagine this was kernel-
specific.

But the affected code uses libkvm, so it could mean a kernel ABI break
somewhere, or some oissue with libkvm itself?

Coincidentally, netstat has a libkvm-related crash on kfreebsd-i386
10.1.

Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#765070: Fwd: Re: [PKG-OpenRC-Debian] Bug#765070: openrc: [kfreebsd] segfault in loopsolver

2014-10-18 Thread Ritesh Raj Sarraf
On Saturday 18 October 2014 08:09 PM, Steven Chamberlain wrote:
 On 19:31, Ritesh Raj Sarraf wrote:
  I believe Steven reproduced it with kFreeBSD 9.0.
 No sorry, I should have mentioned in my bug report, I was using
 kfreebsd 10.1 from jessie/sid.  I didn't imagine this was kernel-
 specific.
 
 But the affected code uses libkvm, so it could mean a kernel ABI break
 somewhere, or some oissue with libkvm itself?
 
 Coincidentally, netstat has a libkvm-related crash on kfreebsd-i386
 10.1.

Thanks Steven. In that case, can we downgrade the severity of this bug ?

-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System



signature.asc
Description: OpenPGP digital signature


Bug#765070: Fwd: Re: [PKG-OpenRC-Debian] Bug#765070: openrc: [kfreebsd] segfault in loopsolver

2014-10-18 Thread Steven Chamberlain
On 20:43, Ritesh Raj Sarraf wrote:
 Thanks Steven. In that case, can we downgrade the severity of this bug ?

Not really;  that is the kernel in sid/jessie, the one we plan to
release with.

But there's a possibility something is wrong in libkvm or kfreebsd and
we can reassign the bug in thet case.  I'd like to know exactly what
leads to this crash.

Thanks,
Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#765070: Fwd: Re: [PKG-OpenRC-Debian] Bug#765070: openrc: [kfreebsd] segfault in loopsolver

2014-10-18 Thread Ritesh Raj Sarraf
Thanks. Then can you please assign it to the appropriate package. This one
right now is RC for openrc, marking it's removal from testing in a couple
of days.

s3nt fr0m a $martph0ne, excuse typ0s
On Oct 18, 2014 9:14 PM, Steven Chamberlain ste...@pyro.eu.org wrote:

 On 20:43, Ritesh Raj Sarraf wrote:
  Thanks Steven. In that case, can we downgrade the severity of this bug ?

 Not really;  that is the kernel in sid/jessie, the one we plan to
 release with.

 But there's a possibility something is wrong in libkvm or kfreebsd and
 we can reassign the bug in thet case.  I'd like to know exactly what
 leads to this crash.

 Thanks,
 Regards,
 --
 Steven Chamberlain
 ste...@pyro.eu.org



Bug#765070: Fwd: Re: [PKG-OpenRC-Debian] Bug#765070: openrc: [kfreebsd] segfault in loopsolver

2014-10-18 Thread Steven Chamberlain
Ritesh Raj Sarraf wrote:
 Thanks. Then can you please assign it to the appropriate package. This one
 right now is RC for openrc, marking it's removal from testing in a couple
 of days.

It's not clear yet that this bug is anywhere other than in openrc.  It
does does crash (grave bug) on an up-to-date kfreebsd sid/jessie system.
The backtrace does implicate openrc's loopsolver:
https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=openrc.txt;att=1;bug=765070

Reverting the patch 0140-loopsolver-doubleprint-fix.patch, openrc
0.12.4+20131230-9 worked fine on the 10.1 kernel.

It's too soon to downgrade or reassign this bug.  I'll test again today
with the new upstream version 0.13.1-1.

Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#765070: Fwd: Re: [PKG-OpenRC-Debian] Bug#765070: openrc: [kfreebsd] segfault in loopsolver

2014-10-18 Thread Steven Chamberlain
FWIW libkvm is not being used any more.  The attached debdiff removes
the unnecessary link and build-dependency.

I'll reply back in a few hours after testing openrc 0.13.1-1 it on
kfreebsd 10.1.  I'm hopeful the crash bug was already fixed when the
libkvm-dependent code went away.

Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#765070: openrc: [kfreebsd] segfault in loopsolver

2014-10-18 Thread Steven Chamberlain
found 765070 openrc/0.13.1-1
thanks

Hi,

Bug is still present in this version.  I've attached a new backtrace
from running `rc-update -u`.

The bug is reproducible on kfreebsd-amd64 kernel versions 9.2 and 10.1
(jessie/sid), but not on 9.0 (wheezy).  I can't think why that might be.

libkvm can be ruled out, because I recompiled without it (as it was not
being used anyway) and the crash still happens.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 10.1-0-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Starting program: /root/openrc-0.13.1/debian/openrc/sbin/rc-update -u
 * Caching service dependencies ...
 * Found a solvable dependency loop: checkfs.sh p checkfs n mountall.sh p 
mountall u hwclock.sh a checkroot n checkfs.sh.

Program received signal SIGSEGV, Segmentation fault.
0x7fffdcdd in ?? ()
(gdb) bt full
#0  0x7fffdcdd in ?? ()
No symbol table info available.
#1  0x000800a5335b in rc_deptree_solve_loop (unap_matrix=0x7fffde60, 
service_id=4, svc_id2depinfo_bt=0x63d3c0, end_dep_num=26, 
flags=(RCDTFLAGS_LOOPSOLVER | RCDTFLAGS_LOOPSOLVER_WARNINGS))
at librc-depend.c:1270
btree = 0x65f150
idid_to_break = 0x65f110
idid_count = 1
idid_to_break_count = 8
chain_strs = 0x65f6d0
chains = 0x65eeb0
deptypes = 0x65f680
minimal_cost = UNAPM_USE
chains_size = 65
chain_count = 1
printerr = 1 '\001'
printwarn = 1 '\001'
idid_counters = 0x65f180
idid_count2 = 0
depinfo_from = 0xf
depinfo_to = 0xf0027
#2  0x000800a5528f in __RC_rc_deptree_update (
flags=(RCDTFLAGS_LOOPSOLVER | RCDTFLAGS_LOOPSOLVER_WARNINGS))
at librc-depend.c:1806
dep_num = 26
dep_count = 26
unapm_type = UNAPM_MAX
loopsolver_counter = 0
loopfound = 0
unap_matrix = {0x63c4b0, 0x63c6c0, 0x63c8d0, 0x63cae0, 0x63ccf0, 
  0x63cf00}
service_id = 4
svc_id2depinfo_bt = 0x63d3c0
fp = 0x625ee0
deptree = 0x627f60
providers = 0x625ee0
depinfo = 0x0
depinfo_np = 0x80064d5d0
di = 0x633730
deptype = 0x0
dt_np = 0x401bb4
dt = 0x633780
provide = 0x80064c000
config = 0x625d30
types = 0x63b840
sorted = 0x63b920
visited = 0x63c000
s = 0x0
s2 = 0x0
s2_np = 0x0
s3 = 0x0
s4 = 0x0
line = 0x628000 0\200b
len = 8192
depend = 0x0
depends = 0x0
service = 0x628000 0\200b
type = 0x628008 P\217b
nosys = 0x104b1 error: Cannot access memory at address 0x104b1
onosys = 0x0
i = 5
k = 34366213566
retval = true
sys = 0x0
uts = {
  sysname = 
GNU/kFreeBSD\000\000\000\000\001\000\000\000\377\177\000\000\210Q\204\000\b\000\000,
 
  nodename = 
debian\000\000Q\246\244\000\b\000\000\000\377\377\377\377\000\000\000\000\340\336\377\377\377\177\000,
 
  release = 
10.1-0-amd64\000\000\000\000\020\337\377\377\377\177\000\000\000\337\377\377\377\177\000,
 
  version = #0 Sat, 20 Sep 2014 22:02:28 
+0100\000\000\000\000\000\000\000\300d\000\b, '\000' repeats 11 times, 
@\353\377\377\377\177\000\000\000\000\000\000\000\000\000\000P\220\305\000\b, 
'\000' repeats 11 times, @\353\377\377\377\177, '\000' repeats 18 times, 
\020\340\377\377\377\177\000\000g\024c\000\b\000\000\000\001\000\000\000\000\000\000\000\310Pb,
 '\000' repeats 13 times, @\353\377\377\377\177, '\000' repeats 18 times, 
 \345\377\377\377\177\000\000g\024c\000\b\000\000\000\001, '\000' repeats 15 
times..., 
  machine = 
x86_64\000\000\000\000\000\000\000\000\000\000@)\027\001\b\000\000\000\301s\245\000\b\000\000}
useneedafter_count = 64
#3  0x0040c60b in _rc_deptree_load (force=-1, regen=0x7fffe544)
at rc-depend.c:80
fd = -1
retval = 32767
serrno = 0
merrno = 2
t = 0
file = 
\000\000\000\000\000\000\000\000\212\267b\000\b\000\000\000\200\342\377\377\377\177\000\000\304\060c\000\b\000\000\000\061\000so.0.1\271\b\346\000\b\000\000\000\001\000\000\000\000\000\000\000\212\267b\000\b\000\000\000\260\342\377\377\377\177\000\000X\236b\000\b\000\000\000\000l.so.2\000o.2\000\b\000\000\000\001\000\000\000\000\000\000\000\350\026\001\b\000\000\000
 
\341\377\377\377\177\000\000\000\340;\001\b\000\000\000\070\317d\000\b\000\000\000\030\343\377\377\377\177\000\000\021\035@\000\000\000\000\000`Q\204\000\b\000\000\000\030\000\003\000\003\000\000\000\b\327;\001\b\000\000\000\006\000\000\000\000\000\000\000h\337\377\377\377\177\000\000\351\034@\000\000\000\000\000...
st = {st_dev = 1180, st_ino = 0, st_mode = 36452, __pad_mode = 99, 
  

Bug#765070: openrc: [kfreebsd] segfault in loopsolver

2014-10-18 Thread Steven Chamberlain
tags 765070 + patch
thanks

I've found the reason for this!

In kfreebsd 9.2 or 10.x, kern.elf64.nxstack=1 by default, which means
executable stacks are not allowed.  The segfault happens at:
| 1270: twalk(btree, idid_btree_builddescarray);

where function idid_btree_builddescarray() is defined on the stack,
nested inside of rc_deptree_solve_loop().

It is desirable to enforce nxstack, because in many other applications,
a buffer overflow could allow to modify a function on the stack, which
is later executed.  So I'd like to work around this in openrc so it does
not need executable stacks at all.

(This bug would also affect regular FreeBSD, and perhaps GNU/Linux if
SElinux was enforcing nxstack).

Patch/debdiff attached!  (Also dropped unnecessary libkvm dependency)

Thanks,
Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org
diff -Nru openrc-0.13.1/debian/changelog openrc-0.13.1/debian/changelog
--- openrc-0.13.1/debian/changelog  2014-10-17 11:23:41.0 +0100
+++ openrc-0.13.1/debian/changelog  2014-10-18 20:56:05.0 +0100
@@ -1,3 +1,13 @@
+openrc (0.13.1-2) UNRELEASED; urgency=medium
+
+  * Add 0210-GNU-kFreeBSD_workaround-nxstack.patch:
+- loopsolver: don't use executable stacks
+- fixes a crash on newer versions of kfreebsd that enforce
+  non-executable stacks (Closes #765070)
+  * Drop unnecessary dependency on libkvm-dev [kfreebsd-any]
+
+ -- Steven Chamberlain ste...@pyro.eu.org  Sat, 18 Oct 2014 17:28:16 +0100
+
 openrc (0.13.1-1) unstable; urgency=medium
 
   * New upstream release 
diff -Nru openrc-0.13.1/debian/control openrc-0.13.1/debian/control
--- openrc-0.13.1/debian/control2014-10-17 11:28:46.0 +0100
+++ openrc-0.13.1/debian/control2014-10-18 17:15:43.0 +0100
@@ -5,7 +5,7 @@
 Uploaders: Roger Leigh rle...@debian.org,
Thomas Goirand z...@debian.org,
Benda Xu hero...@gentoo.org, Ritesh Raj Sarraf r...@debian.org
-Build-Depends: debhelper (= 9), libkvm-dev [kfreebsd-any]
+Build-Depends: debhelper (= 9)
 Standards-Version: 3.9.5
 Homepage: http://www.gentoo.org/proj/en/base/openrc/
 Vcs-Git: git://anonscm.debian.org/openrc/openrc.git
diff -Nru 
openrc-0.13.1/debian/patches/0200-GNU-kFreeBSD_add-missing-files.patch 
openrc-0.13.1/debian/patches/0200-GNU-kFreeBSD_add-missing-files.patch
--- openrc-0.13.1/debian/patches/0200-GNU-kFreeBSD_add-missing-files.patch  
2014-10-17 11:26:39.0 +0100
+++ openrc-0.13.1/debian/patches/0200-GNU-kFreeBSD_add-missing-files.patch  
2014-10-18 20:56:45.0 +0100
@@ -45,7 +45,7 @@
 ===
 --- openrc.orig/mk/os-GNU-kFreeBSD.mk  2014-10-17 15:56:36.422098290 +0530
 +++ openrc/mk/os-GNU-kFreeBSD.mk   2014-10-17 15:56:36.418098290 +0530
-@@ -3,7 +3,9 @@
+@@ -2,7 +2,9 @@
  
  # Generic definitions
  
@@ -54,9 +54,8 @@
 +
  CPPFLAGS+=-D_BSD_SOURCE -D_XOPEN_SOURCE=700
  LIBDL=-Wl,-Bdynamic -ldl
--LIBKVM?=
+ LIBKVM?=
 -include ${MK}/os-BSD.mk
-+LIBKVM?=  -lkvm
 Index: openrc/conf.d/network.GNU-kFreeBSD.in
 ===
 --- /dev/null  1970-01-01 00:00:00.0 +
diff -Nru 
openrc-0.13.1/debian/patches/0210-GNU-kFreeBSD_workaround-nxstack.patch 
openrc-0.13.1/debian/patches/0210-GNU-kFreeBSD_workaround-nxstack.patch
--- openrc-0.13.1/debian/patches/0210-GNU-kFreeBSD_workaround-nxstack.patch 
1970-01-01 01:00:00.0 +0100
+++ openrc-0.13.1/debian/patches/0210-GNU-kFreeBSD_workaround-nxstack.patch 
2014-10-18 20:50:30.0 +0100
@@ -0,0 +1,64 @@
+From: Steven Chamberlain ste...@pyro.eu.org
+Subject: loopsolver: don't use executable stacks
+Date: Sat, 18 Oct 2014 20:48:40 +0100
+
+Avoid use of executable stacks, since FreeBSD 9.2, 10.0 and newer
+enforce kern.elf64.nxstack / kern.elf32.nxstack by default.
+
+--- a/src/librc/librc-depend.c
 b/src/librc/librc-depend.c
+@@ -886,6 +886,27 @@
+   return '?';
+ }
+ 
++static int idid_count2;
++static idid_entry_t *idid_counters;
++
++static void
++idid_btree_builddescarray(const void *nodep, const VISIT which, const int 
depth) {
++  (void)depth;
++  switch (which) {
++  case preorder:
++  case leaf: {
++  const idid_entry_t *idid_entry_p = *(idid_entry_t * 
const*)nodep;
++
++  memcpy(idid_counters[idid_count2], idid_entry_p, 
sizeof(idid_counters[idid_count2]));
++  idid_count2++;
++  break;
++  }
++  default:
++  break;
++  }
++  return;
++}
++
+ /*! Solves dependecies loops
+  * @param unap_matrix matrixes to scan ways to solve the loop
+  * @param service_id looped service id
+@@ -1243,26 +1264,6 @@
+   /* building array of dependencies sorted by descending presence 
counter */
+ 
+   {
+-  int idid_count2;
+-  

Bug#765070: openrc: [kfreebsd] segfault in loopsolver

2014-10-13 Thread Steven Chamberlain
Package: openrc
Version: 0.12.4+20131230-9
Severity: grave

Hi,

Installing openrc segfaults in postinst and subsequently at boot.
(Though it gave me a login shell, so I was at least able to bring
up the system manually and recover it).

I rebuilt without optimisations to get the attached backtrace.

This was in a fresh kfreebsd-amd64 sid/jessie test-install.

Thanks.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 9.0-2-amd64-xenhvm-ipsec
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
# gdb openrc/sbin/openrc
GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-kfreebsd-gnu.
Type show configuration for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type help.
Type apropos word to search for commands related to word...
Reading symbols from openrc/sbin/openrc...done.
(gdb) run
Starting program: /root/openrc-0.12.4+20131230/debian/openrc/sbin/openrc 
 * Caching service dependencies ...
 * Found a solvable dependency loop: checkfs.sh p checkfs n mountall.sh p 
mountall u hwclock.sh a checkroot n checkfs.sh.

Program received signal SIGSEGV, Segmentation fault.
0x7fffdccd in ?? ()
(gdb) bt full
#0  0x7fffdccd in ?? ()
No symbol table info available.
#1  0x000800a503ee in rc_deptree_solve_loop (unap_matrix=0x7fffde70, 
service_id=4, svc_id2depinfo_bt=0x6384f0, end_dep_num=26, 
flags=(RCDTFLAGS_LOOPSOLVER | RCDTFLAGS_LOOPSOLVER_WARNINGS))
at librc-depend.c:1270
btree = 0x637290
idid_to_break = 0x65b7e0
idid_count = 1
idid_to_break_count = 8
chain_strs = 0x65b8d0
chains = 0x65b270
deptypes = 0x65b880
minimal_cost = UNAPM_USE
chains_size = 66
chain_count = 1
printerr = 1 '\001'
printwarn = 1 '\001'
idid_counters = 0x6372c0
idid_count2 = 0
depinfo_from = 0x80064a358
depinfo_to = 0x0
#2  0x000800a51fd6 in __RC_rc_deptree_update (
flags=(RCDTFLAGS_LOOPSOLVER | RCDTFLAGS_LOOPSOLVER_WARNINGS))
at librc-depend.c:1806
dep_num = 26
dep_count = 26
unapm_type = UNAPM_MAX
loopsolver_counter = 0
loopfound = 0
unap_matrix = {0x637440, 0x637660, 0x637880, 0x637aa0, 0x637cc0, 
  0x637ee0}
service_id = 4
svc_id2depinfo_bt = 0x6384f0
fp = 0x6246d0
deptree = 0x6247e0
providers = 0x6246d0
depinfo = 0x0
depinfo_np = 0x7fffe150
di = 0x630be0
deptype = 0x0
dt_np = 0x0
dt = 0x630c30
provide = 0x0
config = 0x624800
types = 0x6367d0
sorted = 0x6368b0
visited = 0x6374d0
s = 0x0
s2 = 0x0
s2_np = 0x0
s3 = 0x0
s4 = 0x0
line = 0x625f00 0_b
len = 8192
depend = 0x0
depends = 0x0
service = 0x625f00 0_b
type = 0x625f08 `rb
nosys = 0x1 error: Cannot access memory at address 0x1
onosys = 0x80062f467 _dl_fixup+247 H\211\305d\213\004%\030
i = 5
k = 1
retval = true
sys = 0x0
uts = {
  sysname = 
GNU/kFreeBSD\000\000\000\000`\335\001\b\000\000\000\304-\023\034\000\000\000,
 
  nodename = 
\000\000\000\000\000\000\000\000\n\000\000\000\000\000\000\000\300\304d\000\b\000\000\000\276\255b\000\b\000\000,
 
  release = 
10.1-0-amd64\000\000\000\000\320s\244\000\b\000\000\000\350\177\244\000\b\000\000,
 
  version = #0 Sat, 20 Sep 2014 22:02:28 
+0100\000\000\000\000\000\000X\305d\000\b\000\000\000\000\240d\000\b\000\000\000\f\034@\000\000\000\000\000\250\200\244\000\b\000\000\000\310\005@\000\000\000\000\000\000\000\000\000\001\000\000\000\201\000\000\000\001,
 '\000' repeats 11 times, 
X\305d\000\b\000\000\000\340\340\377\377\377\177\000\000\340\064\204\000\b\000\000\000\b\341\377\377\377\177\000\000\210\061\204\000\b\000\000\000\001\000\000\000\000\000\000\000m\257b\000\b,
 '\000' repeats 11 times, X\305d\000\b\000\000\000\001, '\000' repeats 15 
times, \001\000\000\000\377\177\000\000..., 
  machine = 
x86_64\000\000@\340\377\377\377\177\000\000\304-\023\034\000\000\000\000\f\034@\000\000\000\000}
useneedafter_count = 65
#3  0x0040bc9f in _rc_deptree_load (force=0, regen=0x7fffe67c)
at rc-depend.c:80
fd = -1

Bug#765070: openrc: [kfreebsd] segfault in loopsolver

2014-10-13 Thread Steven Chamberlain
The bug is triggerable on kfreebsd-amd64 with just `update-rc -u`.

Rebuilding without debian/patches/0020-dependency-loop-resolver.patch,
fixes the crash for me (in librc1).

Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org