Code Monkey home page Code Monkey logo

Comments (14)

sylverb avatar sylverb commented on August 18, 2024

Hi Narendra,
the maximum block size you can write in a SMB write command is 65535-64 (64 is the size of headers for this message).
Could you give crash logs ?

from libdsm.

narendra-ct avatar narendra-ct commented on August 18, 2024

thanks for the response and error i got is ;

**(220,0x16e0a3000) malloc: * error for object 0x15711d600: incorrect checksum for freed object - object was probably modified after being freed.

Maximum times its giving this error and in some times at the initialstage itself crashing.

from libdsm.

narendra-ct avatar narendra-ct commented on August 18, 2024

hello,
Just to confirm not only on above comment, its crashing on

netbios_session_packet_recv: : Connection reset by peer
netbios connection not reachable

netbios_session_packet_send: Unable to send (full?) packet: Broken pipe
netbios_session_packet_recv: : Broken pipe

while uploading file to shared folder giving these types of messages and app crashing .

Please have a look on it and plz help me on this how to handle.

Thanks,
Narendra V.

from libdsm.

sylverb avatar sylverb commented on August 18, 2024

Hello,
please provide sample app/code to reproduce the issue

from libdsm.

narendra-ct avatar narendra-ct commented on August 18, 2024

TOSMBClient-master 2.zip

Hello,
i have attached sample project and please check

// code to upload file/write file
[self.rootController uploadFileTosession:self.session atFilePath:_selectedPath withDestinationPath:nil];

please find this line to check the upload/write to file code.
Add any large file to resources and fetch path from resources (code already available in SMBSessionUpload.m)

Thanks,
Narendra.

from libdsm.

sylverb avatar sylverb commented on August 18, 2024

Ok I've made some tests with your sample app and I managed to upload files (tried a 3.5MB file and a 1.07GB file) on my servers with no issue/crash !
I guess that the problem is a compatibility problem with the SMB server you are using then ! Could you tell which server you are connecting to ?
BTW, there are some personal login/passwords in your archive, I hope for you that this is not a password you are using online, else way change it ASAP where is it used ...

from libdsm.

narendra-ct avatar narendra-ct commented on August 18, 2024

Im using my mac shared folder instead of server and i will try with NAS server and Im also able to upload 1.3 GB of data and if i try 2 GB or More than 2 GB app crashes.Cold you please try with 2GB file .
~ please let me know that the code is proper to upload file .
Thanks,

from libdsm.

narendra-ct avatar narendra-ct commented on August 18, 2024

hello i observed one more thing here ..

Im able to upload the zip file from my shared folder and if try to unzip manually (in MAC) it works fine, if try to unzip the file using iOS Library (SSZipArchive or ZipArchive) it throws an error as BADZIP file.
The problem with only uploaded files and normal files (manually zipped from mac files) i can able to unzip through SSZipArchive.
While Upload its creating more file size than actual file size.
Please help on this what i can do.

Thanks,
Narendra V.

from libdsm.

sylverb avatar sylverb commented on August 18, 2024

I've just tested uploading a 3.2GB file with no issue :-/

from libdsm.

natalia-osa avatar natalia-osa commented on August 18, 2024

I'd just like to note it's happening to me as well. I've opened similar issue here: TimOliver/TOSMBClient#26, but it seems to be a problem of libdsm, used inside TOSMBClient project.
As for me it happens during smb_fread. You can peek into the TOSMBSessionDownloadTask for more details about the implementation.

The crash happens when I disconnect from Samba device I'm downloading from.

My logs:

netbios_session_packet_recv: : Invalid argument
netbios_session_packet_recv: : Invalid argument
netbios_session_packet_send: Unable to send (full?) packet: Broken pipe
netbios_session_packet_send: Unable to send (full?) packet: Broken pipe
netbios_session_packet_send: Unable to send (full?) packet: Broken pipe
[etc ...]

We're using such device as SMB server: http://www.ravpower.com/rp-wd03-filehub-6000mah-power-bank-portable-wireless-router.html.

from libdsm.

jbkempf avatar jbkempf commented on August 18, 2024

Any backtrace?

from libdsm.

natalia-osa avatar natalia-osa commented on August 18, 2024

@jbkempf I just found a bug in TOSMBClient, so sorry for the false alarm, the bug was not from here. In case you'd like to see what happened: TimOliver/TOSMBClient#27.

from libdsm.

bernayu avatar bernayu commented on August 18, 2024

Hi All,
any updates about malloc issue? I experienced the same error when using smb_fwrite.
Any help is appreciated thanks.

from libdsm.

DemianSteelstone avatar DemianSteelstone commented on August 18, 2024

Hi,
Try to reduce buffer size to 64000

from libdsm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.