Am 09.01.2018 um 09:24 teilte Олег Мороз mit:

Hi Олег,

root@sim-ng-data:/home/vniiem# cat /var/log/proftpd/proftpd.log
...
...
2018-01-09 08:16:37,030 sim-ng-data proftpd[24660] sim-ng-data (OpenWrt[192.168.3.180]): -----BEGIN STACK TRACE----- 2018-01-09 08:16:37,030 sim-ng-data proftpd[24660] sim-ng-data (OpenWrt[192.168.3.180]): [0] /usr/sbin/proftpd(+0x1f3b0) [0x563c3354f3b0] 2018-01-09 08:16:37,030 sim-ng-data proftpd[24660] sim-ng-data (OpenWrt[192.168.3.180]): [1] /usr/sbin/proftpd(+0x1f3b0) [0x563c3354f3b0]


root@sim-ng-data:/home/vniiem# addr2line -e /usr/sbin/proftpd 0x1f3b0
./src/pool.c:546

This(!) is the output I need. Many thanks!

Hilmar


but () gives error

root@sim-ng-data:/home/vniiem# addr2line -e /usr/sbin/proftpd 0x563c3354f3b0()
bash: syntax error near unexpected token `('

and

root@sim-ng-data:/home/vniiem# addr2line -e /usr/sbin/proftpd (0x563c3354f3b0)
bash: syntax error near unexpected token `('


03.01.2018 15:47, Hilmar Preuße пишет:
Am 03.01.2018 um 09:39 teilte Олег Мороз mit:

Hi Oleg,

Happy new year!

according to my knowledge the most top line of the stack trace is the relevant one.

Your first addr2line command leads me to line 1312 in ./contrib/mod_sftp/auth.c. This line just contains a call to function pr_cmd_dispatch_phase(). This function however is implemented in ./src/main.c . So to learn in which part of the function the crash happens one has to go one line up in the stack trace.

So please repeat the command for the most upper line in your stack trace and send me the output. Please use the addresses in the (), I've no clue why the 64bit addresses can't be used.

Many thanks!
  Hilmar

So sorry for delay, i'm on vacation.

I believe that problem is in mod_sftp.so

part of proftpd.log stack trace
2018-01-03 08:29:28,674 sim-ng-data proftpd[29225] sim-ng-data (OpenWrt[192.168.3.180]): [5] /usr/lib/proftpd/mod_sftp.so(+0x3c7ef) [0x7f5e93b9d7ef] 2018-01-03 08:29:28,674 sim-ng-data proftpd[29225] sim-ng-data (OpenWrt[192.168.3.180]): [6] /usr/lib/proftpd/mod_sftp.so(sftp_auth_handle+0x62) [0x7f5e93b9dc31] 2018-01-03 08:29:28,674 sim-ng-data proftpd[29225] sim-ng-data (OpenWrt[192.168.3.180]): [7] /usr/lib/proftpd/mod_sftp.so(sftp_ssh2_packet_handle+0x363) [0x7f5e93b7c9ad] 2018-01-03 08:29:28,674 sim-ng-data proftpd[29225] sim-ng-data (OpenWrt[192.168.3.180]): [8] /usr/lib/proftpd/mod_sftp.so(+0xfa07) [0x7f5e93b70a07]


# addr2line -e /usr/lib/proftpd/mod_sftp.so 0x3c7ef
./contrib/mod_sftp/auth.c:1312


# addr2line -e /usr/lib/proftpd/mod_sftp.so +0xfa07
./contrib/mod_sftp/mod_sftp.c:247


unfortunatelly i cant use 64 bit addresses like 0x7f5e93b9d7ef , because in that case addr2line gives ??:0


Log Files snipped.




--
#206401 http://counter.li.org

Reply via email to