[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libssh-0.4.90
[Thread Prev] | [Thread Next]
- Subject: Re: libssh-0.4.90
- From: Eduardo Valdes <evaldes@xxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 15 Mar 2011 12:15:14 -0400
- To: libssh@xxxxxxxxxx
Aris, Ah!! I cleared my pointer, not the memory pointed to. :) Thanks. Eddy On Tue, Mar 15, 2011 at 10:04 AM, Aris Adamantiadis <aris@xxxxxxxxxxxx>wrote: > Hi Eddy, > > Seems to me that the buffer parameter used with ssh_scp_read is NULL. can > you confirm ? > Checking for null in libssh would be a good idea anyway. > > Aris > > Envoyé de mon téléphone. > > Le 14 mars 2011 à 19:12, Eduardo Valdes <evaldes@xxxxxxxxxxxxxxxxxxxxxx> a > écrit : > > I have started converting my application to use the new API in 0.4.90 in > Linux. > > What works: > > - ssh_scp_push_file > - ssh_scp_write > - ssh_channel_request_shell > - ssh_channel_write > - ssh_channel_poll > - ssh_channel_read > > And all of the supporting stuff to make those commands work. > > What does not work is ssh_scp_read. > > This is what I get from gdb: > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0xb760bb70 (LWP 8120)] > __memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:697 > 697 ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S: No such file or > directory. > in ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S > (gdb) bt > #0 __memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:697 > #1 0xb760ab44 in ?? () > #2 0x00907871 in ssh_scp_read (scp=0xb702baf8, buffer=0x0, size=47885) > at /home/eddyv/freepascal/libssh_test/libssh-0.4.90/src/scp.c:649 > #3 0x0829da7b in TMYSSHTHREAD__SCPCOPYREMOTEFILE (SESSION=0x0, > REMOTEFILE=0x0, LOCALFILE=0x0, MODE=0, > FILESTR=Cannot access memory at address 0x0 > ) at /home/eddyv/freepascal/RAT_common/Work/usshthread.pas:795 > #4 0x00000000 in ?? () > (gdb) > > I hope this is useful, > > Any help would be appreciated. > > Thanks. > > -- > Eddy Valdes > Project Manager > Atronix Engineering > <evaldes@xxxxxxxxxxxxxxxxxxxxxx>evaldes@xxxxxxxxxxxxxxxxxxxxxx > > -- Eddy Valdes Project Manager Atronix Engineering evaldes@xxxxxxxxxxxxxxxxxxxxxx
libssh-0.4.90 | Eduardo Valdes <evaldes@xxxxxxxxxxxxxxxxxxxxxx> |
Re: libssh-0.4.90 | Aris Adamantiadis <aris@xxxxxxxxxxxx> |