cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Core dump when authentication fails?

From: Saqib Ali <saqib.ali.75_at_gmail.com>
Date: Wed, 25 May 2011 16:27:17 -0400

>
>
> This looks like it might be a problem. I can't get it to fail when I
> supply a nonexistent public key, but you should be able to run the program
> under a debugger to find out exactly where and why this occurs.
>
> >>> Dan
>
>
I attached dbx to the core to get a stack trace of the crash. See below.
All my source code is not on the same machine as my executable. So stepping
through the source is a bit more difficult. But eventually doable if
necessary.

(dbx) where
current thread: t_at_4
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
dbx: internal warning: Visiting state accessed while locked
  [1] __lwp_kill(0x0, 0x6, 0x0, 0x6, 0xffbffeff, 0x0), at 0xfefcc5f8
  [2] raise(0x6, 0x0, 0xff034f18, 0xfefabf18, 0xffffffff, 0x6), at
0xfef65a5c
  [3] abort(0xfdcf7050, 0x1, 0x0, 0xeeb60, 0xff0333d8, 0x0), at 0xfef4194c
  [4] __assert(0xfe8ed6c8, 0xfe8ed6d8, 0x88, 0xd7490, 0xee87c, 0xfe920440),
at 0xfef41b88
=>[5] curl_domalloc(wantedsize = 0, line = 310, source = 0xfe8efcf8
"ssh.c"), line 136 in "memdebug.c"
  [6] my_libssh2_malloc(count = 0, abstract = 0xca6b8), line 310 in "ssh.c"
  [7] userauth_keyboard_interactive(session = 0xca6b8, username = 0x8eb58
"lis", username_len = 3U, response_callback = 0xfe794dd0 =
&`libcurl.so.4`ssh.c`kbd_callback(const char *name, int name_len, const char
*instruction, int instruction_len, int num_prompts, const
LIBSSH2_USERAUTH_KBDINT_PROMPT *prompts, LIBSSH2_USERAUTH_KBDINT_RESPONSE
*responses, void **abstract)), line 1457 in "userauth.c"
  [8] libssh2_userauth_keyboard_interactive_ex(session = 0xca6b8, user =
0x8eb58 "lis", user_len = 3U, response_callback = 0xfe794dd0 =
&`libcurl.so.4`ssh.c`kbd_callback(const char *name, int name_len, const char
*instruction, int instruction_len, int num_prompts, const
LIBSSH2_USERAUTH_KBDINT_PROMPT *prompts, LIBSSH2_USERAUTH_KBDINT_RESPONSE
*responses, void **abstract)), line 1666 in "userauth.c"
  [9] ssh_statemach_act(conn = 0x92920, block = 0xfdcf7918), line 907 in
"ssh.c"
  [10] ssh_multi_statemach(conn = 0x92920, done = 0xfdcf7a3c), line 2458 in
"ssh.c"
  [11] Curl_protocol_connecting(conn = 0x92920, done = 0xfdcf7a3c), line
3320 in "url.c"
  [12] multi_runsingle(multi = 0x72b58, now = RECORD, easy = 0x8dcf8), line
1187 in "multi.c"
  [13] curl_multi_perform(multi_handle = 0x72b58, running_handles =
0xfdcf7b4c), line 1711 in "multi.c"
  [14] myFunction(0x3fc80, 0xfeb9015c, 0x2, 0x66d28, 0x66d20, 0xfeeb6f18),
at 0xfe5c4404

- Saqib

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-25