Crash in cypasswd when access denied

Bug #371354 reported by Alexey Torkhov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cyphesis
Confirmed
Low
Unassigned

Bug Description

Cypasswd is crashing when access denied:
$ ./cypasswd -a admin
New admin password:
Retype admin password:
2009-05-03T23:02:36 NOTICE DATABASE: row number 0 is out of range 0..-1
Segmentation fault (core dumped)

Backtrace:
(gdb) bt
#0 strlen () at ../sysdeps/x86_64/strlen.S:48
#1 0x000000000040a66b in std::char_traits<char>::length ()
    at /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/char_traits.h:262
#2 std::string::assign () at /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:931
#3 std::string::operator= () at /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:510
#4 Database::newId (this=0x250fc70, id=@0x7fff20bb8ae0) at ../../common/Database.cpp:944
#5 0x0000000000414048 in AccountBase::putAccount (this=0x7fff20bb8cb0, account=<value optimized out>)
    at ../../common/AccountBase.cpp:67
#6 0x00000000004076cd in main (argc=<value optimized out>, argv=<value optimized out>) at ../../tools/cypasswd.cpp:196

Simple cypasswd run tells that access denied:
$ ./cypasswd
2009-05-03T23:04:40 ERROR Error selecting row.
2009-05-03T23:04:40 ERROR DATABASE: ERROR: access denied connecting accounts
Account admin does not yet exist

Revision history for this message
Alexey Torkhov (atorkhov) wrote :

I had usedatabase=false in ~/.cyphesis.vconf.

Changed in cyphesis:
importance: Undecided → Low
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.