Bug 3503 - smbmount is segfaulting - using latest svn rev #13476
Summary: smbmount is segfaulting - using latest svn rev #13476
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: smbmount (unmaintained) (show other bugs)
Version: 3.0.21b
Hardware: x86 Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2006-02-12 18:33 UTC by Guenter Kukkukk
Modified: 2006-02-12 22:59 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Guenter Kukkukk 2006-02-12 18:33:11 UTC
Hi all,
when simply starting smbmount without any parameters,
it is segfaulting: (using latest svn rev 13476)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1078454048 (LWP 18316)]
0x080adf58 in toupper_w (val=114) at lib/util_unistr.c:380
380             return upcase_table[SVAL(&val,0)];
(gdb) bt full
#0  0x080adf58 in toupper_w (val=114) at lib/util_unistr.c:380
No locals.
#1  0x080aedef in toupper_ascii (c=114) at lib/util_unistr.c:1019
No locals.
#2  0x080ab644 in strupper_m (s=0x80f76c0 "root") at lib/util_str.c:1547
        s = 0x80f76c0 "root"
        errno_save = -1073745768
#3  0x08062394 in main (argc=1, argv=0xbffff124) at client/smbmount.c:896
        p = 0x72 <Address 0x72 out of bounds>

I guess, jra did not hit this one, when he did some big
changes related to case_tables some weeks ago.
The following patch works for me:

--- smbmount.c  2006-02-13 01:28:19.193403017 +0100
+++ smbmount.c.gk       2006-02-13 01:28:00.247854343 +0100
@@ -867,7 +867,7 @@
        char *p;

        DEBUGLEVEL = 1;
+       load_case_tables();
        /* here we are interactive, even if run from autofs */

Best wishes.
Guenter Kukkukk
Comment 1 Volker Lendecke 2006-02-12 22:59:08 UTC
Thanks, fixed with 13486.