Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: segfault in db-convert.exe  (Read 8174 times)

0 Members and 1 Guest are viewing this topic.

someone

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 42
    • http://www.somenet.org
segfault in db-convert.exe
« on: June 20, 2010, 07:42:13 PM »

While trying to convert my DB, the tool dies.

last lines in anope.db
Code: [Select]
NC <nick> <pass> en -1 0
MD ACCESS <EOF>

if i delete nick.db, it works... but thats not really an option ;)
it seems that this happens only with the one nick.
maybe he/she set some weird settings?

ps: sorry, I cannot reproduce it with test-data and i cannot give out production data.

ircd = unreal.
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: segfault in db-convert.exe
« Reply #1 on: June 20, 2010, 07:43:38 PM »

Try running it in gdb:

gdb ./db-convert
r

and when it crashes type
bt full

and pastebin all of the output.
Logged

someone

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 42
    • http://www.somenet.org
Re: segfault in db-convert.exe
« Reply #2 on: June 20, 2010, 08:40:50 PM »

sry my fail - i thaught it was obvious if i said db-convert.exe...
this is a windows laptop.

The full windows segfault message would be:
Die Anweisung in "0x00401c36" verweist auf den Speicher in "0x00000000". Der Vorgang "read" konnte nicht ausgeführt werden.

meaning something like: the Command @ 0x00401c36 tries to read 0x0000...
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: segfault in db-convert.exe
« Reply #3 on: June 21, 2010, 03:40:22 PM »

Are the databases you are converting from 1.8 or 1.9?
Logged

someone

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 42
    • http://www.somenet.org
Re: segfault in db-convert.exe
« Reply #4 on: June 22, 2010, 12:07:36 AM »

1.8.0 to 1.9.2
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: segfault in db-convert.exe
« Reply #5 on: June 22, 2010, 12:08:37 AM »

Could you please try http://adam.anope.org/anope-1.9.2-p1-unofficial.exe and tell me how it works?
Logged

someone

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 42
    • http://www.somenet.org
Re: segfault in db-convert.exe
« Reply #6 on: June 23, 2010, 12:53:35 AM »

crash with same nick.
i tried to drop that nick and then it crashed one nick later... (after the same amount of nicks processed.)
maybe just a random coincidence, since the converter wrote again
Code: [Select]
NC <nick> <pass> en -1 0
MD ACCESS
and EOF

seems like some problem with dumping the MD ACCESS - Line?
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: segfault in db-convert.exe
« Reply #7 on: June 23, 2010, 01:03:48 AM »

Would you mind sending me your databases so I can debug this further? Or can you build 1.9.2 on linux and reproduce it or build a debug version on Windows and get a stack trace?
Logged

someone

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 42
    • http://www.somenet.org
Re: segfault in db-convert.exe
« Reply #8 on: June 24, 2010, 07:30:15 PM »

thats the problem... i do not want to give out the data...
like i hoped it was some obvious nullpointer field in the converter or something...

As I suck with autotools and ebuilds, I requested a gentoo ebuild update, so hopefully they will get 1.9.2 into the tree and then ill send you gdb traces (if it is not a windows related thing)
« Last Edit: June 24, 2010, 07:33:13 PM by someone »
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: segfault in db-convert.exe
« Reply #9 on: June 24, 2010, 07:34:25 PM »

Can't you build 1.9.2 from the source and test it out?
Logged

someone

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 42
    • http://www.somenet.org
Re: segfault in db-convert.exe
« Reply #10 on: June 25, 2010, 11:11:10 PM »

I kinda failed it...

Code: [Select]
srv252 anope # cmake src
CMake Error at CMakeLists.txt:6 (remove_item_from_list):
  Unknown CMake command "remove_item_from_list".


-- Configuring incomplete, errors occurred!
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: segfault in db-convert.exe
« Reply #11 on: June 25, 2010, 11:12:30 PM »

You should be using Config to run cmake.
Logged

someone

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 42
    • http://www.somenet.org
Re: segfault in db-convert.exe
« Reply #12 on: June 25, 2010, 11:15:17 PM »

same problem...

Code: [Select]
Beginning Services configuration.

Using defaults from config.cache. To ignore, ./Config -nocache

Note: press Return for the default, or enter a new value.
Are you using configure or cmake?
[cmake]

In what directory do you want the binaries to be installed?
[/root/services]

Which group should all Services data files be owned by?  (If Services
should not force files to be owned by a particular group, just press
Return.)
[]

What should the default umask for data files be (in octal)?
(077 = only accessible by owner; 007 = accessible by owner and group)
[077]

Would you like to build a debug version of Anope?
[y]

You can optionally have the build run through run-cc.pl, which will
cause warnings and errors (if any) to be colored yellow and red,
respectively. This relies on Perl being installed, so if you say yes
to this without Perl, the option will be ignored.
NOTE: If you are using MinGW, it is NOT recommended to say yes to
this, it may fail.
Would you like to utilize run-cc.pl?
[n]

Are there any extra arguments you wish to pass to cmake?
(You may only need to do this if cmake is unable to locate
missing dependencies without hints)
[]

Saving configuration results in config.cache... done.
cmake  -DINSTDIR:STRING=/root/services  -DDEFUMASK:STRING=077 -DCMAKE_BUILD_TYPE:STRING=DEBUG -DUSE_RUN_CC_PL:BOOLEAN=OFF  ..
CMake Error at CMakeLists.txt:6 (remove_item_from_list):
  Unknown CMake command "remove_item_from_list".


-- Configuring incomplete, errors occurred!

Now cd build, then run make to build Anope.
Logged

Naram Qashat

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 192
    • CBX's Sprite Animations
Re: segfault in db-convert.exe
« Reply #13 on: June 25, 2010, 11:16:42 PM »

Sounds to me like an incomplete source you have.  Is there an Anope.cmake file in the root source folder that you extracted the source tarball to?
Logged

someone

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 42
    • http://www.somenet.org
Re: segfault in db-convert.exe
« Reply #14 on: June 25, 2010, 11:18:50 PM »

Code: [Select]
srv252 anope # ls -al
total 528
drwxrwxrwx 9 root root   4096 Jun 26 00:15 .
drwx------ 9 root root   4096 Jun 26 00:09 ..
-rwxrwxrwx 1 root root    699 Jun 18 08:55 .BANNER
-rwxrwxrwx 1 root root  24529 Jun 18 08:55 Anope.cmake
-rw-r--r-- 1 root root  11119 Jun 26 00:10 CMakeCache.txt
drwxrwxrwx 5 root root   4096 Jun 26 00:06 CMakeFiles
-rwxrwxrwx 1 root root  23167 Jun 18 08:55 CMakeLists.txt
-rwxrwxrwx 1 root root   9737 Jun 18 08:55 Config
-rwxrwxrwx 1 root root     54 Jun 18 08:55 Config.bat
-rwxrwxrwx 1 root root   3149 Jun 18 08:55 Makefile.in
-rwxrwxrwx 1 root root  22776 Jun 18 08:55 NSIS.template.in
-rwxrwxrwx 1 root root    193 Jun 18 08:55 ReadFile.cmake
-rwxrwxrwx 1 root root  34245 Jun 18 08:55 aclocal.m4
-rwxrwxrwx 1 root root     40 Jun 18 08:55 anope.bat
-rwxrwxrwx 1 root root   1629 Jun 18 08:55 anope.m4
-rwxrwxrwx 1 root root    248 Jun 18 08:55 autogen.sh
drwxr-xr-x 2 root root      6 Jun 26 00:10 build
-rw-r--r-- 1 root root    120 Jun 26 00:15 config.cache
-rwxrwxrwx 1 root root  44892 Jun 18 08:55 config.guess
-rwxrwxrwx 1 root root  33531 Jun 18 08:55 config.sub
-rwxrwxrwx 1 root root 220256 Jun 18 08:55 configure
-rwxrwxrwx 1 root root   6685 Jun 18 08:55 configure.in
drwxrwxrwx 3 root root     93 Jun 25 23:33 data
drwxrwxrwx 2 root root   4096 Jun 25 23:33 docs
-rwxrwxrwx 1 root root      0 Jun 18 08:55 empty.c
drwxrwxrwx 2 root root   4096 Jun 25 23:33 include
-rwxrwxrwx 1 root root    609 Jun 18 08:55 install-script
-rwxrwxrwx 1 root root   8528 Jun 18 08:55 install.js
drwxrwxrwx 2 root root   4096 Jun 25 23:33 lang
-rwxrwxrwx 1 root root   6074 Jun 18 08:55 run-cc.pl
drwxrwxrwx 7 root root   4096 Jun 25 23:34 src
-rwxrwxrwx 1 root root    214 Jun 18 08:55 version.log
-rwxrwxrwx 1 root root   2337 Jun 18 08:55 vsvars32.bat
Logged
Pages: [1]   Go Up