Hello,

Miklos Vajna wrote:
Fire up 'gdb --args yourprogram', do a 'run', and when the segfault
occurs, do a 'bt'. The output should tell us where the problem is.

If it will point to what you pasted, then probably it's about we are not 
checking if pm_dlfnm if NULL. But you can check that in gdb using 'p pm_dlfnm'.
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.

That's why i disassemble _pacman_downloadfiles_forreal() function!

but 'p pm_dlfnm' return 0 so a null pointer... maybe we find the segfault ? :)
But why pm_dlfnm is null ? Do I made something wrong?

Thank you
Elentir
_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel

Reply via email to