Segmentation fault (core dumped), when trying to run Ver. 0.3.9.2

Bug #128048 reported by satkata
0
Affects Status Importance Assigned to Milestone
Deb Creator
Fix Committed
Critical
Gianni Moschini

Bug Description

Hi,

I have just installed your prebuilt package of deb creator 0.3.9.2 for Feisty, but as I wanted to run it just reported

"Segmentation fault (core dumped)" on the command line.

The old version 0.3.9.1 was running almost 100% fine, it was reporting sometimes "Segmentation fault (core dumped)", too, but after deleting ".debcreator", everything was fine again.

The new version just won't start, with or without .debcreator directory existing.

Sorry, that I can't tell you more, but I just don't how to get more information about the reason.
If you know how, I'll be glad to send it to you.

A great tool, though. Thanks for your work.

Revision history for this message
Gianni Moschini (gianni.net) wrote :

I need your help on this to track down this problem. In fact, there is something else reporting the same behavior.

First I need to ask, are you using Ubuntu or any other flavor(Kubuntu, Xubuntu, etc). I need to know so I can try to reproduce this crash myself. It would then be easier to fix.

Then could you please type the following command on a terminal and paste the output in here.

ldd /usr/bin/debcreator

(or ldd /usr/local/bin/debcreator if you compiled it from sources)

Changed in debcreator:
assignee: nobody → gianni.net
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Kevin (kevin64-deactivatedaccount) wrote :
Download full text (4.6 KiB)

I use 0.3.9.2 but it work with:

sudo debcreator

but if you write this:

debcreator

I get this:

"Segmentation fault (core dumped)" on the command line.

I use Ubuntu 7.04 (with GNOME)

My ldd /usr/bin/debcreator:

festor@sniper-win:~$ ldd /usr/bin/debcreator
        linux-gate.so.1 => (0xffffe000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7bcd000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb7b47000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb7b2b000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7b14000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7aed000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb7ae5000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7aba000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb7aac000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7aa3000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb7aa0000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb7a98000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb7a92000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb7a89000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7a84000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb7a45000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb79d5000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb78e4000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb78aa000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb78a7000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb78a3000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb780d000)
        libgnomeui-2.so.0 => /usr/lib/libgnomeui-2.so.0 (0xb777f000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb7776000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb775e000)
        libbonoboui-2.so.0 => /usr/lib/libbonoboui-2.so.0 (0xb7700000)
        libgnome-keyring.so.0 => /usr/lib/libgnome-keyring.so.0 (0xb76f3000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb75d5000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb75c1000)
        libgnomecanvas-2.so.0 => /usr/lib/libgnomecanvas-2.so.0 (0xb7597000)
        libgnome-2.so.0 => /usr/lib/libgnome-2.so.0 (0xb7582000)
        libpopt.so.0 => /lib/libpopt.so.0 (0xb757a000)
        libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0xb7565000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb7539000)
        libgnomevfs-2.so.0 => /usr/lib/libgnomevfs-2.so.0 (0xb74e0000)
        libbonobo-2.so.0 => /usr/lib/libbonobo-2.so.0 (0xb7484000)
        libgconf-2.so.4 => /usr/lib/libgconf-2.so.4 (0xb7452000)
        libbonobo-activation.so.4 => /usr/lib/libbonobo-activation.so.4 (0xb743d000)
        libORBit-2.so.0 => /usr/lib/libORBit-2.so.0 (0xb73e9000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb73e4000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb73cd000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb728c000)
        /lib/ld-linux.so.2 (0xb7f35000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7221000)
        libexpat.so.1 => /usr/lib/lib...

Read more...

Revision history for this message
Gianni Moschini (gianni.net) wrote :

That's really weird, I can't reproduce this with feisty so far.

Could you give a little more details about your system. kernel used (uname -r) for example

Revision history for this message
satkata (satkata-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :
Download full text (4.5 KiB)

Hi, here my report after "ldd /usr/bin/debcreator". I'm using Ubuntu Feisty by the way.

I'm using the ubuntu generic kernel: 2.6.20-16-generic

 ldd /usr/bin/debcreator
        linux-gate.so.1 => (0xffffe000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x4723c000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x48091000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x4721f000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x48019000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x47d01000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x48087000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x48032000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x47e58000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x4805f000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x48069000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0x48075000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x4807f000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x48186000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x4806e000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x48146000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb7f03000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x47d59000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x47eff000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x47f3b000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x47cfb000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x47e68000)
        libgnomeui-2.so.0 => /usr/lib/libgnomeui-2.so.0 (0x47a4c000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0x4800e000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0x47fd2000)
        libbonoboui-2.so.0 => /usr/lib/libbonoboui-2.so.0 (0x479ec000)
        libgnome-keyring.so.0 => /usr/lib/libgnome-keyring.so.0 (0x47af3000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x482ff000)
        libz.so.1 => /usr/lib/libz.so.1 (0x47d43000)
        libgnomecanvas-2.so.0 => /usr/lib/libgnomecanvas-2.so.0 (0x47b02000)
        libgnome-2.so.0 => /usr/lib/libgnome-2.so.0 (0x47adc000)
        libpopt.so.0 => /lib/libpopt.so.0 (0x4772e000)
        libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0x479d5000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x48119000)
        libgnomevfs-2.so.0 => /usr/lib/libgnomevfs-2.so.0 (0x478f4000)
        libbonobo-2.so.0 => /usr/lib/libbonobo-2.so.0 (0x47977000)
        libgconf-2.so.4 => /usr/lib/libgconf-2.so.4 (0x47871000)
        libbonobo-activation.so.4 => /usr/lib/libbonobo-activation.so.4 (0x4794f000)
        libORBit-2.so.0 => /usr/lib/libORBit-2.so.0 (0x47755000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x476f3000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x47d2a000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x47bb8000)
        /lib/ld-linux.so.2 (0x471e9000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7e8f000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x47fec000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x47e53000)
        lib...

Read more...

Revision history for this message
Gianni Moschini (gianni.net) wrote :

I need to know where this is coming from. At the moment I have no idea.

Is any of you able to compile it from source, and see if it does crash?

Also could you say if you are using anything that is non-standard in a feisty default install. I really want to reproduce this on my feisty box.

Revision history for this message
satkata (satkata-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Hi,

I've compiled and installed it using checkinstall and it still crashes.

About my feisty install, well there's nothing really non-standard.
I have compiz-fusion und awn as non-default and last I upgraded my wxWidgets packages using the officail repo from wxwidgets.org.

I've attached my sources.list so you could probably check it our and compare with yours.

Revision history for this message
satkata (satkata-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

and here is a list with all installed packages on my system after running:

dpkg --get-selections

Maybe you could run some "diff" program to see what I have, that you eventually don't.

And yes , as above already mentioned, running:

sudo debcreator runs the program. ...weird thing

I also have no further idea, as I reinstalled the older version early this evening and it runs fine, so there shouldn't be some kind of package problem, but who knows.

Revision history for this message
Gianni Moschini (gianni.net) wrote :

Thanks for the informations.

By the way that's a lot of packages.

Alternatively could you please try to install debcreator.deb from a live-cd session of Ubuntu 7.04.

It will needs an internet connection to install 8 more packages (debhelper, and other things needed to install debcreator. They will be auto-installed)

It should take only five to ten minutes depending on your internet connection speed and the memory available on your system.

If it's working then it's sure that it's coming from one of the installed packages on your system. Though we would still need to find which one.

Revision history for this message
MarcoBazzani (visik7) wrote :

I've look for which package could be installed after a clean install
an the only 2 which ldd reports are
libpng12-0 that came from feisty-security
and
libfreetype6 that came from securty too

Revision history for this message
satkata (satkata-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

I'll have to download the feisty install cd first, I haven't downloaded an ubuntu cd since breezy as I'm always making a system upgrade.

What the availability of packages concerns, you have to know that after a clean install "universe" and "multiverse" are not enabled by default. The rest of the repositories I have are just delivering some packages, which are either not available in the ubuntu repositories or very old.

But as I said before, this shouldn't be the problem, as the old version 0.3.9.1 was running just fine with all these packages already installed.

I'll post after I have downloaded the Live CD as I have no further idea, what could be the problem.

Revision history for this message
satkata (satkata-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

I've read your post from yesterday and yes, it helped.

Man, I have never thought, that such a little thing can make your life so hard. :)

I'll try to build some packages, just for the test, and see, if it'll crash on my pc.

I have never experienced a single crash, but we'll see.

Revision history for this message
Gianni Moschini (gianni.net) wrote :

"I have never experienced a single crash"

What did you do ? I don't get it.

Revision history for this message
satkata (satkata-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

First, about that "segmentation fault" problem, I edited "debcreator_listarchive" and changed /bin/sh to /bin/bash.

Now 0.3.9.2 is running fine.

And about "I have never experienced a single crash", I just ment, that debcreator has never crashed on my pc and, that I'm going to try to build some extra packages to see if will happen by me, too?

Well, debcreator is not crashing, but there are some packages like "mail-notification" or "tracker", that are failing to build as deb. I couldn't understand what the reason could be. It is definitely not a dependency problem, because they are getting compiled after:
#configure
#make

The weird is, that I can not build a deb package with "checkinstall", too.

Revision history for this message
satkata (satkata-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Well, here are some new news.

after 1 day without problems, after changing /bin/sh --> /bin/bash in /usr/bin/debcreator_listarchive, when trying to run /usr/bin/debcreator, I am getting again:
"Segmentation fault (core dumped)".

Then, on the CLI, I passed the package archive directly to debcreator, like

#debcreator package.tar.gz

and it started again, but that worked only 2 times. Then I got that boring message
"Segmentation fault (core dumped)", again.

Revision history for this message
3saul (saul-lethbridge) wrote :

Problem exists in:

build_interface (argc=1, argv=0xbf9a5a64) at main.c:194
main (argc=1, argv=0xbf9a5a64) at main.c:942

Revision history for this message
Gianni Moschini (gianni.net) wrote :

gnome_program_init(PACKAGE, PACKAGE_VERSION,
  LIBGNOMEUI_MODULE,
  argc, argv, NULL);

so what?

Revision history for this message
Gianni Moschini (gianni.net) wrote :

194: gtk_file_filter_add_mime_type(GTK_FILE_FILTER(filter), (gchar*) tmp->data);

I really don't see what's the problem.

Have you tried to comment some part of the code and try again?

How did you get this message anyway.

Revision history for this message
Gianni Moschini (gianni.net) wrote :

if anyone experiencing the bug could produce a gdb output (with backtrace), this would be very helpful

Revision history for this message
Gianni Moschini (gianni.net) wrote :

Thanks to Michal Kurgan this bug is now closed.

A new release will be out soon with the fix included.

Changed in debcreator:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers