libsmbclient SIGSEGV in smbc_stat

pro pro at n5home.de
Tue Dec 16 13:29:22 GMT 2003


hi,

i have a multithreaded (pthreads) smb crawler. sometimes, smbc_stat fires a
segmentation fault

the url seems to be correct, and a gdb callstack looks like this (url
replaced):

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 458781 (LWP 1867)]
0x4024d30e in mallopt () from /lib/libc.so.6


#0  0x4024d30e in mallopt () from /lib/libc.so.6
#1  0x4024cb48 in mallopt () from /lib/libc.so.6
#2  0x4024d4f6 in mallopt () from /lib/libc.so.6
#3  0x4024c020 in realloc () from /lib/libc.so.6
#4  0x4005d836 in Realloc (p=0x4030ad00, size=16) at lib/util.c:870
#5  0x4004b5fa in convert_string_allocate (ctx=0x0, from=1024, to=CH_UNIX,
src=0xbc1fd6c4, srclen=0, dest=0xbc1fd6c0) at lib/charcnv.c:457
#6  0x4004c119 in pull_utf8_allocate (dest=0x48003630, src=0xbc1fd6c4
"path\\to\\file\\file.ext")     at lib/charcnv.c:1019
#7  0x4003c36c in decode_urlpart (segment=0xbc1feb94
"path\\to\\file\\file.ext", sizeof_segment=1024)     at
libsmb/libsmbclient.c:127
#8  0x4003c6e4 in smbc_parse_path (context=0x806f2a0, fname=0x84a0968
"smb://1.2.3.4/share/path/to/file/file.ext", server=0xbc1ff394 "1.2.3.4",
share=0xbc1ff294 "share", path=0xbc1feb94 "path\\to\\file\\file.ext",
user=0xbc1ff194 "",     password=0xbc1ff094 "") at libsmb/libsmbclient.c:255
#9  0x4003e471 in smbc_stat_ctx (context=0x806f2a0, fname=0x84a0968
"smb://1.2.3.4/share/path/to/file/file.ext", st=0xbc1ff524) at
libsmb/libsmbclient.c:1192
#10 0x400412af in smbc_stat (url=0x84a0968
"smb://1.2.3.4/share/path/to/file/file.ext", st=0xbc1ff524)     at
libsmb/libsmb_compat.c:244





More information about the samba-technical mailing list