Bug 14559 - segfault during net rpc printer migrate drivers
Summary: segfault during net rpc printer migrate drivers
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Printing (show other bugs)
Version: 4.11.2
Hardware: All Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: printing-maintainers
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-30 15:25 UTC by maurer
Modified: 2020-10-30 15:32 UTC (History)
0 users

See Also:


Attachments
gdb backtrace (31.64 KB, text/plain)
2020-10-30 15:27 UTC, maurer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description maurer 2020-10-30 15:25:22 UTC
Hi

I am trying to migrate an old printserver from one samba4 (4.8.11 on CentOS-6) server to a newer one (4.11.2 on CentOS-8)
using

net rpc printer migrate all

The migration of queue, forms, securitty, settings works, during the migration of the drivers (net rpc printer migrate drivers)  the command dumps core at the first driver

Here a level10 output

     spoolss_AddPrinterDriver: struct spoolss_AddPrinterDriver
        in: struct spoolss_AddPrinterDriver
            servername               : *
                servername               : '\\127.0.0.1'
            info_ctr                 : *
                info_ctr: struct spoolss_AddDriverInfoCtr
                    level                    : 0x00000003 (3)
                    info                     : union spoolss_AddDriverInfo(case 3)
                    info3                    : *
                        info3: struct spoolss_AddDriverInfo3
                            version                  : SPOOLSS_DRIVER_VERSION_200X (3)
                            driver_name              : *
                                driver_name              : 'hp9050-1'
                            architecture             : *
                                architecture             : 'Windows NT x86'
                            driver_path              : *
                                driver_path              : '\\RM-SAMBA01\print$\W32X86\3\pscript5.dll'
                            data_file                : *
                                data_file                : '\\RM-SAMBA01\print$\W32X86\3\hp9050-1.ppd'
                            config_file              : *
                                config_file              : '\\RM-SAMBA01\print$\W32X86\3\ps5ui.dll'
                            help_file                : *
                                help_file                : '\\RM-SAMBA01\print$\W32X86\3\pscript.hlp'
                            monitor_name             : *
                                monitor_name             : 'JBV'
                            default_datatype         : *
                                default_datatype         : ''
Bus error (core dumped)

Oct 27 15:22:26 rmc-printserver01 kernel: net[104782]: segfault at ffffffff0006001c ip 00007feb997dc96a sp 00007ffd9c982cd0 error 5 in libndr-standard.so.0.0.1[7feb99776000+31f000]


an enumdrivers 3 on the source system shows

[Windows NT x86]
Printer Driver Info 3:
        Version: [3]
        Driver Name: [hp9050-1]
        Architecture: [Windows NT x86]
        Driver Path: [\\RM-SAMBA01\print$\W32X86\3\pscript5.dll]
        Datafile: [\\RM-SAMBA01\print$\W32X86\3\hp9050-1.ppd]
        Configfile: [\\RM-SAMBA01\print$\W32X86\3\ps5ui.dll]
        Helpfile: [\\RM-SAMBA01\print$\W32X86\3\pscript.hlp]
        Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\pscript5.dll]
        Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\hp9050-1.ppd]
        Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\ps5ui.dll]
        Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\pscript.hlp]
        Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\pscript.ntf]
        Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\cups6.ini]
        Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\cupsps6.dll]
        Dependentfiles: [\\RM-SAMBA01\print$\W32X86\3\cupsui6.dll]
        Monitorname: []
        Defaultdatatype: [RAW]


It there somthing wrong with the monitor_name?

I have tried the command with a different system/driver (both samba-4.11) and  I run into a similar problem


                   info3                    : *
                        info3: struct spoolss_AddDriverInfo3
                            version                  : SPOOLSS_DRIVER_VERSION_200X (3)
                            driver_name              : *
                                driver_name              : 'Dell C3765dnf Color MFP PCL6'
                            architecture             : *
                                architecture             : 'Windows x64'
                            driver_path              : *
                                driver_path              : '\\SERV01\print$\x64\3\dlxcmzim.dll'
                            data_file                : *
                                data_file                : '\\SERV01\print$\x64\3\dlxcmzk.ddd'
                            config_file              : *
                                config_file              : '\\SERV01\print$\x64\3\dlxcmziv.dll'
                            help_file                : *
                                help_file                : '\\SERV01\print$\x64\3\dlxcmz.chm'
                            monitor_name             : *
                                monitor_name             : '@çbU'
                            default_datatype         : *
                                default_datatype         : ''
                            _ndr_size_dependent_files: 0x00000000 (0)
                            dependent_files          : NULL
convert_string_internal: Conversion error: Incomplete multibyte sequence(@çbU)
Comment 1 maurer 2020-10-30 15:27:30 UTC
Created attachment 16318 [details]
gdb backtrace

attached the requested gdb trace
Comment 2 maurer 2020-10-30 15:32:35 UTC
I run the  gdb trace on an non production system with 4.10.4 (with the same error) in order to avoid the installation of the debug libraries on the production system