Remastersys and AVLinux Forum
May 22, 2013, 07:14:09 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Remastersys 3.0.4-2 for Ubuntu Lucid and Newer including Quantal Released
 
   Home   Remastersys Home Remastersys downloads Donate Login Register AV LINUX Home Help Search  
Pages: [1]
  Print  
Author Topic: segfault in mksquashfs While Running remastersys 3.0.1 Ubuntu 11.10  (Read 651 times)
0 Members and 1 Guest are viewing this topic.
hgoldschmitt
Jr. Member
**
Offline Offline

Posts: 12


« on: March 05, 2012, 02:16:57 AM »

I've been getting intermittent segfaults in mksquashfs when creating a dist iso with remastersys. I'm running on Ubuntu 11.10.  What's worse is that remastersys doesn't notice the segfault and thinks it's completed successfully. If I run the same remastersys again, it sometimes works but has an error when booting in a virtual machine.

Any suggestions on how to debug this would be appreciated.
Logged
fragadelic
Administrator
Hero Member
*****
Offline Offline

Posts: 3920


Remastersys Developer and Founder


WWW
« Reply #1 on: March 05, 2012, 09:14:47 AM »

Squashfs has problems with socket type files.  The only times I've seen it segfault are if you are using the wrong version of mksquashfs compared to the kernel version or if there are socket files.  KDE uses socket files and if you manually copied stuff to /etc/skel then this could be the cause.
Logged

Please attach your remastersys.log for the system you are asking for help on as it helps me assist you much quicker.
hgoldschmitt
Jr. Member
**
Offline Offline

Posts: 12


« Reply #2 on: March 06, 2012, 11:14:14 AM »

I haven't modified any remastersys files or skels.  Just using the GUI. The segmentation fault doesn't show in the log.  In the output window, it
comes after "Creating IMS-RAV-UDEV-000105.iso in /home/remastersys/remastersys"
and reads:
/usr/bin/remastersys: line 813: 7040 Segmentation fault $CREATEISO -iso-level 3 -quiet -r -V "$LIVECDLABEL" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o $WOEKDIR/$CUSTOMISO "$WORKDIR/ISOTMP" 2>> $WORKDIR/remastersys.log >>$WORKDIR/remastersys.log

* remastersys.log (14.99 KB - downloaded 5 times.)
Logged
fragadelic
Administrator
Hero Member
*****
Offline Offline

Posts: 3920


Remastersys Developer and Founder


WWW
« Reply #3 on: March 06, 2012, 11:33:31 AM »

Where did you get your remastersys package from?

That is not on line 813 on my remastersys and there is a typo in your line so this looks like a modified package and not my official remastersys package.
Logged

Please attach your remastersys.log for the system you are asking for help on as it helps me assist you much quicker.
hgoldschmitt
Jr. Member
**
Offline Offline

Posts: 12


« Reply #4 on: March 06, 2012, 01:30:10 PM »

Sorry, it looked like I sent my remastersys and sources.list from home. I don't see it on the forum, though. I just tried a repost from home and it says I already submitted the post.
Logged
hgoldschmitt
Jr. Member
**
Offline Offline

Posts: 12


« Reply #5 on: March 06, 2012, 01:33:28 PM »

Looks to me that I got it from remastersys.com.  I'm attaching the script and my sources.list. Here is the output of dpkg-query -l remastersys:
harry@Ubuntu-11-10-base:~$ dpkg-query -l remastersys
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  remastersys    3.0.1-1        Ubuntu and variant system remaster This scri

* remastersys.zip (8.63 KB - downloaded 4 times.)
* sources.list.txt (3.13 KB - downloaded 6 times.)
Logged
fragadelic
Administrator
Hero Member
*****
Offline Offline

Posts: 3920


Remastersys Developer and Founder


WWW
« Reply #6 on: March 06, 2012, 02:16:41 PM »

You got it from the right place and the script looks ok but where did your output come from?

In a terminal, issue the following commands and post the output.

mksquashfs -version

find /lib -name "*squashfs*"
Logged

Please attach your remastersys.log for the system you are asking for help on as it helps me assist you much quicker.
hgoldschmitt
Jr. Member
**
Offline Offline

Posts: 12


« Reply #7 on: March 06, 2012, 02:25:28 PM »

harry@Ubuntu-11-10-base:~$ mksquashfs -version
mksquashfs version 4.2 (2011/02/28)
copyright (C) 2011 Phillip Lougher <phillip@lougher.demon.co.uk>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2,
or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
harry@Ubuntu-11-10-base:~$ find /lib -name '*squashfs*'
/lib/modules/3.0.0-16-generic/kernel/fs/squashfs
/lib/modules/3.0.0-16-generic/kernel/fs/squashfs/squashfs.ko
Logged
fragadelic
Administrator
Hero Member
*****
Offline Offline

Posts: 3920


Remastersys Developer and Founder


WWW
« Reply #8 on: March 06, 2012, 03:09:15 PM »

Same as on my 11.10 system.

Your segfault is in the iso creation function.  Do you have genisoimage installed?

genisoimage -version

Logged

Please attach your remastersys.log for the system you are asking for help on as it helps me assist you much quicker.
hgoldschmitt
Jr. Member
**
Offline Offline

Posts: 12


« Reply #9 on: March 06, 2012, 04:01:05 PM »

harry@Ubuntu-11-10-base:~$ genisoimage -version
genisoimage 1.1.11 (Linux)
Logged
fragadelic
Administrator
Hero Member
*****
Offline Offline

Posts: 3920


Remastersys Developer and Founder


WWW
« Reply #10 on: March 06, 2012, 04:06:06 PM »

You have very little disk space.  I'm wondering if genisoimage is using some temp space somewhere before creating the iso and you are running out of space.

Is this in a Virtual Machine?  If it is, they tend to have their own problems, especially Virtual Box on Ubuntu lately.
Logged

Please attach your remastersys.log for the system you are asking for help on as it helps me assist you much quicker.
hgoldschmitt
Jr. Member
**
Offline Offline

Posts: 12


« Reply #11 on: March 06, 2012, 04:08:07 PM »

Its the latest VMware Fusion on OS/X 10.6. I've got 4G available disk space and 1G memory.
Logged
hgoldschmitt
Jr. Member
**
Offline Offline

Posts: 12


« Reply #12 on: March 06, 2012, 04:09:48 PM »

Make that 5.4 G available disk space after blowing away /home/remastersys/remastersys
Logged
fragadelic
Administrator
Hero Member
*****
Offline Offline

Posts: 3920


Remastersys Developer and Founder


WWW
« Reply #13 on: March 06, 2012, 04:23:03 PM »

Check your VM settings.  Segfaults are rare.  They usually only happen if something occurs that is totally unexpected to the program running or if there is a hardware issue like ram,cpu, hard drive.  I am not the author of squashfs nor genisoimage so I don't know how they use ram or disk space during their runs.  I never remaster with less than 15GB of disk space.  I have stopped using Virtual Machines as well due to the issues I've had unrelated to remastering.

I would increase the hard drive size and verify your cpu settings in the vm are fairly generic and try again.

How much swap space do you have allocated for that install?
Logged

Please attach your remastersys.log for the system you are asking for help on as it helps me assist you much quicker.
hgoldschmitt
Jr. Member
**
Offline Offline

Posts: 12


« Reply #14 on: March 06, 2012, 04:25:05 PM »

I'm in the process of retrying in a 20GB virtual machine.  I'll let you know if this doesn't work, and maybe I can dig up an old workstation here at work.
Logged
hgoldschmitt
Jr. Member
**
Offline Offline

Posts: 12


« Reply #15 on: March 07, 2012, 01:47:16 PM »

Thanks so much for your help.  I ran Remastersys on a 20G virtual machine with 2G of memory and everything worked great.
Logged
fragadelic
Administrator
Hero Member
*****
Offline Offline

Posts: 3920


Remastersys Developer and Founder


WWW
« Reply #16 on: March 07, 2012, 01:52:40 PM »

Not all programs take into account that you may run out of space, including remastersys and the tools it uses.  Glad it worked for you.
Logged

Please attach your remastersys.log for the system you are asking for help on as it helps me assist you much quicker.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!