microdc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microdc-devel] microdc2 crash on amd64 arch while turning on logfile


From: Vadim A. Shklyaev
Subject: [microdc-devel] microdc2 crash on amd64 arch while turning on logfile
Date: Sat, 28 Jul 2007 16:03:00 -0000

Hello, microdc-devel.

  I've faced a problem using microdc2 on amd64 architecture - microdc2
  crashes while trying set up logging.
  I've tried to run it on ALT Linux Server 4.0.1 x86_64 and on
  FreeBSD/amd64 6-STABLE - the result is the same.
  You may see gdb output below.
  It's very easy to reproduce the bug - you only have to run microdc2
  with clean configuration and say to it, for example,
  "set logfile /tmp/aaa"

  I've tried to understand why does it happen, but i'm not a serios C
  guru realy :)
  Have anybody got ideas why does it happen and how to fix that?

  p.s. everything else on that machines works ok, e.g. hashing,
  uploading and so on, the problem exists only in log writer.

address@hidden ~/src/microdc2/microdc2-0.15.6/src]> gdb ./microdc2
GNU gdb 6.6-alt1 (ALT Linux)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-alt-linux"...
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) run
Starting program: /home/lexx/src/microdc2/microdc2-0.15.6/src/microdc2
Loading local FileList...done
Sharing 0 bytes (0B) totally
microdc2> set logfile /tmp/aaa
Logging to `/tmp/aaa'.

Program received signal SIGSEGV, Segmentation fault.
0x00002acb1e964980 in strlen () from /lib64/libc.so.6
(gdb) bt
#0  0x00002acb1e964980 in strlen () from /lib64/libc.so.6
#1  0x00002acb1e938081 in vfprintf () from /lib64/libc.so.6
#2  0x00002acb1e957d64 in vasprintf () from /lib64/libc.so.6
#3  0x0000000000434307 in xvasprintf (format=0x1 <Address 0x1 out of bounds>, 
args=0x7fff8c9466d8)
    at xvasprintf.c:35
#4  0x0000000000417676 in flag_vputf (flag=2358534736, format=0x43a7f8 "Logging 
to `%s'.\n",
    args=0x7fff8c9466a0) at screen.c:254
#5  0x0000000000417877 in flag_putf (flag=DC_DF_DEBUG, format=0x43a804 
"%s'.\n") at screen.c:270
#6  0x000000000041854f in set_log_file (new_filename=0x6c1750 "/tmp/aaa", 
verbose=true)
    at screen.c:143
#7  0x000000000040a09b in cmd_set (argc=3, argv=0x6c15e0) at variables.c:934
#8  0x00000000004043ae in command_execute (line=0x6c15d4 "") at command.c:521
#9  0x0000000000417c66 in user_input (line=0x6c15c0 "set logfile /tmp/aaa") at 
screen.c:305
#10 0x00002acb1e39edd4 in rl_callback_read_char () from /lib64/libreadline.so.5
#11 0x000000000041499f in main (argc=<value optimized out>, argv=<value 
optimized out>)
    at main.c:1333
(gdb)


-- 
Best regards,
 Vadim A. Shklyaev, CPMS Network
 http://network.cpms.ru/
 LX-RIPE, LEXX-RIPN, ICQ 23924367





reply via email to

[Prev in Thread] Current Thread [Next in Thread]