Ok paul,
Did what you said:
gonna to the SQ step, it's not crashing



lira:~# gdb /usr/local/sbin/dbmail-imapd
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run -n < text.txt
Starting program: /usr/local/sbin/dbmail-imapd -n < text.txt
[Thread debugging using libthread_db enabled]
[New Thread -1212266288 (LWP 29780)]
* OK dbmail imap (protocol version 4r1) server 2.2 ready to run
x OK LOGIN completed
* 2096 EXISTS
* 0 RECENT
* FLAGS (\Seen \Answered \Deleted \Flagged \Draft)
* OK [PERMANENTFLAGS (\Seen \Answered \Deleted \Flagged \Draft)]
* OK [UIDNEXT 1330408] Predicted next UID
* OK [UIDVALIDITY 507] UID value
* OK [UNSEEN 1385] first unseen message
x OK [READ-WRITE] SELECT completed


d

* SEARCH 68988 68996 69001 69006 69008 69019 69025 69027 69032 69046 69052 69066 69069 69070 69071 69072 69074 69076 69077 69079 69089 69091 69094 69107 69108 69111 69112 69116 69119 69121 69122 69123 69125 69127 69128 69129 69130 69131 69133 69146 69148 69149 69154 69157 69160 69161 69175 69176 69180 69181 69182 69184 69186 69187 69188 69193 69195 69200 69201 69212 69213 69217 69220 69221 69222 69223 69229 69232 69234 69235 69237 69238 69239 69240 69241 69243 69247 69248 69251 69252 69256 69258 69260 69261 69267 69279 69280 69281 69282 69288 69289 69290 69291 69292 69293 69296 69297 69298 69299 69301 69303 69305 69306 69307 69308 69310 69311 69312 69314 69315 69316 69327 69338 69341 69349 69356 69360 69362 69370 69372 69378 69379 69382 69385 69387 69392 69411 69420 69422 69427 69428 69432 69441 69444 69454 69467 69475 69476 69484 69490 69501 69502 69509 69560 69563 69565 69572 69575 69604 69609 69620 69675 69678 69684 69693 69708 69709 69713 69719 69722 69723 69724 69726 69729 69730 69742 69744 69756 69770 69772 69775 69781 69783 69784 69785 69801 69804 69806 69852 69861 69863 69885 69890 69893 69894 69898 69901 69914 69915 69917 69921 69922 69923 69927 69945 69954 69955 69956 69959 69963 70052 70054 70056 70063 70066 70069 70070 70071 70074 70080 70082 70083 70084 70085 70086 70088 70089 70090 70091 70099 70100 70101 70112 70122 70124 70125 70126 70131 70139 70141 70142 70143 70150 70157 70159 70160 70168 81674 82927 85060 85273 86744 90740 92634 93457 95591 96946 97916 98899 100579 103989 105607 112542 114455 115949 118668 118670 119888 121797 121876 123407 125872 125874 126060 126062 126072 127833 129658 131844 136351 139904 139950 153273 153291 156915 158293 158305 159549 164102 166125 167927 168072 169469 169700 171645 171914 176929 176931 178728 180990 184166 186430 189909 190097 191632 191768 194042 196316 198688 203836 208140 208477 209564 212220 217698 218061 218080 218211 241450 247129 247918 261566 262165 262531 264739 264949 272487 277685 290438 293587 298734 299995 309249 312744 313118 315673 323403 323500 323550 330753 330963 335739 336220 336308 336312 336324 336340 345863 346049 346285 346328 351380 368816 369970 369980 377008 377099 377323 380222 380797 384999 385589 385742 386452 388591 389223 389356 391458 391753 408639 409191 412942 419513 423267 430493 431012 431312 433730 442717 451090 451892 452291 452299 452351 457795 458078 461594 463248 463957 464507 464513 467513 468605 469138 472702 472706 475131 475290 475473 475615 478585 478756 479107 479109 479383 480228 485436 488176 491378 491504 498275 498279 498297 509648 515508 522300 535121 538328 542836 558515 558857 560167 561446 561472 561492 566787 569931 569993 583819 584230 590768 594210 604801 609800 618363 618371 622524 627698 629499 629743 630999 634592 636082 636084 636343 639153 639385 642262 647108 647119 647266 650960 653384 662397 662467 666000 666132 674049 680559 681682 682453 683041 703531 705386 712586 713973 714566 716486 718542 722867 727667 736091 742569 748550 748554 751120 759672 760249 767399 786445 788696 788799 791897 791936 791947 795015 798695 799247 800505 804190 807641 811523 816038 819192 831054 833087 851106 852262 856305 858677 862166 866807 866914 879102 879850 881752 888175 888342 888713 888823 889120 898782 899629 899646 899712 899723 899949 905229 906900 906953 913191 914861 919518 920947 923966 927004 930770 935086 937991 938006 938886 941043 945997 952918 953976 954536 954729 954974 954989 956668 957071 957110 957963 958279 958687 960959 961038 966230 969437 969642 970114 970246 970293 971254 971613 971615 972525 972630 975150 975940 976481 977801 979881 982168 982422 982789 983087 983274 984619 989426 989953 991609 993058 996811 997633 1007523 1007560 1016843 1020160 1020193 1020220 1020850 1021541 1021620 1021662 1021838 1023822 1024503 1024522 1024794 1025353 1026478 1030024 1031252 1031969 1032754 1034458 1034591 1035053 1035301 1036269 1036749 1036764 1036844 1037218 1045316 1045843 1046489 1047204 1048726 1048791 1052473 1055738 1062291 1064276 1064580 1064607 1084257 1086005 1091331 1091813 1096086 1102887 1106348 1106359 1107255 1109272 1109276 1115625 1125080 1128748 1129659 1152925 1154062 1158154 1161459 1165760 1166365 1166491 1168115 1169586 1169967 1172132 1172961 1174485 1174743 1175512 1177034 1177168 1178720 1179386 1179416 1182289 1183318 1183775 1185279 1185537 1185710 1186313 1186415 1186464 1187197 1187958 1188001 1188697 1189837 1190597 1193970 1195507 1197443 1198749 1199351 1199493 1199838 1201187 1202319 1202914 1203120 1203133 1203897 1204733 1204800 1204891 1205236 1205262 1205440 1205566 1205875 1207056 1207087 1207122 1207202 1207439 1209409 1210233 1210240 1210322 1210532 1210889 1211348 1211461 1211464 1211577 1212920 1214443 1214569 1215126 1215180 1215196 1215675 1217086 1222973 1223012 1223043 1223498 1223534 1223669 1226080 1226538 1226552 1227879 1227948 1227969 1228210 1228214 1228218 1228459 1228580 1228632 1228785 1228800 1228928 1228949 1229043 1229167 1229177 1229195 1229594 1229805 1229834 1231054 1231125 1231198 1231210 1231248 1231465 1231546 1231568 1231591 1231608 1231615 1231746 1231922 1232000 1232007 1232327 1232787 1233130 1233154 1234627 1234676 1236271 1236275 1236374 1236456 1236825 1236854 1236876 1236894 1237713 1237747 1237938 1240524 1243193 1243975 1244313 1244488 1244574 1246477 1247476 1248274 1248357 1250270 1250290 1250464 1250665 1250885 1250895 1250949 1250967 1251063 1251724 1251930 1252087 1252111 1252306 1254961 1255172 1255267 1255419 1256039 1256058 1258984 1259001 1259685 1260774 1261087 1261202 1261890 1262864 1264390 1264396 1264496 1264527 1265592 1265954 1266003 1266022 1266341 1266358 1267575 1267797 1267879 1268674 1268897 1268907 1268935 1269751 1269958 1270262 1270342 1270357 1270374 1270418 1270462 1270543 1270597 1271152 1271494 1271541 1274547 1275702 1278121 1278343 1278355 1278374 1278434 1278540 1278950 1279455 1279496 1279842 1279974 1280586 1280952 1281078 1283051 1283441 1283482 1283653 1283667 1283830 1284068 1284155 1284564 1284603 1284664 1284789 1285093 1285097 1285105 1286633 1286771 1287243 1287256 1287320 1287353 1287430 1287453 1287594 1289472 1289822 1290465 1291032 1291464 1292334 1292336 1293567 1293904 1294550 1295962 1299480 1299497 1299585 1299967 1300050 1300147 1300331 1300656 1301253 1301307 1303330 1303518 1303644 1303899 1303957 1303978 1304385 1304733 1305021 1305098 1305137 1305465 1306788 1306930 1307984 1309235 1310502 1310584 1310586 1311583 1312214 1312991 1313002 1313017 1313106 1313126 1313132 1313156 1313195 1313526 1313613 1313615 1313657 1313751 1313755 1313793 1313889 1313996 1314112 1314403 1314625 1314678 1314681 1315104 1316120 1319177 1319188 1319452 1319909 1319929 1320268 1320802 1321025 1321256 1321538 1322707 1322786 1322971 1323004 1323198 1323227 1324637 1325884 1325934 1326001 1326157 1326353 1326627 1328825 1328988 1329691 1329695 1330258 1330399
x OK SEARCH completed

Program exited normally.
(gdb)
(gdb)




----- Original Message ----- From: "Paul J Stevens" <[EMAIL PROTECTED]>
To: "DBMail mailinglist" <[email protected]>
Sent: Thursday, July 05, 2007 9:34 AM
Subject: Re: [Dbmail] Debuging with GDB



Create a small text file that contains the necessary commands:

cat > test.txt
x login myusername mypassword
x select INBOX
x UID SEARCH CHARSET ISO-8859-1 ALL BODY "aa"
CTRL-D

bash: #> gdb /usr/sbin/dbmail-imapd
gdb> run -n < test.txt
...
...

if gdb reports a crash:

gdb> bt


But please try Jonathans solution as well, just to make sure this is not a client timeout.


Aleksander Kamenik wrote:
Jorge Bastos wrote:
Hi,
How do i debug with gdb?

Google!

I think it went like this:
$ gdb
 > exec /path/to/executable
 > run
 > bt

exec tell gdb what program to run, run executes it and bt produces a backtrace.

HTH,



--
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail


_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to