On Fri, Sep 19, 2008 at 09:49:30PM +0200, Elentir <[EMAIL PROTECTED]> wrote: > A backtrace give me nothing more than the segfault address and some > uninterresting things like this ;) > "#0 0xb705d017 in _pacman_downloadfiles_forreal () from > /usr/lib/libpacman.so.0 > #1 0xb705c5b6 in _pacman_downloadfiles () from /usr/lib/libpacman.so.0 > #2 0xb70599c0 in _pacman_sync_commit () from /usr/lib/libpacman.so.0" > etc.
Hm, that's interesting. You should be given line numbers as well. Ah yes, the normal libpacman is compiled without debug symbols. :) git clone git://git.frugalware.org/pub/other/pacman-g2/pacman-g2 then build it with --enable-debug. > but 'p pm_dlfnm' return 0 so a null pointer... maybe we find the segfault ? > :) Nope. It's fine if a pointer is NULL, it's only a problem, if you dereference it like: *pm_dlfnm = foo; > But why pm_dlfnm is null ? Do I made something wrong? It's NULL by default, as long as you don't set it with: pacman_set_option(PM_OPT_DLFNM, (long)yourptr); it will be like this. Typically yourptr is a global variable in your program so that you can read it in the download callback later, if you need the download filename. It makes no sense to set it (at least ideally) unless you are going to register a download callback as well.
pgphLEIbmfYhi.pgp
Description: PGP signature
_______________________________________________ Frugalware-devel mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-devel
