[Freeipa-devel] [PATCHES] tools and debug tidyups

Stephen Gallagher sgallagh at redhat.com
Tue Jul 14 10:41:08 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/14/2009 06:38 AM, Stephen Gallagher wrote:
> On 07/13/2009 06:11 PM, Simo Sorce wrote:
>> Fixes and tidyups to tools and debugging of memberof.
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Freeipa-devel mailing list
>> Freeipa-devel at redhat.com
>> https://www.redhat.com/mailman/listinfo/freeipa-devel
> 
> Nack. I applied your patch and attempted to run 'sss_useradd tempuser'
> as root. The program segfaulted with the attached core file.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Freeipa-devel mailing list
> Freeipa-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/freeipa-devel

I realized I should add some more information, since that core file was
generated with a different binary than the one you will be using. Here's
the backtrace and some print commands that show that the problem is that
we're attempting to dereference state->base while it is null.

Core was generated by `sss_useradd tempuser'.
Program terminated with signal 11, Segmentation fault.
#0  0x000000000040bc01 in sysdb_get_new_id_verify (subreq=0x0)
    at ../../server/db/sysdb_ops.c:1451
1451	    msg->dn = state->base->dn;
Missing separate debuginfos, use: debuginfo-install sssd-0.4.1-2.fc11.x86_64
(gdb) bt
#0  0x000000000040bc01 in sysdb_get_new_id_verify (subreq=0x0)
    at ../../server/db/sysdb_ops.c:1451
#1  0x0000000000409237 in sldb_request_callback (ldbreq=0xa1d300,
    ldbreply=0xa08e10) at ../../server/db/sysdb_ops.c:158
#2  0x00007f7a2198601f in ?? () from /usr/lib64/libldb.so.0
#3  0x0000003dcf202f35 in tevent_common_loop_timer_delay ()
   from /usr/lib64/libtevent.so.0
#4  0x0000003dcf20458b in ?? () from /usr/lib64/libtevent.so.0
#5  0x000000000040591b in main (argc=2, argv=0x7fffa13f6998)
    at ../../server/tools/sss_useradd.c:512
(gdb) print msg
$1 = (struct ldb_message *) 0xa0a910
(gdb) print *msg
$2 = {dn = 0x0, num_elements = 0, elements = 0x0}
(gdb) print state
$3 = (struct sysdb_get_new_id_state *) 0xa07ba0
(gdb) print state->base
$4 = (struct ldb_message *) 0x0


- -- 
Stephen Gallagher
RHCE 804006346421761

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkpcYMQACgkQeiVVYja6o6Mx/QCgmqvLnS0Bv0qV5gIbaZTdk+AN
vjEAnj4iQwomtzequ0tO32QhB06A9Krz
=TJ4A
-----END PGP SIGNATURE-----




More information about the Freeipa-devel mailing list