Debian Bug report logs - #268720
depmod segfaults w/ foreign architecture

version graph

Package: module-init-tools; Maintainer for module-init-tools is Marco d'Itri <md@linux.it>; Source for module-init-tools is src:kmod.

Reported by: ms419@freezone.co.uk

Date: Sat, 28 Aug 2004 19:18:01 UTC

Severity: normal

Tags: help, upstream

Found in version 3.1-pre5-6

Done: ms419@freezone.co.uk

Bug is archived. No further changes may be made.

Forwarded to rusty@rustcorp.com.au

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Marco d'Itri <md@linux.it>:
Bug#268720; Package module-init-tools. Full text and rfc822 format available.

Acknowledgement sent to ms419@freezone.co.uk:
New Bug report received and forwarded. Copy sent to Marco d'Itri <md@linux.it>. Full text and rfc822 format available.

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

From: ms419@freezone.co.uk
To: submit@bugs.debian.org
Subject: depmod segfaults w/ foreign architecture
Date: Sat, 28 Aug 2004 12:03:49 -0700
Package: module-init-tools
Version: 3.1-pre5-6

depmod segfaults building modules.dep for a foreign architecture.

I'm building modules.dep for a powerpc kernel on an i386 host. The host 
is running a custom 2.6.7 kernel & libc6 version 2.3.2.ds1-16.

http://www.sfu.ca/~jdbates/depmod/screenlog

http://www.sfu.ca/~jdbates/depmod/core.gz

Please let me know how I can provide more information!

Cheers,

Jack




Noted your statement that Bug has been forwarded to rusty@rustcorp.com.au. Request was from Marco d'Itri <md@linux.it> to control@bugs.debian.org. Full text and rfc822 format available.

Tags added: upstream Request was from Marco d'Itri <md@linux.it> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Marco d'Itri <md@linux.it>:
Bug#268720; Package module-init-tools. Full text and rfc822 format available.

Acknowledgement sent to ms419@freezone.co.uk:
Extra info received and forwarded to list. Copy sent to Marco d'Itri <md@linux.it>. Full text and rfc822 format available.

Message #14 received at 268720@bugs.debian.org (full text, mbox):

From: ms419@freezone.co.uk
To: 268720@bugs.debian.org, debian-embedded@lists.debian.org
Subject: Re: Building modules.dep for Foreign Architecture?
Date: Wed, 8 Sep 2004 13:47:06 -0700
On Sep 7, 2004, at 10:18 AM, David Meggy wrote:

> On Tue, 2004-09-07 at 09:56, ms419@freezone.co.uk wrote:
>> Anyone here have experience building modules.dep for a foreign
>> architecture?
>
> Try building modutils as a cross tool
>
> ./configure --build=i386-linux --host=i386-linux --target=powerpc-linux
> --prefix=.... etc.
>
> then use the depmod built from this

Thanks very much, David, for your suggestion! Unfortunately, I 
encounter the same segfault:

I commented "BUILD_UDEB := 1" out of debian/rules & ran:

debian/rules unpack
make -f debian/sys-build.mk source.command SOURCE_CMD="mkdir obj && cd 
obj && ../configure --target=powerpc-linux --prefix=/"
touch debian/stampdir/configure
DEB_BUILD_OPTIONS=nostrip fakeroot debian/rules binary

Though I installed the resulting module-init-tools_3.1-pre5-6_i386.deb, 
I encounter segfaults exactly as before:

http://www.sfu.ca/~jdbates/depmod/screenlog

Thanks, again, for your suggestion; I'm not sure what is the problem?

Cheers,

Jack




Information forwarded to debian-bugs-dist@lists.debian.org, Marco d'Itri <md@linux.it>:
Bug#268720; Package module-init-tools. Full text and rfc822 format available.

Acknowledgement sent to Marco d'Itri <md@Linux.IT>:
Extra info received and forwarded to list. Copy sent to Marco d'Itri <md@linux.it>. Full text and rfc822 format available.

Message #19 received at 268720@bugs.debian.org (full text, mbox):

From: Marco d'Itri <md@Linux.IT>
To: ms419@freezone.co.uk, 268720@bugs.debian.org
Cc: debian-embedded@lists.debian.org
Subject: Re: Bug#268720: Building modules.dep for Foreign Architecture?
Date: Wed, 8 Sep 2004 23:10:11 +0200
On Sep 08, ms419@freezone.co.uk wrote:

> Thanks, again, for your suggestion; I'm not sure what is the problem?
It's hard to tell unless you will provide a stack trace from the
unstripped binary.

-- 
ciao, |
Marco | [7868 inxZjaBRYYSdA]



Information forwarded to debian-bugs-dist@lists.debian.org, Marco d'Itri <md@linux.it>:
Bug#268720; Package module-init-tools. Full text and rfc822 format available.

Acknowledgement sent to ms419@freezone.co.uk:
Extra info received and forwarded to list. Copy sent to Marco d'Itri <md@linux.it>. Full text and rfc822 format available.

Message #24 received at 268720@bugs.debian.org (full text, mbox):

From: ms419@freezone.co.uk
To: 268720@bugs.debian.org, debian-embedded@lists.debian.org
Subject: Re: Bug#268720: Building modules.dep for Foreign Architecture?
Date: Thu, 9 Sep 2004 10:29:14 -0700
On Sep 8, 2004, at 2:10 PM, Marco d'Itri wrote:

> On Sep 08, ms419@freezone.co.uk wrote:
>
>> Thanks, again, for your suggestion; I'm not sure what is the problem?
> It's hard to tell unless you will provide a stack trace from the
> unstripped binary.

Stack trace - that's the same as back trace, no? If so, both original & 
"--target powerpc-linux" binaries produce identical back traces:

http://www.sfu.ca/~jdbates/depmod/--target%20powerpc-linux/screenlog

http://www.sfu.ca/~jdbates/depmod/--target%20powerpc-linux/core.gz

http://www.sfu.ca/~jdbates/depmod/screenlog

http://www.sfu.ca/~jdbates/depmod/core.gz

I thought perhaps I was still using the original binary, but I triple 
checked; I configure module-init-tools with "--target powerpc-linux", 
but it segfaults on my powerpc-linux kernel & produces the same back 
trace as the original binary. I'm stuck!

Thanks very much for your help!

Jack




Tags added: help Request was from Marco d'Itri <md@linux.it> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Marco d'Itri <md@linux.it>:
Bug#268720; Package module-init-tools. Full text and rfc822 format available.

Acknowledgement sent to md@Linux.IT (Marco d'Itri):
Extra info received and forwarded to list. Copy sent to Marco d'Itri <md@linux.it>. Full text and rfc822 format available.

Message #31 received at 268720@bugs.debian.org (full text, mbox):

From: md@Linux.IT (Marco d'Itri)
To: ms419@freezone.co.uk, 268720@bugs.debian.org
Subject: Re: Bug#268720: depmod segfaults w/ foreign architecture
Date: Wed, 26 Jan 2005 22:04:06 +0100
[Message part 1 (text/plain, inline)]
Please try again a cross-compile build with 3.2-pre1-2 (currently in
incoming) which supports being built with dpkg-cross and I know is being
used for SH.

-- 
ciao,
Marco
[signature.asc (application/pgp-signature, inline)]

Reply sent to ms419@freezone.co.uk:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to ms419@freezone.co.uk:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #36 received at 268720-done@bugs.debian.org (full text, mbox):

From: ms419@freezone.co.uk
To: 268720-done@bugs.debian.org
Subject: no more segfault : )
Date: Sun, 12 Jun 2005 21:13:23 -0700
Awesome, Marco! I cross compiled a couple kernels & built initrds on 
i386 for powerpc - no segfault!

I used the depmod binary in Debian's i386 package -


tor:~/initrd> /sbin/depmod -b kernel-base-2.6.12-rc4-mm2-fis-200505170 
2.6.12-rc4-mm2-fis-200505170
tor:~/initrd>


No need even to rebuild depmod for the target architecture!

Many thanks, Marco, for making this happen - it makes my life so much 
more convenient!

Jack




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 12:36:43 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.